VTK  9.1.0
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 =========================================================================*/
44 #ifndef vtkMergeFilter_h
45 #define vtkMergeFilter_h
46 
47 #include "vtkDataSetAlgorithm.h"
48 #include "vtkFiltersCoreModule.h" // For export macro
49 
50 class vtkFieldList;
51 
52 class VTKFILTERSCORE_EXPORT vtkMergeFilter : public vtkDataSetAlgorithm
53 {
54 public:
55  static vtkMergeFilter* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
66  void SetGeometryInputData(vtkDataSet* input) { this->SetInputData(input); }
69 
74  void SetGeometryConnection(vtkAlgorithmOutput* algOutput) { this->SetInputConnection(algOutput); }
75 
77 
86 
92  {
93  this->SetInputConnection(1, algOutput);
94  }
95 
97 
106 
112  {
113  this->SetInputConnection(2, algOutput);
114  }
115 
117 
126 
132  {
133  this->SetInputConnection(3, algOutput);
134  }
135 
137 
147 
154  {
155  this->SetInputConnection(4, algOutput);
156  }
157 
159 
168 
174  {
175  this->SetInputConnection(5, algOutput);
176  }
177 
183  void AddField(const char* name, vtkDataSet* input);
184 
185 protected:
187  ~vtkMergeFilter() override;
188 
189  // Usual data generation method
193 
194  vtkFieldList* FieldList;
195 
196 private:
197  vtkMergeFilter(const vtkMergeFilter&) = delete;
198  void operator=(const vtkMergeFilter&) = delete;
199 };
200 
201 #endif
vtkMergeFilter::GetTCoords
vtkDataSet * GetTCoords()
Set / get the object from which to extract texture coordinates information.
vtkMergeFilter::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkMergeFilter::SetGeometryInputData
void SetGeometryInputData(vtkDataSet *input)
Specify object from which to extract geometry information.
Definition: vtkMergeFilter.h:66
vtkMergeFilter::SetNormalsData
void SetNormalsData(vtkDataSet *)
Set / get the object from which to extract normal information.
vtkMergeFilter
extract separate components of data from different datasets
Definition: vtkMergeFilter.h:53
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkMergeFilter::SetTensorsConnection
void SetTensorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract tensor data.
Definition: vtkMergeFilter.h:173
vtkMergeFilter::GetGeometry
vtkDataSet * GetGeometry()
Specify object from which to extract geometry information.
vtkMergeFilter::~vtkMergeFilter
~vtkMergeFilter() override
vtkMergeFilter::SetVectorsConnection
void SetVectorsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract vector information.
Definition: vtkMergeFilter.h:111
vtkMergeFilter::SetScalarsConnection
void SetScalarsConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract scalar information.
Definition: vtkMergeFilter.h:91
vtkDataSetAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkMergeFilter::GetVectors
vtkDataSet * GetVectors()
Set / get the object from which to extract vector information.
vtkMergeFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:49
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkMergeFilter::GetTensors
vtkDataSet * GetTensors()
Set / get the object from which to extract tensor data.
vtkMergeFilter::SetGeometryConnection
void SetGeometryConnection(vtkAlgorithmOutput *algOutput)
Specify object from which to extract geometry information.
Definition: vtkMergeFilter.h:74
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkMergeFilter::GetNormals
vtkDataSet * GetNormals()
Set / get the object from which to extract normal information.
vtkMergeFilter::SetVectorsData
void SetVectorsData(vtkDataSet *)
Set / get the object from which to extract vector information.
vtkMergeFilter::vtkMergeFilter
vtkMergeFilter()
vtkMergeFilter::New
static vtkMergeFilter * New()
vtkMergeFilter::SetTCoordsData
void SetTCoordsData(vtkDataSet *)
Set / get the object from which to extract texture coordinates information.
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkMergeFilter::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
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:183
vtkMergeFilter::SetTCoordsConnection
void SetTCoordsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract texture coordinates information.
Definition: vtkMergeFilter.h:153
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkDataSetAlgorithm.h
vtkMergeFilter::AddField
void AddField(const char *name, vtkDataSet *input)
Set the object from which to extract a field and the name of the field.
vtkMergeFilter::FieldList
vtkFieldList * FieldList
Definition: vtkMergeFilter.h:194
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:66
vtkMergeFilter::SetScalarsData
void SetScalarsData(vtkDataSet *)
Specify object from which to extract scalar information.
vtkMergeFilter::GetScalars
vtkDataSet * GetScalars()
Specify object from which to extract scalar information.
vtkMergeFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMergeFilter::SetTensorsData
void SetTensorsData(vtkDataSet *)
Set / get the object from which to extract tensor data.
vtkMergeFilter::SetNormalsConnection
void SetNormalsConnection(vtkAlgorithmOutput *algOutput)
Set the connection from which to extract normal information.
Definition: vtkMergeFilter.h:131