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) override;
45 
47 
53  void SetGeometryInputData(vtkDataSet *input) {this->SetInputData(input);};
54  vtkDataSet *GetGeometry();
56 
62  {
63  this->SetInputConnection(algOutput);
64  }
65 
67 
73  void SetScalarsData(vtkDataSet *);
74  vtkDataSet *GetScalars();
76 
82  {
83  this->SetInputConnection(1, algOutput);
84  }
85 
87 
93  void SetVectorsData(vtkDataSet *);
94  vtkDataSet *GetVectors();
96 
102  {
103  this->SetInputConnection(2, algOutput);
104  }
105 
107 
113  void SetNormalsData(vtkDataSet *);
114  vtkDataSet *GetNormals();
116 
122  {
123  this->SetInputConnection(3, algOutput);
124  }
125 
127 
134  void SetTCoordsData(vtkDataSet *);
135  vtkDataSet *GetTCoords();
137 
144  {
145  this->SetInputConnection(4, algOutput);
146  }
147 
149 
155  void SetTensorsData(vtkDataSet *);
156  vtkDataSet *GetTensors();
158 
164  {
165  this->SetInputConnection(5, algOutput);
166  }
167 
173  void AddField(const char* name, vtkDataSet* input);
174 
175 protected:
176  vtkMergeFilter();
177  ~vtkMergeFilter() override;
178 
179  // Usual data generation method
182  int FillInputPortInformation(int port, vtkInformation *info) override;
183 
184  vtkFieldList* FieldList;
185 private:
186  vtkMergeFilter(const vtkMergeFilter&) = delete;
187  void operator=(const vtkMergeFilter&) = delete;
188 };
189 
190 #endif
191 
192 
vtkMergeFilter::SetGeometryInputData
void SetGeometryInputData(vtkDataSet *input)
Specify object from which to extract geometry information.
Definition: vtkMergeFilter.h:53
vtkMergeFilter
extract separate components of data from different datasets
Definition: vtkMergeFilter.h:39
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkMergeFilter::SetTensorsConnection
void SetTensorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract tensor data.
Definition: vtkMergeFilter.h:163
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:180
vtkMergeFilter::SetVectorsConnection
void SetVectorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract vector information.
Definition: vtkMergeFilter.h:101
vtkMergeFilter::SetScalarsConnection
void SetScalarsConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract scalar information.
Definition: vtkMergeFilter.h:81
vtkDataSetAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:48
vtkX3D::port
Definition: vtkX3D.h:447
vtkMergeFilter::SetGeometryConnection
void SetGeometryConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract geometry information.
Definition: vtkMergeFilter.h:61
vtkDataSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkX3D::name
Definition: vtkX3D.h:219
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkAlgorithm::SetInputConnection
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
Set the connection for the given input port index.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:70
vtkMergeFilter::SetTCoordsConnection
void SetTCoordsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract texture coordinates information.
Definition: vtkMergeFilter.h:143
vtkX3D::info
Definition: vtkX3D.h:376
vtkDataSetAlgorithm.h
vtkMergeFilter::FieldList
vtkFieldList * FieldList
Definition: vtkMergeFilter.h:184
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:42
vtkDataSetAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
Definition: vtkDataSetAlgorithm.h:152
vtkMergeFilter::SetNormalsConnection
void SetNormalsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract normal information.
Definition: vtkMergeFilter.h:121