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 =========================================================================*/
26 #ifndef vtkSelectionSource_h
27 #define vtkSelectionSource_h
28 
29 #include "vtkFiltersSourcesModule.h" // For export macro
30 #include "vtkSelectionAlgorithm.h"
31 
32 class vtkSelectionSourceInternals;
33 
34 class VTKFILTERSSOURCES_EXPORT vtkSelectionSource : public vtkSelectionAlgorithm
35 {
36 public:
37  static vtkSelectionSource *New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
47  void AddID(vtkIdType piece, vtkIdType id);
48  void AddStringID(vtkIdType piece, const char* id);
50 
54  void AddLocation(double x, double y, double z);
55 
59  void AddThreshold(double min, double max);
60 
64  void SetFrustum(double *vertices);
65 
69  void AddBlock(vtkIdType blockno);
70 
72 
75  void RemoveAllIDs();
76  void RemoveAllStringIDs();
78 
82  void RemoveAllThresholds();
83 
87  void RemoveAllLocations();
88 
92  void RemoveAllBlocks();
93 
95 
100  vtkSetMacro(ContentType, int);
101  vtkGetMacro(ContentType, int);
103 
105 
110  vtkSetMacro(FieldType, int);
111  vtkGetMacro(FieldType, int);
113 
115 
119  vtkSetMacro(ContainingCells, int);
120  vtkGetMacro(ContainingCells, int);
122 
124 
128  vtkSetMacro(Inverse, int);
129  vtkGetMacro(Inverse, int);
131 
133 
136  vtkSetStringMacro(ArrayName);
137  vtkGetStringMacro(ArrayName);
139 
141 
145  vtkSetMacro(ArrayComponent, int);
146  vtkGetMacro(ArrayComponent, int);
148 
150 
153  vtkSetMacro(CompositeIndex, int);
154  vtkGetMacro(CompositeIndex, int);
156 
158 
162  vtkSetMacro(HierarchicalLevel, int);
163  vtkGetMacro(HierarchicalLevel, int);
164  vtkSetMacro(HierarchicalIndex, int);
165  vtkGetMacro(HierarchicalIndex, int);
167 
169 
172  vtkSetStringMacro(QueryString);
173  vtkGetStringMacro(QueryString);
175 
176 protected:
178  ~vtkSelectionSource() override;
179 
180  int RequestInformation(vtkInformation* request,
181  vtkInformationVector** inputVector,
182  vtkInformationVector* outputVector) override;
183  int RequestData(vtkInformation* request,
184  vtkInformationVector** inputVector,
185  vtkInformationVector* outputVector) override;
186 
187  vtkSelectionSourceInternals* Internal;
188 
193  int Inverse;
197  char *ArrayName;
199  char *QueryString;
200 
201 private:
202  vtkSelectionSource(const vtkSelectionSource&) = delete;
203  void operator=(const vtkSelectionSource&) = delete;
204 };
205 
206 #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:347
static vtkSelectionAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
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)
Superclass for algorithms that produce only Selection as output.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store zero or more vtkInformation instances.
vtkSelectionSourceInternals * Internal
#define max(a, b)