VTK
vtkSelection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSelection.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 =========================================================================*/
33 #ifndef vtkSelection_h
34 #define vtkSelection_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkDataObject.h"
38 
39 //BTX
40 class vtkSelectionNode;
41 struct vtkSelectionInternals;
42 //ETX
43 
45 {
46 public:
47  vtkTypeMacro(vtkSelection,vtkDataObject);
48  void PrintSelf(ostream& os, vtkIndent indent);
49  static vtkSelection* New();
50 
52  virtual void Initialize();
53 
55  virtual int GetDataObjectType() {return VTK_SELECTION;}
56 
59  unsigned int GetNumberOfNodes();
60 
63  virtual vtkSelectionNode* GetNode(unsigned int idx);
64 
66  virtual void AddNode(vtkSelectionNode*);
67 
69 
70  virtual void RemoveNode(unsigned int idx);
71  virtual void RemoveNode(vtkSelectionNode*);
72  virtual void RemoveAllNodes();
74 
76  virtual void DeepCopy(vtkDataObject* src);
77 
80  virtual void ShallowCopy(vtkDataObject* src);
81 
85  virtual void Union(vtkSelection* selection);
86 
90  virtual void Union(vtkSelectionNode* node);
91 
94  virtual void Subtract(vtkSelection* selection);
95 
98  virtual void Subtract(vtkSelectionNode* node);
99 
101  unsigned long GetMTime();
102 
104 
105  virtual void Dump();
106  //BTX
107  virtual void Dump(ostream& os);
108  //ETX
110 
112 
114  static vtkSelection* GetData(vtkInformationVector* v, int i=0);
116 
117 //BTX
118 protected:
119  vtkSelection();
120  ~vtkSelection();
121 
122 private:
123  vtkSelection(const vtkSelection&); // Not implemented.
124  void operator=(const vtkSelection&); // Not implemented.
125 
126  vtkSelectionInternals* Internal;
127 //ETX
128 };
129 
130 #endif
A node in a selection tree. Used to store selection results.
static vtkDataObject * GetData(vtkInformation *info)
static vtkDataObject * New()
Store vtkAlgorithm input/output information.
unsigned long int GetMTime()
A node in a selection tree. Used to store selection results.
Definition: vtkSelection.h:44
virtual void Initialize()
#define VTK_SELECTION
Definition: vtkType.h:88
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual int GetDataObjectType()
Definition: vtkSelection.h:55
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64
virtual void DeepCopy(vtkDataObject *src)
#define VTKCOMMONDATAMODEL_EXPORT
virtual void ShallowCopy(vtkDataObject *src)