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 =========================================================================*/
28 #ifndef vtkSelectionSource_h
29 #define vtkSelectionSource_h
30 
31 #include "vtkFiltersSourcesModule.h" // For export macro
32 #include "vtkSelectionAlgorithm.h"
33 
34 //BTX
35 class vtkSelectionSourceInternals;
36 //ETX
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
49  void AddID(vtkIdType piece, vtkIdType id);
50  void AddStringID(vtkIdType piece, const char* id);
52 
54  void AddLocation(double x, double y, double z);
55 
57  void AddThreshold(double min, double max);
58 
60  void SetFrustum(double *vertices);
61 
63  void AddBlock(vtkIdType blockno);
64 
66 
67  void RemoveAllIDs();
70 
73 
76 
79 
81 
83  vtkSetMacro(ContentType, int);
84  vtkGetMacro(ContentType, int);
86 
88 
90  vtkSetMacro(FieldType, int);
91  vtkGetMacro(FieldType, int);
93 
95 
97  vtkSetMacro(ContainingCells, int);
98  vtkGetMacro(ContainingCells, int);
100 
102 
104  vtkSetMacro(Inverse, int);
105  vtkGetMacro(Inverse, int);
107 
109 
110  vtkSetStringMacro(ArrayName);
111  vtkGetStringMacro(ArrayName);
113 
115 
117  vtkSetMacro(ArrayComponent, int);
118  vtkGetMacro(ArrayComponent, int);
120 
122 
124  vtkSetMacro(CompositeIndex, int);
125  vtkGetMacro(CompositeIndex, int);
127 
129 
132  vtkSetMacro(HierarchicalLevel, int);
133  vtkGetMacro(HierarchicalLevel, int);
134  vtkSetMacro(HierarchicalIndex, int);
135  vtkGetMacro(HierarchicalIndex, int);
137 
139 
140  vtkSetStringMacro(QueryString);
141  vtkGetStringMacro(QueryString);
143 
144 protected:
147 
148  virtual int RequestInformation(vtkInformation* request,
149  vtkInformationVector** inputVector,
150  vtkInformationVector* outputVector);
151  virtual int RequestData(vtkInformation* request,
152  vtkInformationVector** inputVector,
153  vtkInformationVector* outputVector);
154 
155  vtkSelectionSourceInternals* Internal;
156 
161  int Inverse;
165  char *ArrayName;
167  char *QueryString;
168 
169 private:
170  vtkSelectionSource(const vtkSelectionSource&); // Not implemented.
171  void operator=(const vtkSelectionSource&); // Not implemented.
172 };
173 
174 #endif
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkSelectionSource::AddStringID
void AddStringID(vtkIdType piece, const char *id)
vtkSelectionSource::SetFrustum
void SetFrustum(double *vertices)
vtkSelectionSource::RemoveAllStringIDs
void RemoveAllStringIDs()
vtkSelectionSource::HierarchicalIndex
int HierarchicalIndex
Definition: vtkSelectionSource.h:164
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkSelectionSource::AddLocation
void AddLocation(double x, double y, double z)
vtkSelectionSource::Inverse
int Inverse
Definition: vtkSelectionSource.h:161
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkSelectionSource::ArrayName
char * ArrayName
Definition: vtkSelectionSource.h:165
vtkSelectionSource::FieldType
int FieldType
Definition: vtkSelectionSource.h:158
vtkSelectionSource::New
static vtkSelectionSource * New()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkSelectionSource::RemoveAllIDs
void RemoveAllIDs()
vtkFiltersSourcesModule.h
vtkSelectionSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSelectionAlgorithm.h
vtkSelectionSource::CompositeIndex
int CompositeIndex
Definition: vtkSelectionSource.h:162
vtkSelectionSource::~vtkSelectionSource
~vtkSelectionSource()
max
#define max(a, b)
Definition: vtkX3DExporterFIWriterHelper.h:30
vtkSelectionSource::RemoveAllBlocks
void RemoveAllBlocks()
vtkSelectionSource::ArrayComponent
int ArrayComponent
Definition: vtkSelectionSource.h:166
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkSelectionSource::AddThreshold
void AddThreshold(double min, double max)
vtkSelectionSource::QueryString
char * QueryString
Definition: vtkSelectionSource.h:167
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkSelectionSource
Generate selection from given set of ids vtkSelectionSource generates a vtkSelection from a set of (p...
Definition: vtkSelectionSource.h:39
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkSelectionSource::AddID
void AddID(vtkIdType piece, vtkIdType id)
vtkSelectionSource::PreserveTopology
int PreserveTopology
Definition: vtkSelectionSource.h:160
vtkSelectionSource::AddBlock
void AddBlock(vtkIdType blockno)
vtkSelectionSource::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vertices
vtksys_stl::pair< boost::graph_traits< vtkGraph * >::vertex_iterator, boost::graph_traits< vtkGraph * >::vertex_iterator > vertices(vtkGraph *g)
Definition: vtkBoostGraphAdapter.h:837
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkSelectionSource::ContainingCells
int ContainingCells
Definition: vtkSelectionSource.h:159
vtkSelectionSource::Internal
vtkSelectionSourceInternals * Internal
Definition: vtkSelectionSource.h:155
vtkSelectionSource::ContentType
int ContentType
Definition: vtkSelectionSource.h:157
vtkSelectionSource::RemoveAllThresholds
void RemoveAllThresholds()
vtkSelectionSource::HierarchicalLevel
int HierarchicalLevel
Definition: vtkSelectionSource.h:163
vtkSelectionAlgorithm
Superclass for algorithms that produce only Selection as output.
Definition: vtkSelectionAlgorithm.h:46
vtkSelectionSource::RemoveAllLocations
void RemoveAllLocations()
vtkSelectionSource::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSelectionSource::vtkSelectionSource
vtkSelectionSource()