VTK  9.6.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
15
16#ifndef vtkMergeFilter_h
17#define vtkMergeFilter_h
18
19#include "vtkDataSetAlgorithm.h"
20#include "vtkFiltersCoreModule.h" // For export macro
21#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
22
23VTK_ABI_NAMESPACE_BEGIN
24class vtkFieldList;
25
26class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkMergeFilter : public vtkDataSetAlgorithm
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
40 void SetGeometryInputData(vtkDataSet* input) { this->SetInputData(input); }
43
48 void SetGeometryConnection(vtkAlgorithmOutput* algOutput) { this->SetInputConnection(algOutput); }
49
51
60
66 {
67 this->SetInputConnection(1, algOutput);
68 }
69
71
80
86 {
87 this->SetInputConnection(2, algOutput);
88 }
89
91
100
106 {
107 this->SetInputConnection(3, algOutput);
108 }
109
111
121
128 {
129 this->SetInputConnection(4, algOutput);
130 }
131
133
142
148 {
149 this->SetInputConnection(5, algOutput);
150 }
151
157 void AddField(const char* name, vtkDataSet* input);
158
159protected:
161 ~vtkMergeFilter() override;
162
163 // Usual data generation method
166 int FillInputPortInformation(int port, vtkInformation* info) override;
167
168 vtkFieldList* FieldList;
170
171private:
172 vtkMergeFilter(const vtkMergeFilter&) = delete;
173 void operator=(const vtkMergeFilter&) = delete;
174};
175
176VTK_ABI_NAMESPACE_END
177#endif
Proxy object to connect input/output ports.
void SetInputData(vtkDataObject *)
Assign a data object as input.
abstract class to specify dataset behavior
Definition vtkDataSet.h:57
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
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
void SetGeometryInputData(vtkDataSet *input)
Specify object from which to extract geometry information.
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
#define VTK_MARSHALAUTO