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 =========================================================================*/
30 #ifndef vtkMergeFilter_h
31 #define vtkMergeFilter_h
32 
33 #include "vtkFiltersCoreModule.h" // For export macro
34 #include "vtkDataSetAlgorithm.h"
35 
36 class vtkFieldList;
37 
39 {
40 public:
41  static vtkMergeFilter *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
50  void SetGeometryInputData(vtkDataSet *input) {this->SetInputData(input);};
51  vtkDataSet *GetGeometry();
53 
55 
58  {
59  this->SetInputConnection(algOutput);
60  }
62 
64 
68  void SetScalarsData(vtkDataSet *);
69  vtkDataSet *GetScalars();
71 
73 
76  {
77  this->SetInputConnection(1, algOutput);
78  }
80 
82 
86  void SetVectorsData(vtkDataSet *);
87  vtkDataSet *GetVectors();
89 
91 
94  {
95  this->SetInputConnection(2, algOutput);
96  }
98 
100 
104  void SetNormalsData(vtkDataSet *);
105  vtkDataSet *GetNormals();
107 
109 
112  {
113  this->SetInputConnection(3, algOutput);
114  }
116 
118 
123  void SetTCoordsData(vtkDataSet *);
124  vtkDataSet *GetTCoords();
126 
128 
131  {
132  this->SetInputConnection(4, algOutput);
133  }
135 
137 
141  void SetTensorsData(vtkDataSet *);
142  vtkDataSet *GetTensors();
144 
146 
149  {
150  this->SetInputConnection(5, algOutput);
151  }
153 
156  void AddField(const char* name, vtkDataSet* input);
157 
158 protected:
159  vtkMergeFilter();
160  ~vtkMergeFilter();
161 
162  // Usual data generation method
166 
167  vtkFieldList* FieldList;
168 private:
169  vtkMergeFilter(const vtkMergeFilter&); // Not implemented.
170  void operator=(const vtkMergeFilter&); // Not implemented.
171  };
172 
173 #endif
174 
175 
virtual int FillInputPortInformation(int port, vtkInformation *info)
void SetScalarsConnection(vtkAlgorithmOutput *algOutput)
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
#define VTKFILTERSCORE_EXPORT
void SetInputData(vtkDataObject *)
void SetNormalsConnection(vtkAlgorithmOutput *algOutput)
Proxy object to connect input/output ports.
void SetVectorsConnection(vtkAlgorithmOutput *algOutput)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void SetInputConnection(int port, vtkAlgorithmOutput *input)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
extract separate components of data from different datasets
void SetTCoordsConnection(vtkAlgorithmOutput *algOutput)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkFieldList * FieldList
void SetTensorsConnection(vtkAlgorithmOutput *algOutput)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce output of the same type as input.
void SetGeometryConnection(vtkAlgorithmOutput *algOutput)
static vtkDataSetAlgorithm * New()
void SetGeometryInputData(vtkDataSet *input)