VTK  9.1.0
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=========================================================================*/
45#ifndef vtkSelectionSource_h
46#define vtkSelectionSource_h
47
48#include "vtkFiltersSourcesModule.h" // For export macro
50
51class VTKFILTERSSOURCES_EXPORT vtkSelectionSource : public vtkSelectionAlgorithm
52{
53public:
56 void PrintSelf(ostream& os, vtkIndent indent) override;
57
59
64 void AddID(vtkIdType piece, vtkIdType id);
65 void AddStringID(vtkIdType piece, const char* id);
67
71 void AddLocation(double x, double y, double z);
72
76 void AddThreshold(double min, double max);
77
81 void SetFrustum(double* vertices);
82
86 void AddBlock(vtkIdType blockno);
87
89
93 void AddBlockSelector(const char* selector);
96
98
104
109
114
119
121
126 vtkSetMacro(ContentType, int);
127 vtkGetMacro(ContentType, int);
129
131
136 vtkSetMacro(FieldType, int);
137 vtkGetMacro(FieldType, int);
139
141
145 vtkSetMacro(ContainingCells, int);
146 vtkGetMacro(ContainingCells, int);
148
150
153 vtkSetClampMacro(NumberOfLayers, int, 0, VTK_INT_MAX);
154 vtkGetMacro(NumberOfLayers, int);
156
158
162 vtkSetMacro(Inverse, int);
163 vtkGetMacro(Inverse, int);
165
167
171 vtkSetStringMacro(ArrayName);
172 vtkGetStringMacro(ArrayName);
174
176
180 vtkSetMacro(ArrayComponent, int);
181 vtkGetMacro(ArrayComponent, int);
183
185
188 vtkSetMacro(CompositeIndex, int);
189 vtkGetMacro(CompositeIndex, int);
191
193
197 vtkSetMacro(HierarchicalLevel, int);
198 vtkGetMacro(HierarchicalLevel, int);
199 vtkSetMacro(HierarchicalIndex, int);
200 vtkGetMacro(HierarchicalIndex, int);
202
204
209 vtkSetStringMacro(AssemblyName);
210 vtkGetStringMacro(AssemblyName);
211 void AddSelector(const char* selector);
214
216
219 vtkSetStringMacro(QueryString);
220 vtkGetStringMacro(QueryString);
222
223protected:
226
228 vtkInformationVector* outputVector) override;
230 vtkInformationVector* outputVector) override;
231
245
246private:
247 vtkSelectionSource(const vtkSelectionSource&) = delete;
248 void operator=(const vtkSelectionSource&) = delete;
249
250 class vtkInternals;
251 vtkInternals* Internal;
252};
253
254#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Selection as output.
Generate selection from given set of ids vtkSelectionSource generates a vtkSelection from a set of (p...
void RemoveAllThresholds()
Remove all thresholds added with AddThreshold.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void AddBlock(vtkIdType blockno)
Add the flat-index/composite index for a block.
void AddBlockSelector(const char *selector)
Add/Remove block-selectors to make selections with vtkSelectionNode::BLOCK_SELECTORS as the content-t...
void AddStringID(vtkIdType piece, const char *id)
Add a (piece, id) to the selection set.
void RemoveAllSelectors()
For selector-based selection qualification.
void SetFrustum(double *vertices)
Set a frustum to choose within.
static vtkSelectionSource * New()
void AddLocation(double x, double y, double z)
Add a point in world space to probe at.
void RemoveAllStringIDs()
Removes all IDs.
void RemoveAllLocations()
Remove all locations added with AddLocation.
void RemoveAllIDs()
Removes all IDs.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
~vtkSelectionSource() override
void AddSelector(const char *selector)
For selector-based selection qualification.
void RemoveAllBlocks()
Remove all blocks added with AddBlock.
void AddID(vtkIdType piece, vtkIdType id)
Add a (piece, id) to the selection set.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void RemoveAllBlockSelectors()
Add/Remove block-selectors to make selections with vtkSelectionNode::BLOCK_SELECTORS as the content-t...
void AddThreshold(double min, double max)
Add a value range to threshold within.
std::pair< boost::graph_traits< vtkGraph * >::vertex_iterator, boost::graph_traits< vtkGraph * >::vertex_iterator > vertices(vtkGraph *g)
int vtkIdType
Definition: vtkType.h:332
#define VTK_INT_MAX
Definition: vtkType.h:155
#define max(a, b)