VTK  9.2.6
vtkMergeFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkMergeFilter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
47#ifndef vtkMergeFilter_h
48#define vtkMergeFilter_h
49
50#include "vtkDataSetAlgorithm.h"
51#include "vtkFiltersCoreModule.h" // For export macro
52
53class vtkFieldList;
54
55class VTKFILTERSCORE_EXPORT vtkMergeFilter : public vtkDataSetAlgorithm
56{
57public:
60 void PrintSelf(ostream& os, vtkIndent indent) override;
61
63
69 void SetGeometryInputData(vtkDataSet* input) { this->SetInputData(input); }
72
77 void SetGeometryConnection(vtkAlgorithmOutput* algOutput) { this->SetInputConnection(algOutput); }
78
80
89
95 {
96 this->SetInputConnection(1, algOutput);
97 }
98
100
109
115 {
116 this->SetInputConnection(2, algOutput);
117 }
118
120
129
135 {
136 this->SetInputConnection(3, algOutput);
137 }
138
140
150
157 {
158 this->SetInputConnection(4, algOutput);
159 }
160
162
171
177 {
178 this->SetInputConnection(5, algOutput);
179 }
180
186 void AddField(const char* name, vtkDataSet* input);
187
188protected:
190 ~vtkMergeFilter() override;
191
192 // Usual data generation method
196
197 vtkFieldList* FieldList;
198
199private:
200 vtkMergeFilter(const vtkMergeFilter&) = delete;
201 void operator=(const vtkMergeFilter&) = delete;
202};
203
204#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:172
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
extract separate components of data from different datasets
vtkDataSet * GetTCoords()
Set / get the object from which to extract texture coordinates information.
vtkDataSet * GetVectors()
Set / get the object from which to extract vector information.
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.
~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 * GetGeometry()
Specify object from which to extract geometry information.
void SetNormalsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract normal information.
vtkDataSet * GetTensors()
Set / get the object from which to extract tensor data.
void SetGeometryConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract geometry information.
void SetScalarsData(vtkDataSet *)
Specify object from which to extract scalar information.
vtkFieldList * FieldList
vtkDataSet * GetNormals()
Set / get the object from which to extract normal information.
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.
static vtkMergeFilter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.
vtkDataSet * GetScalars()
Specify object from which to extract scalar information.
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.
void SetGeometryInputData(vtkDataSet *input)
Specify object from which to extract geometry information.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ name
Definition: vtkX3D.h:225