Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkMaskPoints.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMaskPoints.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00037 #ifndef __vtkMaskPoints_h
00038 #define __vtkMaskPoints_h
00039 
00040 #include "vtkDataSetToPolyDataFilter.h"
00041 
00042 class VTK_GRAPHICS_EXPORT vtkMaskPoints : public vtkDataSetToPolyDataFilter
00043 {
00044 public:
00045   static vtkMaskPoints *New();
00046   vtkTypeRevisionMacro(vtkMaskPoints,vtkDataSetToPolyDataFilter);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050 
00051   vtkSetClampMacro(OnRatio,int,1,VTK_LARGE_INTEGER);
00052   vtkGetMacro(OnRatio,int);
00054 
00056 
00057   vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_LARGE_ID);
00058   vtkGetMacro(MaximumNumberOfPoints,vtkIdType);
00060 
00062 
00063   vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
00064   vtkGetMacro(Offset,vtkIdType);
00066 
00068 
00070   vtkSetMacro(RandomMode,int);
00071   vtkGetMacro(RandomMode,int);
00072   vtkBooleanMacro(RandomMode,int);
00074 
00076 
00080   vtkSetMacro(GenerateVertices,int);
00081   vtkGetMacro(GenerateVertices,int);
00082   vtkBooleanMacro(GenerateVertices,int);
00084 
00085 protected:
00086   vtkMaskPoints();
00087   ~vtkMaskPoints() {};
00088 
00089   void Execute();
00090 
00091   int OnRatio;     // every OnRatio point is on; all others are off.
00092   vtkIdType Offset;      // offset (or starting point id)
00093   int RandomMode;  // turn on/off randomization
00094   vtkIdType MaximumNumberOfPoints;
00095   int GenerateVertices; //generate polydata verts
00096 private:
00097   vtkMaskPoints(const vtkMaskPoints&);  // Not implemented.
00098   void operator=(const vtkMaskPoints&);  // Not implemented.
00099 };
00100 
00101 #endif
00102 
00103