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 =========================================================================*/
46 #ifndef vtkSelectionNode_h
47 #define vtkSelectionNode_h
48 
49 #include "vtkCommonDataModelModule.h" // For export macro
50 #include "vtkObject.h"
51 
52 class vtkAbstractArray;
54 class vtkInformation;
58 class vtkProp;
59 class vtkTable;
60 
61 class VTKCOMMONDATAMODEL_EXPORT vtkSelectionNode : public vtkObject
62 {
63 public:
64  vtkTypeMacro(vtkSelectionNode,vtkObject);
65  void PrintSelf(ostream& os, vtkIndent indent) override;
66  static vtkSelectionNode* New();
67 
71  virtual void Initialize();
72 
74 
77  virtual void SetSelectionList(vtkAbstractArray*);
78  virtual vtkAbstractArray* GetSelectionList();
80 
82 
85  virtual void SetSelectionData(vtkDataSetAttributes* data);
86  vtkGetObjectMacro(SelectionData, vtkDataSetAttributes);
88 
90 
93  vtkGetObjectMacro(Properties, vtkInformation);
95 
99  virtual void DeepCopy(vtkSelectionNode* src);
100 
106  virtual void ShallowCopy(vtkSelectionNode* src);
107 
111  vtkMTimeType GetMTime() override;
112 
113  // vtkSelectionNode specific keys follow:
121  static vtkInformationIntegerKey* CONTENT_TYPE();
122 
128  {
139  USER
140  };
141 
143 
147  virtual void SetContentType(int type);
148  virtual int GetContentType();
150 
157  static vtkInformationIntegerKey* FIELD_TYPE();
158 
161  {
167  ROW
168  };
169 
171 
175  virtual void SetFieldType(int type);
176  virtual int GetFieldType();
178 
180 
184  static int ConvertSelectionFieldToAttributeType(int val);
185  static int ConvertAttributeTypeToSelectionField(int val);
187 
189 
192  vtkSetStringMacro(QueryString);
193  vtkGetStringMacro(QueryString);
195 
199  static vtkInformationDoubleKey* EPSILON();
200 
204  static vtkInformationDoubleKey* ZBUFFER_VALUE();
205 
210  static vtkInformationIntegerKey* CONTAINING_CELLS();
211 
219  static vtkInformationIntegerKey* COMPONENT_NUMBER();
220 
224  static vtkInformationIntegerKey* INVERSE();
225 
230  static vtkInformationIntegerKey* PIXEL_COUNT();
231 
235  static vtkInformationObjectBaseKey* SOURCE();
236 
241  static vtkInformationIntegerKey* SOURCE_ID();
242 
246  static vtkInformationObjectBaseKey* PROP();
247 
252  static vtkInformationIntegerKey* PROP_ID();
253 
257  static vtkInformationIntegerKey* PROCESS_ID();
258 
262  static vtkInformationIntegerKey* COMPOSITE_INDEX();
263 
265 
268  static vtkInformationIntegerKey* HIERARCHICAL_LEVEL();
269  static vtkInformationIntegerKey* HIERARCHICAL_INDEX();
271 
277  static vtkInformationIntegerKey* INDEXED_VERTICES();
278 
283  void UnionSelectionList(vtkSelectionNode* other);
284 
290  void SubtractSelectionList(vtkSelectionNode* other);
291 
295  bool EqualProperties(vtkSelectionNode* other, bool fullcompare=true);
296 
297 protected:
299  ~vtkSelectionNode() override;
300 
303  char* QueryString;
304 
305 private:
306  vtkSelectionNode(const vtkSelectionNode&) = delete;
307  void operator=(const vtkSelectionNode&) = delete;
308 
309 };
310 
311 #endif
A node in a selection tree.
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:46
Select entities near the supplied world coordinates.
vtkInformation * Properties
abstract base class for most VTK objects
Definition: vtkObject.h:53
The selection data provided is cell-data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
The selection data provided is point-data.
Abstract superclass for all arrays.
The selection data provided is graph vertex-data.
SelectionContent
Indicate the means by which data is selected.
a simple class to control print indentation
Definition: vtkIndent.h:33
Key for integer values in vtkInformation.
virtual vtkMTimeType GetMTime()
Return this object's modified time.
The selection data provided is graph edge-data.
Key for vtkObjectBase values.
Select entities with a text query.
SelectionField
Indicate the types of entities to which the selection-data applies.
represent and manipulate attribute data in a dataset
Select blocks within a composite dataset by their flat index.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
Select entities that take on specific array values.
Key for double values in vtkInformation.
vtkDataSetAttributes * SelectionData
Select entities by their offsets into the dataset.
Select entities called out by their globally-unique IDs.
Select entities whose array values fall within a given threshold.
Select entities that have some identifiable pedigree.
Select entities contained within a viewing frustum.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
The selection data provided is field-data.