VTK
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;
60 class vtkInformation;
64 class vtkProp;
65 class vtkTable;
66 //ETX
67 
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
124  {
125  SELECTIONS, // Deprecated.
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
154  {
160  ROW
161  };
162 //ETX
164 
166 
168  virtual void SetFieldType(int type);
169  virtual int GetFieldType();
171 
173 
175  static int ConvertSelectionFieldToAttributeType(int val);
176  static int ConvertAttributeTypeToSelectionField(int val);
178 
180 
181  vtkSetStringMacro(QueryString);
182  vtkGetStringMacro(QueryString);
184 
187  static vtkInformationDoubleKey* EPSILON();
188 
192  static vtkInformationIntegerKey* CONTAINING_CELLS();
193 
198  static vtkInformationIntegerKey* COMPONENT_NUMBER();
199 
201  static vtkInformationIntegerKey* INVERSE();
202 
205  static vtkInformationIntegerKey* PIXEL_COUNT();
206 
208  static vtkInformationObjectBaseKey* SOURCE();
209 
212  static vtkInformationIntegerKey* SOURCE_ID();
213 
215  static vtkInformationObjectBaseKey* PROP();
216 
219  static vtkInformationIntegerKey* PROP_ID();
220 
222  static vtkInformationIntegerKey* PROCESS_ID();
223 
225  static vtkInformationIntegerKey* COMPOSITE_INDEX();
226 
228 
229  static vtkInformationIntegerKey* HIERARCHICAL_LEVEL();
230  static vtkInformationIntegerKey* HIERARCHICAL_INDEX();
232 
236  static vtkInformationIntegerKey* INDEXED_VERTICES();
237 
240  void UnionSelectionList(vtkSelectionNode* other);
241 
245  void SubtractSelectionList(vtkSelectionNode* other);
246 
249  bool EqualProperties(vtkSelectionNode* other, bool fullcompare=true);
250 
251 //BTX
252 protected:
254  ~vtkSelectionNode();
255 
258  char* QueryString;
259 
260 private:
261  vtkSelectionNode(const vtkSelectionNode&); // Not implemented.
262  void operator=(const vtkSelectionNode&); // Not implemented.
263 //ETX
264 };
265 
266 #endif
A node in a selection tree. Used to store selection results.
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
vtkInformation * Properties
abstract base class for most VTK objects
Definition: vtkObject.h:61
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
Key for integer values in vtkInformation.
Key for vtkObjectBase values.
represent and manipulate attribute data in a dataset
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
Key for double values in vtkInformation.
vtkDataSetAttributes * SelectionData
static vtkObject * New()
#define VTKCOMMONDATAMODEL_EXPORT