VTK
vtkMaskPoints.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMaskPoints.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 =========================================================================*/
31 #ifndef vtkMaskPoints_h
32 #define vtkMaskPoints_h
33 
34 #include "vtkFiltersCoreModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 
37 class VTKFILTERSCORE_EXPORT vtkMaskPoints : public vtkPolyDataAlgorithm
38 {
39 public:
40  static vtkMaskPoints *New();
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 
45 
48  vtkSetClampMacro(OnRatio,int,1,VTK_INT_MAX);
49  vtkGetMacro(OnRatio,int);
51 
53 
57  vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_ID_MAX);
58  vtkGetMacro(MaximumNumberOfPoints,vtkIdType);
60 
62 
65  vtkSetClampMacro(Offset,vtkIdType,0,VTK_ID_MAX);
66  vtkGetMacro(Offset,vtkIdType);
68 
70 
73  vtkSetMacro(RandomMode,int);
74  vtkGetMacro(RandomMode,int);
75  vtkBooleanMacro(RandomMode,int);
77 
79 
100  vtkSetClampMacro(RandomModeType, int, 0, 2);
101  vtkGetMacro(RandomModeType, int);
103 
105 
118  vtkSetMacro(ProportionalMaximumNumberOfPoints, int);
119  vtkGetMacro(ProportionalMaximumNumberOfPoints, int);
120  vtkBooleanMacro(ProportionalMaximumNumberOfPoints, int);
122 
124 
129  vtkSetMacro(GenerateVertices,int);
130  vtkGetMacro(GenerateVertices,int);
131  vtkBooleanMacro(GenerateVertices,int);
133 
135 
140  vtkSetMacro(SingleVertexPerCell,int);
141  vtkGetMacro(SingleVertexPerCell,int);
142  vtkBooleanMacro(SingleVertexPerCell,int);
144 
146 
151  vtkSetMacro(OutputPointsPrecision,int);
152  vtkGetMacro(OutputPointsPrecision,int);
154 
155 protected:
156  vtkMaskPoints();
157  ~vtkMaskPoints() VTK_OVERRIDE {}
158 
160  vtkInformationVector *) VTK_OVERRIDE;
161  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
162 
163  int OnRatio; // every OnRatio point is on; all others are off.
164  vtkIdType Offset; // offset (or starting point id)
165  int RandomMode; // turn on/off randomization
167  int GenerateVertices; //generate polydata verts
169  int RandomModeType; // choose the random sampling mode
172 
173  virtual void InternalScatter(unsigned long*, unsigned long *, int, int) {}
174  virtual void InternalGather(unsigned long*, unsigned long*, int, int) {}
175  virtual int InternalGetNumberOfProcesses() { return 1; };
176  virtual int InternalGetLocalProcessId() { return 0; };
177  virtual void InternalBarrier() {}
178  unsigned long GetLocalSampleSize(vtkIdType, int);
179 
180 private:
181  vtkMaskPoints(const vtkMaskPoints&) VTK_DELETE_FUNCTION;
182  void operator=(const vtkMaskPoints&) VTK_DELETE_FUNCTION;
183 };
184 
185 #endif
int ProportionalMaximumNumberOfPoints
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:157
int OutputPointsPrecision
int vtkIdType
Definition: vtkType.h:345
~vtkMaskPoints() override
virtual int InternalGetNumberOfProcesses()
virtual void InternalBarrier()
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkIdType MaximumNumberOfPoints
selectively filter points
Definition: vtkMaskPoints.h:37
vtkIdType Offset
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int InternalGetLocalProcessId()
virtual void InternalGather(unsigned long *, unsigned long *, int, int)
#define VTK_ID_MAX
Definition: vtkType.h:349
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void InternalScatter(unsigned long *, unsigned long *, int, int)