VTK  9.0.1
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 
127  vtkSetClampMacro(NumberOfLayers, int, 0, VTK_INT_MAX);
128  vtkGetMacro(NumberOfLayers, int);
130 
132 
136  vtkSetMacro(Inverse, int);
137  vtkGetMacro(Inverse, int);
139 
141 
144  vtkSetStringMacro(ArrayName);
145  vtkGetStringMacro(ArrayName);
147 
149 
153  vtkSetMacro(ArrayComponent, int);
154  vtkGetMacro(ArrayComponent, int);
156 
158 
161  vtkSetMacro(CompositeIndex, int);
162  vtkGetMacro(CompositeIndex, int);
164 
166 
170  vtkSetMacro(HierarchicalLevel, int);
171  vtkGetMacro(HierarchicalLevel, int);
172  vtkSetMacro(HierarchicalIndex, int);
173  vtkGetMacro(HierarchicalIndex, int);
175 
177 
180  vtkSetStringMacro(QueryString);
181  vtkGetStringMacro(QueryString);
183 
184 protected:
186  ~vtkSelectionSource() override;
187 
188  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
189  vtkInformationVector* outputVector) override;
190  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
191  vtkInformationVector* outputVector) override;
192 
193  vtkSelectionSourceInternals* Internal;
194 
199  int Inverse;
203  char* ArrayName;
205  char* QueryString;
207 
208 private:
209  vtkSelectionSource(const vtkSelectionSource&) = delete;
210  void operator=(const vtkSelectionSource&) = delete;
211 };
212 
213 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkSelectionSource::HierarchicalIndex
int HierarchicalIndex
Definition: vtkSelectionSource.h:202
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkSelectionSource::Inverse
int Inverse
Definition: vtkSelectionSource.h:199
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkSelectionSource::ArrayName
char * ArrayName
Definition: vtkSelectionSource.h:203
vtkSelectionSource::NumberOfLayers
int NumberOfLayers
Definition: vtkSelectionSource.h:206
vtkSelectionSource::FieldType
int FieldType
Definition: vtkSelectionSource.h:196
vtkSelectionAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkSelectionAlgorithm.h
vtkSelectionSource::CompositeIndex
int CompositeIndex
Definition: vtkSelectionSource.h:200
max
#define max(a, b)
Definition: vtkX3DExporterFIWriterHelper.h:31
vtkSelectionSource::ArrayComponent
int ArrayComponent
Definition: vtkSelectionSource.h:204
vtkSelectionSource::QueryString
char * QueryString
Definition: vtkSelectionSource.h:205
vtkSelectionAlgorithm::New
static vtkSelectionAlgorithm * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSelectionAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSelectionSource
Generate selection from given set of ids vtkSelectionSource generates a vtkSelection from a set of (p...
Definition: vtkSelectionSource.h:34
vtkSelectionSource::PreserveTopology
int PreserveTopology
Definition: vtkSelectionSource.h:198
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkSelectionAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSelectionSource::ContainingCells
int ContainingCells
Definition: vtkSelectionSource.h:197
vtkSelectionSource::Internal
vtkSelectionSourceInternals * Internal
Definition: vtkSelectionSource.h:193
vtkSelectionSource::ContentType
int ContentType
Definition: vtkSelectionSource.h:195
vtkSelectionSource::HierarchicalLevel
int HierarchicalLevel
Definition: vtkSelectionSource.h:201
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:46
vertices
std::pair< boost::graph_traits< vtkGraph * >::vertex_iterator, boost::graph_traits< vtkGraph * >::vertex_iterator > vertices(vtkGraph *g)
Definition: vtkBoostGraphAdapter.h:973