VTK
vtkSelectionSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSelectionSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
23 #ifndef vtkSelectionSource_h
24 #define vtkSelectionSource_h
25 
26 #include "vtkFiltersSourcesModule.h" // For export macro
27 #include "vtkSelectionAlgorithm.h"
28 
29 class vtkSelectionSourceInternals;
30 
31 class VTKFILTERSSOURCES_EXPORT vtkSelectionSource : public vtkSelectionAlgorithm
32 {
33 public:
34  static vtkSelectionSource *New();
36  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
37 
39 
44  void AddID(vtkIdType piece, vtkIdType id);
45  void AddStringID(vtkIdType piece, const char* id);
47 
51  void AddLocation(double x, double y, double z);
52 
56  void AddThreshold(double min, double max);
57 
61  void SetFrustum(double *vertices);
62 
66  void AddBlock(vtkIdType blockno);
67 
69 
72  void RemoveAllIDs();
73  void RemoveAllStringIDs();
75 
79  void RemoveAllThresholds();
80 
84  void RemoveAllLocations();
85 
89  void RemoveAllBlocks();
90 
92 
97  vtkSetMacro(ContentType, int);
98  vtkGetMacro(ContentType, int);
100 
102 
107  vtkSetMacro(FieldType, int);
108  vtkGetMacro(FieldType, int);
110 
112 
116  vtkSetMacro(ContainingCells, int);
117  vtkGetMacro(ContainingCells, int);
119 
121 
125  vtkSetMacro(Inverse, int);
126  vtkGetMacro(Inverse, int);
128 
130 
133  vtkSetStringMacro(ArrayName);
134  vtkGetStringMacro(ArrayName);
136 
138 
142  vtkSetMacro(ArrayComponent, int);
143  vtkGetMacro(ArrayComponent, int);
145 
147 
150  vtkSetMacro(CompositeIndex, int);
151  vtkGetMacro(CompositeIndex, int);
153 
155 
159  vtkSetMacro(HierarchicalLevel, int);
160  vtkGetMacro(HierarchicalLevel, int);
161  vtkSetMacro(HierarchicalIndex, int);
162  vtkGetMacro(HierarchicalIndex, int);
164 
166 
169  vtkSetStringMacro(QueryString);
170  vtkGetStringMacro(QueryString);
172 
173 protected:
175  ~vtkSelectionSource() VTK_OVERRIDE;
176 
177  int RequestInformation(vtkInformation* request,
178  vtkInformationVector** inputVector,
179  vtkInformationVector* outputVector) VTK_OVERRIDE;
180  int RequestData(vtkInformation* request,
181  vtkInformationVector** inputVector,
182  vtkInformationVector* outputVector) VTK_OVERRIDE;
183 
184  vtkSelectionSourceInternals* Internal;
185 
186  int ContentType;
187  int FieldType;
188  int ContainingCells;
189  int PreserveTopology;
190  int Inverse;
191  int CompositeIndex;
192  int HierarchicalLevel;
193  int HierarchicalIndex;
194  char *ArrayName;
195  int ArrayComponent;
196  char *QueryString;
197 
198 private:
199  vtkSelectionSource(const vtkSelectionSource&) VTK_DELETE_FUNCTION;
200  void operator=(const vtkSelectionSource&) VTK_DELETE_FUNCTION;
201 };
202 
203 #endif
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkIdType
Definition: vtkType.h:345
static vtkSelectionAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:33
Generate selection from given set of ids vtkSelectionSource generates a vtkSelection from a set of (p...
std::pair< boost::graph_traits< vtkGraph *>::vertex_iterator, boost::graph_traits< vtkGraph *>::vertex_iterator > vertices(vtkGraph *g)
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Superclass for algorithms that produce only Selection as output.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
#define max(a, b)