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

vtkMaskPoints.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkMaskPoints.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00044 #ifndef __vtkMaskPoints_h
00045 #define __vtkMaskPoints_h
00046 
00047 #include "vtkDataSetToPolyDataFilter.h"
00048 
00049 class VTK_GRAPHICS_EXPORT vtkMaskPoints : public vtkDataSetToPolyDataFilter
00050 {
00051 public:
00052   static vtkMaskPoints *New();
00053   vtkTypeRevisionMacro(vtkMaskPoints,vtkDataSetToPolyDataFilter);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055 
00057 
00058   vtkSetClampMacro(OnRatio,int,1,VTK_LARGE_INTEGER);
00059   vtkGetMacro(OnRatio,int);
00061 
00063 
00064   vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_LARGE_ID);
00065   vtkGetMacro(MaximumNumberOfPoints,vtkIdType);
00067 
00069 
00070   vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
00071   vtkGetMacro(Offset,vtkIdType);
00073 
00075 
00077   vtkSetMacro(RandomMode,int);
00078   vtkGetMacro(RandomMode,int);
00079   vtkBooleanMacro(RandomMode,int);
00081 
00083 
00087   vtkSetMacro(GenerateVertices,int);
00088   vtkGetMacro(GenerateVertices,int);
00089   vtkBooleanMacro(GenerateVertices,int);
00091 
00092 protected:
00093   vtkMaskPoints();
00094   ~vtkMaskPoints() {};
00095 
00096   void Execute();
00097 
00098   int OnRatio;     // every OnRatio point is on; all others are off.
00099   vtkIdType Offset;      // offset (or starting point id)
00100   int RandomMode;  // turn on/off randomization
00101   vtkIdType MaximumNumberOfPoints;
00102   int GenerateVertices; //generate polydata verts
00103 private:
00104   vtkMaskPoints(const vtkMaskPoints&);  // Not implemented.
00105   void operator=(const vtkMaskPoints&);  // Not implemented.
00106 };
00107 
00108 #endif
00109 
00110