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=========================================================================*/
35#ifndef vtkSelectionSource_h
36#define vtkSelectionSource_h
37
38#include "vtkFiltersSourcesModule.h" // For export macro
40
41class VTKFILTERSSOURCES_EXPORT vtkSelectionSource : public vtkSelectionAlgorithm
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
54 void AddID(vtkIdType piece, vtkIdType id);
55 void AddStringID(vtkIdType piece, const char* id);
57
61 void AddLocation(double x, double y, double z);
62
66 void AddThreshold(double min, double max);
67
71 void SetFrustum(double* vertices);
72
76 void AddBlock(vtkIdType blockno);
77
79
83 void AddBlockSelector(const char* selector);
86
88
94
99
104
109
111
116 vtkSetMacro(ContentType, int);
117 vtkGetMacro(ContentType, int);
119
121
126 vtkSetMacro(FieldType, int);
127 vtkGetMacro(FieldType, int);
129
131
135 vtkSetMacro(ContainingCells, int);
136 vtkGetMacro(ContainingCells, int);
138
140
143 vtkSetClampMacro(NumberOfLayers, int, 0, VTK_INT_MAX);
144 vtkGetMacro(NumberOfLayers, int);
146
148
152 vtkSetMacro(Inverse, int);
153 vtkGetMacro(Inverse, int);
155
157
161 vtkSetStringMacro(ArrayName);
162 vtkGetStringMacro(ArrayName);
164
166
170 vtkSetMacro(ArrayComponent, int);
171 vtkGetMacro(ArrayComponent, int);
173
175
178 vtkSetMacro(CompositeIndex, int);
179 vtkGetMacro(CompositeIndex, int);
181
183
187 vtkSetMacro(HierarchicalLevel, int);
188 vtkGetMacro(HierarchicalLevel, int);
189 vtkSetMacro(HierarchicalIndex, int);
190 vtkGetMacro(HierarchicalIndex, int);
192
194
199 vtkSetStringMacro(AssemblyName);
200 vtkGetStringMacro(AssemblyName);
201 void AddSelector(const char* selector);
204
206
209 vtkSetStringMacro(QueryString);
210 vtkGetStringMacro(QueryString);
212
213protected:
216
218 vtkInformationVector* outputVector) override;
220 vtkInformationVector* outputVector) override;
221
235
236private:
237 vtkSelectionSource(const vtkSelectionSource&) = delete;
238 void operator=(const vtkSelectionSource&) = delete;
239
240 class vtkInternals;
241 vtkInternals* Internal;
242};
243
244#endif
a simple class to control print indentation
Definition: vtkIndent.h:43
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)