VTK: Common/ExecutionModel/vtkPointSetAlgorithm.h Source File

| VTK 9.3.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
20 #ifndef vtkPointSetAlgorithm_h
21 #define vtkPointSetAlgorithm_h
22
23 #include "vtkAlgorithm.h"
24 #include "vtkCommonExecutionModelModule.h" // For export macro
25
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkPointSet;
28 class vtkPolyData;
29 class vtkStructuredGrid;
30 class vtkUnstructuredGrid;
31
32 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkPointSetAlgorithm : public vtkAlgorithm
33 {
34 public:
35 static vtkPointSetAlgorithm* New();
36 vtkTypeMacro(vtkPointSetAlgorithm, vtkAlgorithm);
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
40
43 vtkPointSet* GetOutput();
44 vtkPointSet* GetOutput(int);
46
50 vtkPolyData* GetPolyDataOutput();
51
55 vtkStructuredGrid* GetStructuredGridOutput();
56
60 vtkUnstructuredGrid* GetUnstructuredGridOutput();
61
63
68 void SetInputData(vtkDataObject*);
69 void SetInputData(int, vtkDataObject*);
70 void SetInputData(vtkPointSet*);
71 void SetInputData(int, vtkPointSet*);
73
75
80 void AddInputData(vtkDataObject*);
81 void AddInputData(vtkPointSet*);
82 void AddInputData(int, vtkPointSet*);
83 void AddInputData(int, vtkDataObject*);
85
86 // this method is not recommended for use, but lots of old style filters
87 // use it
88 vtkDataObject* GetInput();
89
93 vtkTypeBool ProcessRequest(vtkInformation* request, vtkInformationVector** inputVector,
94 vtkInformationVector* outputVector) override;
95
96 protected:
97 vtkPointSetAlgorithm();
98 ~vtkPointSetAlgorithm() override = default;
99
104 virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
105 vtkInformationVector* outputVector);
106
111 virtual int ExecuteInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
112 {
113 return 1;
114 }
115
120 virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
121 {
122 return 1;
123 }
124
126
130 virtual int ComputeInputUpdateExtent(
131 vtkInformation*, vtkInformationVector**, vtkInformationVector*)
132 {
133 return 1;
134 }
136
137 // see algorithm for more info
138 int FillOutputPortInformation(int port, vtkInformation* info) override;
139 int FillInputPortInformation(int port, vtkInformation* info) override;
140
141 private:
142 vtkPointSetAlgorithm(const vtkPointSetAlgorithm&) = delete;
143 void operator=(const vtkPointSetAlgorithm&) = delete;
144 };
145
146 VTK_ABI_NAMESPACE_END
147 #endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:33
vtkPointSetAlgorithm::GetPolyDataOutput
vtkPolyData * GetPolyDataOutput()
Get the output as vtkPolyData.
vtkPointSetAlgorithm::GetStructuredGridOutput
vtkStructuredGrid * GetStructuredGridOutput()
Get the output as vtkStructuredGrid.
vtkPointSetAlgorithm::GetInput
vtkDataObject * GetInput()
vtkPointSetAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkPointSetAlgorithm::vtkPointSetAlgorithm
vtkPointSetAlgorithm()
vtkPointSetAlgorithm::GetOutput
vtkPointSet * GetOutput()
Get the output data object for a port on this algorithm.
vtkPointSetAlgorithm::SetInputData
void SetInputData(vtkPointSet *)
Assign a data object as input.
vtkPointSetAlgorithm::AddInputData
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkPointSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:120
vtkPointSetAlgorithm::~vtkPointSetAlgorithm
~vtkPointSetAlgorithm() override=default
vtkPointSetAlgorithm::GetUnstructuredGridOutput
vtkUnstructuredGrid * GetUnstructuredGridOutput()
Get the output as vtkUnstructuredGrid.
vtkPointSetAlgorithm::AddInputData
void AddInputData(vtkPointSet *)
Assign a data object as input.
vtkPointSetAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkPointSetAlgorithm::SetInputData
void SetInputData(int, vtkPointSet *)
Assign a data object as input.
vtkPointSetAlgorithm::ComputeInputUpdateExtent
virtual int ComputeInputUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:130
vtkPointSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPointSetAlgorithm::ExecuteInformation
virtual int ExecuteInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:111
vtkPointSetAlgorithm::ProcessRequest
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
vtkPointSetAlgorithm::GetOutput
vtkPointSet * GetOutput(int)
Get the output data object for a port on this algorithm.
vtkPointSetAlgorithm::AddInputData
void AddInputData(int, vtkPointSet *)
Assign a data object as input.
vtkPointSetAlgorithm::New
static vtkPointSetAlgorithm * New()
vtkPointSetAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkPointSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkPointSetAlgorithm::AddInputData
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
vtkPointSetAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
vtkPointSet
concrete class for storing a set of points
Definition: vtkPointSet.h:68
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:89
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:63
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:99
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkAlgorithm.h