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 =========================================================================*/
52 #ifndef vtkSelectionNode_h
53 #define vtkSelectionNode_h
54 
55 #include "vtkCommonDataModelModule.h" // For export macro
56 #include "vtkObject.h"
57 
58 class vtkAbstractArray;
60 class vtkInformation;
64 class vtkProp;
65 class vtkTable;
66 
67 class VTKCOMMONDATAMODEL_EXPORT vtkSelectionNode : public vtkObject
68 {
69 public:
70  vtkTypeMacro(vtkSelectionNode,vtkObject);
71  void PrintSelf(ostream& os, vtkIndent indent) override;
72  static vtkSelectionNode* New();
73 
77  virtual void Initialize();
78 
80 
83  virtual void SetSelectionList(vtkAbstractArray*);
84  virtual vtkAbstractArray* GetSelectionList();
86 
88 
91  virtual void SetSelectionData(vtkDataSetAttributes* data);
92  vtkGetObjectMacro(SelectionData, vtkDataSetAttributes);
94 
96 
99  vtkGetObjectMacro(Properties, vtkInformation);
101 
105  virtual void DeepCopy(vtkSelectionNode* src);
106 
112  virtual void ShallowCopy(vtkSelectionNode* src);
113 
117  vtkMTimeType GetMTime() override;
118 
119  // vtkSelectionNode specific keys follow:
127  static vtkInformationIntegerKey* CONTENT_TYPE();
128 
134  {
145  USER
146  };
147 
149 
153  virtual void SetContentType(int type);
154  virtual int GetContentType();
156 
163  static vtkInformationIntegerKey* FIELD_TYPE();
164 
167  {
173  ROW
174  };
175 
177 
181  virtual void SetFieldType(int type);
182  virtual int GetFieldType();
184 
186 
190  static int ConvertSelectionFieldToAttributeType(int val);
191  static int ConvertAttributeTypeToSelectionField(int val);
193 
195 
198  vtkSetStringMacro(QueryString);
199  vtkGetStringMacro(QueryString);
201 
205  static vtkInformationDoubleKey* EPSILON();
206 
210  static vtkInformationDoubleKey* ZBUFFER_VALUE();
211 
216  static vtkInformationIntegerKey* CONTAINING_CELLS();
217 
225  static vtkInformationIntegerKey* COMPONENT_NUMBER();
226 
230  static vtkInformationIntegerKey* INVERSE();
231 
236  static vtkInformationIntegerKey* PIXEL_COUNT();
237 
241  static vtkInformationObjectBaseKey* SOURCE();
242 
247  static vtkInformationIntegerKey* SOURCE_ID();
248 
252  static vtkInformationObjectBaseKey* PROP();
253 
258  static vtkInformationIntegerKey* PROP_ID();
259 
263  static vtkInformationIntegerKey* PROCESS_ID();
264 
268  static vtkInformationIntegerKey* COMPOSITE_INDEX();
269 
271 
274  static vtkInformationIntegerKey* HIERARCHICAL_LEVEL();
275  static vtkInformationIntegerKey* HIERARCHICAL_INDEX();
277 
283  static vtkInformationIntegerKey* INDEXED_VERTICES();
284 
289  void UnionSelectionList(vtkSelectionNode* other);
290 
296  void SubtractSelectionList(vtkSelectionNode* other);
297 
301  bool EqualProperties(vtkSelectionNode* other, bool fullcompare=true);
302 
303 protected:
305  ~vtkSelectionNode() override;
306 
309  char* QueryString;
310 
311 private:
312  vtkSelectionNode(const vtkSelectionNode&) = delete;
313  void operator=(const vtkSelectionNode&) = delete;
314 
315 };
316 
317 #endif
A node in a selection tree.
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
Select entities near the supplied world coordinates.
vtkInformation * Properties
abstract base class for most VTK objects
Definition: vtkObject.h:59
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:39
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:68
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.