VTK  9.7.1
vtkPointSetAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
21 #ifndef vtkPointSetAlgorithm_h
22 #define vtkPointSetAlgorithm_h
23 
24 #include "vtkAlgorithm.h"
25 #include "vtkCommonExecutionModelModule.h" // For export macro
26 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkPointSet;
30 class vtkPolyData;
31 class vtkStructuredGrid;
33 
34 class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkPointSetAlgorithm : public vtkAlgorithm
35 {
36 public:
38 
42  static vtkPointSetAlgorithm* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
51  vtkPointSet* GetOutput();
52  vtkPointSet* GetOutput(int);
54 
58  vtkPolyData* GetPolyDataOutput();
59 
63  vtkStructuredGrid* GetStructuredGridOutput();
64 
68  vtkUnstructuredGrid* GetUnstructuredGridOutput();
69 
71 
76  void SetInputData(vtkDataObject*);
77  void SetInputData(int, vtkDataObject*);
78  void SetInputData(vtkPointSet*);
79  void SetInputData(int, vtkPointSet*);
81 
83 
88  void AddInputData(vtkDataObject*);
89  void AddInputData(vtkPointSet*);
90  void AddInputData(int, vtkPointSet*);
91  void AddInputData(int, vtkDataObject*);
93 
94  // This method is not recommended for use, but lots of old style filters
95  // use it
96  vtkDataObject* GetInput();
97 
102  vtkInformationVector* outputVector) override;
103 
104 protected:
106  ~vtkPointSetAlgorithm() override = default;
107 
112  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
113  vtkInformationVector* outputVector);
114 
120  {
121  return 1;
122  }
123 
129  {
130  return 1;
131  }
132 
134 
140  {
141  return 1;
142  }
144 
146  {
147  return 1;
148  }
149 
150  // see algorithm for more info
152  int FillInputPortInformation(int port, vtkInformation* info) override;
153 
154 private:
156  void operator=(const vtkPointSetAlgorithm&) = delete;
157 };
158 
159 VTK_ABI_NAMESPACE_END
160 #endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
concrete class for storing a set of points
Definition: vtkPointSet.h:58
virtual int ExecuteInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:71
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define vtkPointSetAlgorithm
virtual int ComputeInputUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:53
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
dataset represents arbitrary combinations of all possible cell types
Superclass for algorithms that process vtkPointSet input.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
topologically regular array of data
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
virtual int ComputeInputUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTK_MARSHALAUTO
general representation of visualization data
Definition: vtkDataObject.h:55