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 "vtkObject.h"
55 
56 //BTX
57 class vtkAbstractArray;
59 class vtkInformation;
63 class vtkProp;
64 class vtkTable;
65 //ETX
66 
68 {
69 public:
70  vtkTypeMacro(vtkSelectionNode,vtkObject);
71  void PrintSelf(ostream& os, vtkIndent indent);
72  static vtkSelectionNode* New();
73 
75  virtual void Initialize();
76 
78 
79  virtual void SetSelectionList(vtkAbstractArray*);
80  virtual vtkAbstractArray* GetSelectionList();
82 
84 
85  virtual void SetSelectionData(vtkDataSetAttributes* data);
86  vtkGetObjectMacro(SelectionData, vtkDataSetAttributes);
88 
90 
91  vtkGetObjectMacro(Properties, vtkInformation);
93 
95  virtual void DeepCopy(vtkSelectionNode* src);
96 
100  virtual void ShallowCopy(vtkSelectionNode* src);
101 
103  unsigned long GetMTime();
104 
105  // vtkSelectionNode specific keys follow:
107 
120  static vtkInformationIntegerKey* CONTENT_TYPE();
121 //BTX
123  {
124  SELECTIONS, // Deprecated.
132  BLOCKS // used to select blocks within a composite dataset.
133  };
134 //ETX
136 
138 
140  virtual void SetContentType(int type);
141  virtual int GetContentType();
143 
145 
149  static vtkInformationIntegerKey* FIELD_TYPE();
150 //BTX
152  {
158  ROW
159  };
160 //ETX
162 
164 
166  virtual void SetFieldType(int type);
167  virtual int GetFieldType();
169 
171 
173  virtual void SetSelectedProp(vtkProp* prop);
174  virtual vtkProp* GetSelectedProp();
176 
179  static vtkInformationDoubleKey* EPSILON();
180 
184  static vtkInformationIntegerKey* CONTAINING_CELLS();
185 
190  static vtkInformationIntegerKey* COMPONENT_NUMBER();
191 
193  static vtkInformationIntegerKey* INVERSE();
194 
197  static vtkInformationIntegerKey* PIXEL_COUNT();
198 
200  static vtkInformationObjectBaseKey* SOURCE();
201 
204  static vtkInformationIntegerKey* SOURCE_ID();
205 
207  static vtkInformationObjectBaseKey* PROP();
208 
211  static vtkInformationIntegerKey* PROP_ID();
212 
214  static vtkInformationIntegerKey* PROCESS_ID();
215 
217  static vtkInformationIntegerKey* COMPOSITE_INDEX();
218 
220 
221  static vtkInformationIntegerKey* HIERARCHICAL_LEVEL();
222  static vtkInformationIntegerKey* HIERARCHICAL_INDEX();
224 
228  static vtkInformationIntegerKey* INDEXED_VERTICES();
229 
232  void UnionSelectionList(vtkSelectionNode* other);
233 
236  bool EqualProperties(vtkSelectionNode* other, bool fullcompare=true);
237 
238 //BTX
239 protected:
241  ~vtkSelectionNode();
242 
245 
246 private:
247  vtkSelectionNode(const vtkSelectionNode&); // Not implemented.
248  void operator=(const vtkSelectionNode&); // Not implemented.
249 //ETX
250 };
251 
252 #endif
A node in a selection tree. Used to store selection results.
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:49
vtkInformation * Properties
abstract base class for most VTK objects
Definition: vtkObject.h:60
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
Abstract superclass for all arrays.
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:37
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:66
Key for double values in vtkInformation.
vtkDataSetAttributes * SelectionData
static vtkObject * New()