VTK: Filters/Core/vtkMergeFilter.h Source File

| VTK 9.3.1

vtkMergeFilter.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
25 #ifndef vtkMergeFilter_h
26 #define vtkMergeFilter_h
27
28 #include "vtkDataSetAlgorithm.h"
29 #include "vtkFiltersCoreModule.h" // For export macro
30
31 VTK_ABI_NAMESPACE_BEGIN
32 class vtkFieldList;
33
34 class VTKFILTERSCORE_EXPORT vtkMergeFilter : public vtkDataSetAlgorithm
35 {
36 public:
37 static vtkMergeFilter* New();
38 vtkTypeMacro(vtkMergeFilter, vtkDataSetAlgorithm);
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
48 void SetGeometryInputData(vtkDataSet* input) { this->SetInputData(input); }
49 vtkDataSet* GetGeometry();
51
56 void SetGeometryConnection(vtkAlgorithmOutput* algOutput) { this->SetInputConnection(algOutput); }
57
59
65 void SetScalarsData(vtkDataSet*);
66 vtkDataSet* GetScalars();
68
73 void SetScalarsConnection(vtkAlgorithmOutput* algOutput)
74 {
75 this->SetInputConnection(1, algOutput);
76 }
77
79
85 void SetVectorsData(vtkDataSet*);
86 vtkDataSet* GetVectors();
88
93 void SetVectorsConnection(vtkAlgorithmOutput* algOutput)
94 {
95 this->SetInputConnection(2, algOutput);
96 }
97
99
105 void SetNormalsData(vtkDataSet*);
106 vtkDataSet* GetNormals();
108
113 void SetNormalsConnection(vtkAlgorithmOutput* algOutput)
114 {
115 this->SetInputConnection(3, algOutput);
116 }
117
119
126 void SetTCoordsData(vtkDataSet*);
127 vtkDataSet* GetTCoords();
129
135 void SetTCoordsConnection(vtkAlgorithmOutput* algOutput)
136 {
137 this->SetInputConnection(4, algOutput);
138 }
139
141
147 void SetTensorsData(vtkDataSet*);
148 vtkDataSet* GetTensors();
150
155 void SetTensorsConnection(vtkAlgorithmOutput* algOutput)
156 {
157 this->SetInputConnection(5, algOutput);
158 }
159
165 void AddField(const char* name, vtkDataSet* input);
166
167 protected:
168 vtkMergeFilter();
169 ~vtkMergeFilter() override;
170
171 // Usual data generation method
172 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
173 int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
174 int FillInputPortInformation(int port, vtkInformation* info) override;
175
176 vtkFieldList* FieldList;
177 int FieldCount;
178
179 private:
180 vtkMergeFilter(const vtkMergeFilter&) = delete;
181 void operator=(const vtkMergeFilter&) = delete;
182 };
183
184 VTK_ABI_NAMESPACE_END
185 #endif
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:41
vtkAlgorithm::SetInputConnection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:38
vtkDataSetAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
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
vtkMergeFilter
extract separate components of data from different datasets
Definition: vtkMergeFilter.h:35
vtkMergeFilter::SetNormalsData
void SetNormalsData(vtkDataSet *)
Set / get the object from which to extract normal information.
vtkMergeFilter::SetVectorsConnection
void SetVectorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract vector information.
Definition: vtkMergeFilter.h:93
vtkMergeFilter::GetNormals
vtkDataSet * GetNormals()
Set / get the object from which to extract normal information.
vtkMergeFilter::~vtkMergeFilter
~vtkMergeFilter() override
vtkMergeFilter::SetScalarsConnection
void SetScalarsConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract scalar information.
Definition: vtkMergeFilter.h:73
vtkMergeFilter::vtkMergeFilter
vtkMergeFilter()
vtkMergeFilter::AddField
void AddField(const char *name, vtkDataSet *input)
Set the object from which to extract a field and the name of the field.
vtkMergeFilter::GetTensors
vtkDataSet * GetTensors()
Set / get the object from which to extract tensor data.
vtkMergeFilter::SetNormalsConnection
void SetNormalsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract normal information.
Definition: vtkMergeFilter.h:113
vtkMergeFilter::GetScalars
vtkDataSet * GetScalars()
Specify object from which to extract scalar information.
vtkMergeFilter::SetGeometryConnection
void SetGeometryConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract geometry information.
Definition: vtkMergeFilter.h:56
vtkMergeFilter::GetGeometry
vtkDataSet * GetGeometry()
Specify object from which to extract geometry information.
vtkMergeFilter::SetScalarsData
void SetScalarsData(vtkDataSet *)
Specify object from which to extract scalar information.
vtkMergeFilter::FieldList
vtkFieldList * FieldList
Definition: vtkMergeFilter.h:176
vtkMergeFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkMergeFilter::SetTCoordsData
void SetTCoordsData(vtkDataSet *)
Set / get the object from which to extract texture coordinates information.
vtkMergeFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMergeFilter::GetTCoords
vtkDataSet * GetTCoords()
Set / get the object from which to extract texture coordinates information.
vtkMergeFilter::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
vtkMergeFilter::SetTensorsConnection
void SetTensorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract tensor data.
Definition: vtkMergeFilter.h:155
vtkMergeFilter::SetTensorsData
void SetTensorsData(vtkDataSet *)
Set / get the object from which to extract tensor data.
vtkMergeFilter::New
static vtkMergeFilter * New()
vtkMergeFilter::SetVectorsData
void SetVectorsData(vtkDataSet *)
Set / get the object from which to extract vector information.
vtkMergeFilter::SetTCoordsConnection
void SetTCoordsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract texture coordinates information.
Definition: vtkMergeFilter.h:135
vtkMergeFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkMergeFilter::FieldCount
int FieldCount
Definition: vtkMergeFilter.h:177
vtkMergeFilter::GetVectors
vtkDataSet * GetVectors()
Set / get the object from which to extract vector information.
vtkMergeFilter::SetGeometryInputData
void SetGeometryInputData(vtkDataSet *input)
Specify object from which to extract geometry information.
Definition: vtkMergeFilter.h:48
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkDataSetAlgorithm.h