VTK
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 =========================================================================*/
31 #ifndef vtkMergeFilter_h
32 #define vtkMergeFilter_h
33 
34 #include "vtkFiltersCoreModule.h" // For export macro
35 #include "vtkDataSetAlgorithm.h"
36 
37 class vtkFieldList;
38 
39 class VTKFILTERSCORE_EXPORT vtkMergeFilter : public vtkDataSetAlgorithm
40 {
41 public:
42  static vtkMergeFilter *New();
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
47 
53  void SetGeometryInputData(vtkDataSet *input) {this->SetInputData(input);};
56 
62  {
63  this->SetInputConnection(algOutput);
64  }
65 
67 
76 
82  {
83  this->SetInputConnection(1, algOutput);
84  }
85 
87 
96 
102  {
103  this->SetInputConnection(2, algOutput);
104  }
105 
107 
116 
122  {
123  this->SetInputConnection(3, algOutput);
124  }
125 
127 
137 
144  {
145  this->SetInputConnection(4, algOutput);
146  }
147 
149 
158 
164  {
165  this->SetInputConnection(5, algOutput);
166  }
167 
173  void AddField(const char* name, vtkDataSet* input);
174 
175 protected:
177  ~vtkMergeFilter() VTK_OVERRIDE;
178 
179  // Usual data generation method
180  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
181  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
182  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
183 
184  vtkFieldList* FieldList;
185 private:
186  vtkMergeFilter(const vtkMergeFilter&) VTK_DELETE_FUNCTION;
187  void operator=(const vtkMergeFilter&) VTK_DELETE_FUNCTION;
188 };
189 
190 #endif
191 
192 
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:63
a simple class to control print indentation
Definition: vtkIndent.h:40
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()
~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()
void SetNormalsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract normal information.
vtkDataSet * GetScalars()
void SetGeometryConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract geometry information.
vtkDataSet * GetGeometry()
void SetScalarsData(vtkDataSet *)
Specify object from which to extract scalar information.
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()
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.
vtkDataSet * GetVectors()
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