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

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 =========================================================================*/
00048 #ifndef __vtkMaskPoints_h
00049 #define __vtkMaskPoints_h
00050 
00051 #include "vtkDataSetToPolyDataFilter.h"
00052 
00053 class VTK_GRAPHICS_EXPORT vtkMaskPoints : public vtkDataSetToPolyDataFilter
00054 {
00055 public:
00056   static vtkMaskPoints *New();
00057   vtkTypeRevisionMacro(vtkMaskPoints,vtkDataSetToPolyDataFilter);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061 
00062   vtkSetClampMacro(OnRatio,int,1,VTK_LARGE_INTEGER);
00063   vtkGetMacro(OnRatio,int);
00065 
00067 
00068   vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_LARGE_ID);
00069   vtkGetMacro(MaximumNumberOfPoints,vtkIdType);
00071 
00073 
00074   vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
00075   vtkGetMacro(Offset,vtkIdType);
00077 
00079 
00081   vtkSetMacro(RandomMode,int);
00082   vtkGetMacro(RandomMode,int);
00083   vtkBooleanMacro(RandomMode,int);
00085 
00087 
00091   vtkSetMacro(GenerateVertices,int);
00092   vtkGetMacro(GenerateVertices,int);
00093   vtkBooleanMacro(GenerateVertices,int);
00095 
00096 protected:
00097   vtkMaskPoints();
00098   ~vtkMaskPoints() {};
00099 
00100   void Execute();
00101 
00102   int OnRatio;     // every OnRatio point is on; all others are off.
00103   vtkIdType Offset;      // offset (or starting point id)
00104   int RandomMode;  // turn on/off randomization
00105   vtkIdType MaximumNumberOfPoints;
00106   int GenerateVertices; //generate polydata verts
00107 private:
00108   vtkMaskPoints(const vtkMaskPoints&);  // Not implemented.
00109   void operator=(const vtkMaskPoints&);  // Not implemented.
00110 };
00111 
00112 #endif
00113 
00114