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 "vtkDataSetAlgorithm.h"
34 
35 class vtkFieldList;
36 
38 {
39 public:
40  static vtkMergeFilter *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
47  void SetGeometry(vtkDataSet *input) {this->SetInput(input);};
48  vtkDataSet *GetGeometry();
50 
52 
55  {
56  this->SetInputConnection(algOutput);
57  }
59 
61 
63  void SetScalars(vtkDataSet *);
64  vtkDataSet *GetScalars();
66 
68 
71  {
72  this->SetInputConnection(1, algOutput);
73  }
75 
77 
79  void SetVectors(vtkDataSet *);
80  vtkDataSet *GetVectors();
82 
84 
87  {
88  this->SetInputConnection(2, algOutput);
89  }
91 
93 
95  void SetNormals(vtkDataSet *);
96  vtkDataSet *GetNormals();
98 
100 
103  {
104  this->SetInputConnection(3, algOutput);
105  }
107 
109 
111  void SetTCoords(vtkDataSet *);
112  vtkDataSet *GetTCoords();
114 
116 
119  {
120  this->SetInputConnection(4, algOutput);
121  }
123 
125 
127  void SetTensors(vtkDataSet *);
128  vtkDataSet *GetTensors();
130 
132 
135  {
136  this->SetInputConnection(5, algOutput);
137  }
139 
142  void AddField(const char* name, vtkDataSet* input);
143 
144 protected:
145  vtkMergeFilter();
146  ~vtkMergeFilter();
147 
148  // Usual data generation method
152 
153  vtkFieldList* FieldList;
154 private:
155  vtkMergeFilter(const vtkMergeFilter&); // Not implemented.
156  void operator=(const vtkMergeFilter&); // Not implemented.
157  };
158 
159 #endif
160 
161