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 =========================================================================*/
25 #ifndef vtkMergeFilter_h
26 #define vtkMergeFilter_h
27 
28 #include "vtkFiltersCoreModule.h" // For export macro
29 #include "vtkDataSetAlgorithm.h"
30 
31 class vtkFieldList;
32 
33 class VTKFILTERSCORE_EXPORT vtkMergeFilter : public vtkDataSetAlgorithm
34 {
35 public:
36  static vtkMergeFilter *New();
38  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 
41 
47  void SetGeometryInputData(vtkDataSet *input) {this->SetInputData(input);};
48  vtkDataSet *GetGeometry();
50 
56  {
57  this->SetInputConnection(algOutput);
58  }
59 
61 
67  void SetScalarsData(vtkDataSet *);
68  vtkDataSet *GetScalars();
70 
76  {
77  this->SetInputConnection(1, algOutput);
78  }
79 
81 
87  void SetVectorsData(vtkDataSet *);
88  vtkDataSet *GetVectors();
90 
96  {
97  this->SetInputConnection(2, algOutput);
98  }
99 
101 
107  void SetNormalsData(vtkDataSet *);
108  vtkDataSet *GetNormals();
110 
116  {
117  this->SetInputConnection(3, algOutput);
118  }
119 
121 
128  void SetTCoordsData(vtkDataSet *);
129  vtkDataSet *GetTCoords();
131 
138  {
139  this->SetInputConnection(4, algOutput);
140  }
141 
143 
149  void SetTensorsData(vtkDataSet *);
150  vtkDataSet *GetTensors();
152 
158  {
159  this->SetInputConnection(5, algOutput);
160  }
161 
167  void AddField(const char* name, vtkDataSet* input);
168 
169 protected:
170  vtkMergeFilter();
171  ~vtkMergeFilter() VTK_OVERRIDE;
172 
173  // Usual data generation method
176  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
177 
178  vtkFieldList* FieldList;
179 private:
180  vtkMergeFilter(const vtkMergeFilter&) VTK_DELETE_FUNCTION;
181  void operator=(const vtkMergeFilter&) VTK_DELETE_FUNCTION;
182 };
183 
184 #endif
185 
186 
void SetScalarsConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract scalar information.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
void SetInputData(vtkDataObject *)
Assign a data object as input.
void SetNormalsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract normal information.
Proxy object to connect input/output ports.
void SetVectorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract vector information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
extract separate components of data from different datasets
void SetTCoordsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract texture coordinates information.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
vtkFieldList * FieldList
void SetTensorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract tensor data.
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
void SetGeometryConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract geometry information.
static vtkDataSetAlgorithm * New()
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.