Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
00033 #ifndef __vtkMaskPoints_h
00034 #define __vtkMaskPoints_h
00035 
00036 #include "vtkPolyDataAlgorithm.h"
00037 
00038 class VTK_GRAPHICS_EXPORT vtkMaskPoints : public vtkPolyDataAlgorithm
00039 {
00040 public:
00041   static vtkMaskPoints *New();
00042   vtkTypeRevisionMacro(vtkMaskPoints,vtkPolyDataAlgorithm);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046 
00047   vtkSetClampMacro(OnRatio,int,1,VTK_LARGE_INTEGER);
00048   vtkGetMacro(OnRatio,int);
00050 
00052 
00053   vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_LARGE_ID);
00054   vtkGetMacro(MaximumNumberOfPoints,vtkIdType);
00056 
00058 
00059   vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
00060   vtkGetMacro(Offset,vtkIdType);
00062 
00064 
00066   vtkSetMacro(RandomMode,int);
00067   vtkGetMacro(RandomMode,int);
00068   vtkBooleanMacro(RandomMode,int);
00070 
00072 
00076   vtkSetMacro(GenerateVertices,int);
00077   vtkGetMacro(GenerateVertices,int);
00078   vtkBooleanMacro(GenerateVertices,int);
00080 
00081 protected:
00082   vtkMaskPoints();
00083   ~vtkMaskPoints() {};
00084 
00085   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00086   virtual int FillInputPortInformation(int port, vtkInformation *info);
00087 
00088   int OnRatio;     // every OnRatio point is on; all others are off.
00089   vtkIdType Offset;      // offset (or starting point id)
00090   int RandomMode;  // turn on/off randomization
00091   vtkIdType MaximumNumberOfPoints;
00092   int GenerateVertices; //generate polydata verts
00093 private:
00094   vtkMaskPoints(const vtkMaskPoints&);  // Not implemented.
00095   void operator=(const vtkMaskPoints&);  // Not implemented.
00096 };
00097 
00098 #endif

Generated on Mon Jan 21 23:07:25 2008 for VTK by  doxygen 1.4.3-20050530