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 =========================================================================*/
33 #ifndef __vtkMaskPoints_h
34 #define __vtkMaskPoints_h
35 
36 #include "vtkPolyDataAlgorithm.h"
37 
39 {
40 public:
41  static vtkMaskPoints *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkSetClampMacro(OnRatio,int,1,VTK_LARGE_INTEGER);
48  vtkGetMacro(OnRatio,int);
50 
52 
53  vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_LARGE_ID);
54  vtkGetMacro(MaximumNumberOfPoints,vtkIdType);
56 
58 
59  vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
60  vtkGetMacro(Offset,vtkIdType);
62 
64 
66  vtkSetMacro(RandomMode,int);
67  vtkGetMacro(RandomMode,int);
68  vtkBooleanMacro(RandomMode,int);
70 
72 
76  vtkSetMacro(GenerateVertices,int);
77  vtkGetMacro(GenerateVertices,int);
78  vtkBooleanMacro(GenerateVertices,int);
80 
82 
85  vtkSetMacro(SingleVertexPerCell,int);
86  vtkGetMacro(SingleVertexPerCell,int);
87  vtkBooleanMacro(SingleVertexPerCell,int);
89 
90 protected:
91  vtkMaskPoints();
93 
96 
97  int OnRatio; // every OnRatio point is on; all others are off.
98  vtkIdType Offset; // offset (or starting point id)
99  int RandomMode; // turn on/off randomization
101  int GenerateVertices; //generate polydata verts
103 private:
104  vtkMaskPoints(const vtkMaskPoints&); // Not implemented.
105  void operator=(const vtkMaskPoints&); // Not implemented.
106 };
107 
108 #endif