VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Common
DataModel
vtkSelectionNode.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: ParaView
4
Module: vtkSelectionNode.h
5
6
Copyright (c) Kitware, Inc.
7
All rights reserved.
8
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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
=========================================================================*/
51
#ifndef __vtkSelectionNode_h
52
#define __vtkSelectionNode_h
53
54
#include "vtkCommonDataModelModule.h"
// For export macro
55
#include "
vtkObject.h
"
56
57
//BTX
58
class
vtkAbstractArray
;
59
class
vtkDataSetAttributes
;
60
class
vtkInformation
;
61
class
vtkInformationDoubleKey
;
62
class
vtkInformationIntegerKey
;
63
class
vtkInformationObjectBaseKey
;
64
class
vtkProp
;
65
class
vtkTable
;
66
//ETX
67
68
class
VTKCOMMONDATAMODEL_EXPORT
vtkSelectionNode
:
public
vtkObject
69
{
70
public
:
71
vtkTypeMacro(
vtkSelectionNode
,
vtkObject
);
72
void
PrintSelf
(ostream& os,
vtkIndent
indent);
73
static
vtkSelectionNode
*
New
();
74
76
virtual
void
Initialize();
77
79
80
virtual
void
SetSelectionList(
vtkAbstractArray
*);
81
virtual
vtkAbstractArray
* GetSelectionList();
83
85
86
virtual
void
SetSelectionData(
vtkDataSetAttributes
*
data
);
87
vtkGetObjectMacro(SelectionData,
vtkDataSetAttributes
);
89
91
92
vtkGetObjectMacro(Properties,
vtkInformation
);
94
96
virtual
void
DeepCopy(
vtkSelectionNode
* src);
97
101
virtual
void
ShallowCopy(
vtkSelectionNode
* src);
102
104
unsigned
long
GetMTime
();
105
106
// vtkSelectionNode specific keys follow:
108
121
static
vtkInformationIntegerKey
* CONTENT_TYPE();
122
//BTX
123
enum
SelectionContent
124
{
125
SELECTIONS
,
// Deprecated.
126
GLOBALIDS
,
127
PEDIGREEIDS
,
128
VALUES
,
129
INDICES
,
130
FRUSTUM
,
131
LOCATIONS
,
132
THRESHOLDS
,
133
BLOCKS
,
// used to select blocks within a composite dataset.
134
QUERY
135
};
136
//ETX
138
140
142
virtual
void
SetContentType(
int
type
);
143
virtual
int
GetContentType();
145
147
151
static
vtkInformationIntegerKey
* FIELD_TYPE();
152
//BTX
153
enum
SelectionField
154
{
155
CELL
,
156
POINT
,
157
FIELD
,
158
VERTEX
,
159
EDGE
,
160
ROW
161
};
162
//ETX
164
166
168
virtual
void
SetFieldType(
int
type
);
169
virtual
int
GetFieldType();
171
173
174
vtkSetStringMacro(QueryString);
175
vtkGetStringMacro
(QueryString);
177
180
static
vtkInformationDoubleKey
* EPSILON();
181
185
static
vtkInformationIntegerKey
* CONTAINING_CELLS();
186
191
static
vtkInformationIntegerKey
* COMPONENT_NUMBER();
192
194
static
vtkInformationIntegerKey
* INVERSE();
195
198
static
vtkInformationIntegerKey
* PIXEL_COUNT();
199
201
static
vtkInformationObjectBaseKey
* SOURCE();
202
205
static
vtkInformationIntegerKey
* SOURCE_ID();
206
208
static
vtkInformationObjectBaseKey
* PROP();
209
212
static
vtkInformationIntegerKey
* PROP_ID();
213
215
static
vtkInformationIntegerKey
* PROCESS_ID();
216
218
static
vtkInformationIntegerKey
* COMPOSITE_INDEX();
219
221
222
static
vtkInformationIntegerKey
* HIERARCHICAL_LEVEL();
223
static
vtkInformationIntegerKey
* HIERARCHICAL_INDEX();
225
229
static
vtkInformationIntegerKey
* INDEXED_VERTICES();
230
233
void
UnionSelectionList(
vtkSelectionNode
* other);
234
238
void
SubtractSelectionList(
vtkSelectionNode
* other);
239
242
bool
EqualProperties(
vtkSelectionNode
* other,
bool
fullcompare=
true
);
243
244
//BTX
245
protected
:
246
vtkSelectionNode
();
247
~
vtkSelectionNode
();
248
249
vtkInformation
*
Properties
;
250
vtkDataSetAttributes
*
SelectionData
;
251
char
*
QueryString
;
252
253
private
:
254
vtkSelectionNode
(
const
vtkSelectionNode
&);
// Not implemented.
255
void
operator=(
const
vtkSelectionNode
&);
// Not implemented.
256
//ETX
257
};
258
259
#endif
Generated on Thu May 24 2012 22:22:11 for VTK by
1.8.1