VTK  9.0.1
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 "vtkDataSetAlgorithm.h"
29 #include "vtkFiltersCoreModule.h" // For export macro
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) override;
39 
41 
47  void SetGeometryInputData(vtkDataSet* input) { this->SetInputData(input); }
48  vtkDataSet* GetGeometry();
50 
55  void SetGeometryConnection(vtkAlgorithmOutput* algOutput) { this->SetInputConnection(algOutput); }
56 
58 
64  void SetScalarsData(vtkDataSet*);
65  vtkDataSet* GetScalars();
67 
73  {
74  this->SetInputConnection(1, algOutput);
75  }
76 
78 
84  void SetVectorsData(vtkDataSet*);
85  vtkDataSet* GetVectors();
87 
93  {
94  this->SetInputConnection(2, algOutput);
95  }
96 
98 
104  void SetNormalsData(vtkDataSet*);
105  vtkDataSet* GetNormals();
107 
113  {
114  this->SetInputConnection(3, algOutput);
115  }
116 
118 
125  void SetTCoordsData(vtkDataSet*);
126  vtkDataSet* GetTCoords();
128 
135  {
136  this->SetInputConnection(4, algOutput);
137  }
138 
140 
146  void SetTensorsData(vtkDataSet*);
147  vtkDataSet* GetTensors();
149 
155  {
156  this->SetInputConnection(5, algOutput);
157  }
158 
164  void AddField(const char* name, vtkDataSet* input);
165 
166 protected:
167  vtkMergeFilter();
168  ~vtkMergeFilter() override;
169 
170  // Usual data generation method
173  int FillInputPortInformation(int port, vtkInformation* info) override;
174 
175  vtkFieldList* FieldList;
176 
177 private:
178  vtkMergeFilter(const vtkMergeFilter&) = delete;
179  void operator=(const vtkMergeFilter&) = delete;
180 };
181 
182 #endif
vtkMergeFilter::SetGeometryInputData
void SetGeometryInputData(vtkDataSet *input)
Specify object from which to extract geometry information.
Definition: vtkMergeFilter.h:47
vtkMergeFilter
extract separate components of data from different datasets
Definition: vtkMergeFilter.h:33
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkMergeFilter::SetTensorsConnection
void SetTensorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract tensor data.
Definition: vtkMergeFilter.h:154
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:176
vtkMergeFilter::SetVectorsConnection
void SetVectorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract vector information.
Definition: vtkMergeFilter.h:92
vtkMergeFilter::SetScalarsConnection
void SetScalarsConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract scalar information.
Definition: vtkMergeFilter.h:72
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
@ port
Definition: vtkX3D.h:453
vtkMergeFilter::SetGeometryConnection
void SetGeometryConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract geometry information.
Definition: vtkMergeFilter.h:55
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:33
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
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:73
vtkMergeFilter::SetTCoordsConnection
void SetTCoordsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract texture coordinates information.
Definition: vtkMergeFilter.h:134
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkDataSetAlgorithm.h
vtkMergeFilter::FieldList
vtkFieldList * FieldList
Definition: vtkMergeFilter.h:175
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:36
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:112