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 "vtkDataObject.h"
37 
38 //BTX
39 class vtkSelectionNode;
40 struct vtkSelectionInternals;
41 //ETX
42 
44 {
45 public:
46  vtkTypeMacro(vtkSelection,vtkDataObject);
47  void PrintSelf(ostream& os, vtkIndent indent);
48  static vtkSelection* New();
49 
51  virtual void Initialize();
52 
54  virtual int GetDataObjectType() {return VTK_SELECTION;}
55 
58  unsigned int GetNumberOfNodes();
59 
62  virtual vtkSelectionNode* GetNode(unsigned int idx);
63 
65  virtual void AddNode(vtkSelectionNode*);
66 
68 
69  virtual void RemoveNode(unsigned int idx);
70  virtual void RemoveNode(vtkSelectionNode*);
71  virtual void RemoveAllNodes();
73 
75  virtual void DeepCopy(vtkDataObject* src);
76 
79  virtual void ShallowCopy(vtkDataObject* src);
80 
84  virtual void Union(vtkSelection* selection);
85 
89  virtual void Union(vtkSelectionNode* node);
90 
93  virtual void Subtract(vtkSelection* selection);
94 
97  virtual void Subtract(vtkSelectionNode* node);
98 
100  unsigned long GetMTime();
101 
103 
104  virtual void Dump();
105  //BTX
106  virtual void Dump(ostream& os);
107  //ETX
109 
111 
113  static vtkSelection* GetData(vtkInformationVector* v, int i=0);
115 
116 //BTX
117 protected:
118  vtkSelection();
119  ~vtkSelection();
120 
121 private:
122  vtkSelection(const vtkSelection&); // Not implemented.
123  void operator=(const vtkSelection&); // Not implemented.
124 
125  vtkSelectionInternals* Internal;
126 //ETX
127 };
128 
129 #endif