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:
41  static vtkSelectionSource *New();
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();
68  void RemoveAllStringIDs();
70 
72  void RemoveAllThresholds();
73 
75  void RemoveAllLocations();
76 
78  void RemoveAllBlocks();
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
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:247
static vtkSelectionAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
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)
Store zero or more vtkInformation instances.
vtkSelectionSourceInternals * Internal
void PrintSelf(ostream &os, vtkIndent indent)
#define max(a, b)