vtkPVSelectionSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVSelectionSource.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
25 #ifndef vtkPVSelectionSource_h
26 #define vtkPVSelectionSource_h
27 
28 #include "vtkPVVTKExtensionsExtractionModule.h" //needed for exports
29 #include "vtkSelectionAlgorithm.h"
30 
32 {
33 public:
34  static vtkPVSelectionSource* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
41  void AddFrustum(double vertices[32]);
42 
44 
47  void AddGlobalID(vtkIdType id);
48  void RemoveAllGlobalIDs();
50 
52 
55  void AddPedigreeID(const char* domain, vtkIdType id);
56  void RemoveAllPedigreeIDs();
58 
60 
63  void AddPedigreeStringID(const char* domain, const char* id);
64  void RemoveAllPedigreeStringIDs();
66 
68 
73  void AddID(vtkIdType piece, vtkIdType id);
74  void RemoveAllIDs();
76 
78 
83  void AddValue(vtkIdType piece, vtkIdType value);
84  void RemoveAllValues();
86 
88 
95  void AddCompositeID(unsigned int composite_index, vtkIdType piece, vtkIdType id);
96  void RemoveAllCompositeIDs();
98 
100 
104  void AddHierarhicalID(unsigned int level, unsigned int dataset, vtkIdType id);
105  void RemoveAllHierarchicalIDs();
107 
109 
112  void AddThreshold(double min, double max);
113  void RemoveAllThresholds();
115 
117 
120  void AddBlock(vtkIdType blockno);
121  void RemoveAllBlocks();
123 
128  void SetArrayName(const char* arrayName);
129 
131 
134  void AddLocation(double x, double y, double z);
135  void RemoveAllLocations();
137 
139 
144  vtkSetMacro(FieldType, int);
145  vtkGetMacro(FieldType, int);
147 
149 
153  vtkSetMacro(ContainingCells, int);
154  vtkGetMacro(ContainingCells, int);
156 
158  vtkSetMacro(Inverse, int);
159  vtkGetMacro(Inverse, int);
161 
163 
166  vtkSetStringMacro(QueryString);
167  vtkGetStringMacro(QueryString);
169 
171 
174  vtkSetClampMacro(NumberOfLayers, int, 0, VTK_INT_MAX);
175  vtkGetMacro(NumberOfLayers, int);
177 protected:
179  ~vtkPVSelectionSource() override;
180 
181  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
182  vtkInformationVector* outputVector) override;
183  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
184  vtkInformationVector* outputVector) override;
185 
186  enum Modes
187  {
190  ID,
198  VALUES
199  };
200 
204  int Inverse;
205  double Frustum[32];
206  char* ArrayName;
207  char* QueryString;
209 
210 private:
212  void operator=(const vtkPVSelectionSource&) = delete;
213 
214  class vtkInternal;
215  vtkInternal* Internal;
216 };
217 
218 #endif
#define VTKPVVTKEXTENSIONSEXTRACTION_EXPORT
int vtkIdType
static vtkSelectionAlgorithm * New()
selection source used to produce different types of vtkSelections.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
void operator=(const vtkObjectBase &)