VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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:
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);
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 
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:
247  ~vtkSelectionNode();
248 
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
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
A node in a selection tree. Used to store selection results.
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:47
GLuint GLuint GLsizei GLenum type
Definition: vtkgl.h:11315
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)
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:94
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
GLenum src
Definition: vtkgl.h:12525
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
#define vtkGetStringMacro(name)
Definition: vtkSetGet.h:120
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
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