VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
38 class VTKFILTERSCORE_EXPORT vtkMergeFilter : public vtkDataSetAlgorithm
39 {
40 public:
41  static vtkMergeFilter *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
48  void SetGeometryInputData(vtkDataSet *input) {this->SetInputData(input);};
49  vtkDataSet *GetGeometry();
51 
53 
56  {
57  this->SetInputConnection(algOutput);
58  }
60 
62 
64  void SetScalarsData(vtkDataSet *);
65  vtkDataSet *GetScalars();
67 
69 
72  {
73  this->SetInputConnection(1, algOutput);
74  }
76 
78 
80  void SetVectorsData(vtkDataSet *);
81  vtkDataSet *GetVectors();
83 
85 
88  {
89  this->SetInputConnection(2, algOutput);
90  }
92 
94 
96  void SetNormalsData(vtkDataSet *);
97  vtkDataSet *GetNormals();
99 
101 
104  {
105  this->SetInputConnection(3, algOutput);
106  }
108 
110 
112  void SetTCoordsData(vtkDataSet *);
113  vtkDataSet *GetTCoords();
115 
117 
120  {
121  this->SetInputConnection(4, algOutput);
122  }
124 
126 
128  void SetTensorsData(vtkDataSet *);
129  vtkDataSet *GetTensors();
131 
133 
136  {
137  this->SetInputConnection(5, algOutput);
138  }
140 
143  void AddField(const char* name, vtkDataSet* input);
144 
145 protected:
146  vtkMergeFilter();
147  ~vtkMergeFilter();
148 
149  // Usual data generation method
150  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
151  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
152  int FillInputPortInformation(int port, vtkInformation *info);
153 
154  vtkFieldList* FieldList;
155 private:
156  vtkMergeFilter(const vtkMergeFilter&); // Not implemented.
157  void operator=(const vtkMergeFilter&); // Not implemented.
158  };
159 
160 #endif
161 
162 
virtual int FillInputPortInformation(int port, vtkInformation *info)
void SetScalarsConnection(vtkAlgorithmOutput *algOutput)
void SetInputData(vtkDataObject *)
void SetNormalsConnection(vtkAlgorithmOutput *algOutput)
Proxy object to connect input/output ports.
void SetVectorsConnection(vtkAlgorithmOutput *algOutput)
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)
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)