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 "vtkSelectionAlgorithm.h"
32 
33 //BTX
34 class vtkSelectionSourceInternals;
35 //ETX
36 
38 {
39 public:
40  static vtkSelectionSource *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
48  void AddID(vtkIdType piece, vtkIdType id);
49  void AddStringID(vtkIdType piece, const char* id);
51 
53  void AddLocation(double x, double y, double z);
54 
56  void AddThreshold(double min, double max);
57 
59  void SetFrustum(double *vertices);
60 
62  void AddBlock(vtkIdType blockno);
63 
65 
66  void RemoveAllIDs();
67  void RemoveAllStringIDs();
69 
71  void RemoveAllThresholds();
72 
74  void RemoveAllLocations();
75 
77  void RemoveAllBlocks();
78 
80 
82  vtkSetMacro(ContentType, int);
83  vtkGetMacro(ContentType, int);
85 
87 
89  vtkSetMacro(FieldType, int);
90  vtkGetMacro(FieldType, int);
92 
94 
96  vtkSetMacro(ContainingCells, int);
97  vtkGetMacro(ContainingCells, int);
99 
101 
103  vtkSetMacro(Inverse, int);
104  vtkGetMacro(Inverse, int);
106 
108 
109  vtkSetStringMacro(ArrayName);
110  vtkGetStringMacro(ArrayName);
112 
114 
116  vtkSetMacro(ArrayComponent, int);
117  vtkGetMacro(ArrayComponent, int);
119 
121 
123  vtkSetMacro(CompositeIndex, int);
124  vtkGetMacro(CompositeIndex, int);
126 
128 
131  vtkSetMacro(HierarchicalLevel, int);
132  vtkGetMacro(HierarchicalLevel, int);
133  vtkSetMacro(HierarchicalIndex, int);
134  vtkGetMacro(HierarchicalIndex, int);
135 protected:
139 
140  virtual int RequestInformation(vtkInformation* request,
141  vtkInformationVector** inputVector,
142  vtkInformationVector* outputVector);
143 
144  virtual int RequestData(vtkInformation* request,
145  vtkInformationVector** inputVector,
146  vtkInformationVector* outputVector);
147 
148  vtkSelectionSourceInternals* Internal;
149 
154  int Inverse;
158  char *ArrayName;
160 
161 private:
162  vtkSelectionSource(const vtkSelectionSource&); // Not implemented.
163  void operator=(const vtkSelectionSource&); // Not implemented.
164 };
165 
166 #endif