VTK  9.3.0
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();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
48  void SetGeometryInputData(vtkDataSet* input) { this->SetInputData(input); }
51 
56  void SetGeometryConnection(vtkAlgorithmOutput* algOutput) { this->SetInputConnection(algOutput); }
57 
59 
68 
74  {
75  this->SetInputConnection(1, algOutput);
76  }
77 
79 
88 
94  {
95  this->SetInputConnection(2, algOutput);
96  }
97 
99 
108 
114  {
115  this->SetInputConnection(3, algOutput);
116  }
117 
119 
129 
136  {
137  this->SetInputConnection(4, algOutput);
138  }
139 
141 
150 
156  {
157  this->SetInputConnection(5, algOutput);
158  }
159 
165  void AddField(const char* name, vtkDataSet* input);
166 
167 protected:
169  ~vtkMergeFilter() override;
170 
171  // Usual data generation method
175 
176  vtkFieldList* FieldList;
178 
179 private:
180  vtkMergeFilter(const vtkMergeFilter&) = delete;
181  void operator=(const vtkMergeFilter&) = delete;
182 };
183 
184 VTK_ABI_NAMESPACE_END
185 #endif
Proxy object to connect input/output ports.
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
Superclass for algorithms that produce output of the same type as input.
void SetInputData(vtkDataObject *)
Assign a data object as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
extract separate components of data from different datasets
void SetNormalsData(vtkDataSet *)
Set / get the object from which to extract normal information.
void SetVectorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract vector information.
vtkDataSet * GetNormals()
Set / get the object from which to extract normal information.
~vtkMergeFilter() override
void SetScalarsConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract scalar information.
void AddField(const char *name, vtkDataSet *input)
Set the object from which to extract a field and the name of the field.
vtkDataSet * GetTensors()
Set / get the object from which to extract tensor data.
void SetNormalsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract normal information.
vtkDataSet * GetScalars()
Specify object from which to extract scalar information.
void SetGeometryConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract geometry information.
vtkDataSet * GetGeometry()
Specify object from which to extract geometry information.
void SetScalarsData(vtkDataSet *)
Specify object from which to extract scalar information.
vtkFieldList * FieldList
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
void SetTCoordsData(vtkDataSet *)
Set / get the object from which to extract texture coordinates information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataSet * GetTCoords()
Set / get the object from which to extract texture coordinates information.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
void SetTensorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract tensor data.
void SetTensorsData(vtkDataSet *)
Set / get the object from which to extract tensor data.
static vtkMergeFilter * New()
void SetVectorsData(vtkDataSet *)
Set / get the object from which to extract vector information.
void SetTCoordsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract texture coordinates information.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSet * GetVectors()
Set / get the object from which to extract vector information.
void SetGeometryInputData(vtkDataSet *input)
Specify object from which to extract geometry information.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ name
Definition: vtkX3D.h:219