VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
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
37
class
VTK_GRAPHICS_EXPORT
vtkMergeFilter
:
public
vtkDataSetAlgorithm
38
{
39
public
:
40
static
vtkMergeFilter
*
New
();
41
vtkTypeMacro(
vtkMergeFilter
,
vtkDataSetAlgorithm
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent);
43
45
47
void
SetGeometry
(
vtkDataSet
*input) {this->
SetInput
(input);};
48
vtkDataSet
*GetGeometry();
50
52
54
void
SetGeometryConnection(
vtkAlgorithmOutput
* algOutput)
55
{
56
this->
SetInputConnection
(algOutput);
57
}
59
61
63
void
SetScalars(
vtkDataSet
*);
64
vtkDataSet
*GetScalars();
66
68
70
void
SetScalarsConnection(
vtkAlgorithmOutput
* algOutput)
71
{
72
this->
SetInputConnection
(1, algOutput);
73
}
75
77
79
void
SetVectors(
vtkDataSet
*);
80
vtkDataSet
*GetVectors();
82
84
86
void
SetVectorsConnection(
vtkAlgorithmOutput
* algOutput)
87
{
88
this->
SetInputConnection
(2, algOutput);
89
}
91
93
95
void
SetNormals(
vtkDataSet
*);
96
vtkDataSet
*GetNormals();
98
100
102
void
SetNormalsConnection(
vtkAlgorithmOutput
* algOutput)
103
{
104
this->
SetInputConnection
(3, algOutput);
105
}
107
109
111
void
SetTCoords(
vtkDataSet
*);
112
vtkDataSet
*GetTCoords();
114
116
118
void
SetTCoordsConnection(
vtkAlgorithmOutput
* algOutput)
119
{
120
this->
SetInputConnection
(4, algOutput);
121
}
123
125
127
void
SetTensors(
vtkDataSet
*);
128
vtkDataSet
*GetTensors();
130
132
134
void
SetTensorsConnection(
vtkAlgorithmOutput
* algOutput)
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
149
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
150
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
151
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
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
Generated on Thu Mar 13 2014 08:10:02 for VTK by
1.8.1.2