• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Graphics/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 =========================================================================*/
00030 #ifndef __vtkMaskPoints_h
00031 #define __vtkMaskPoints_h
00032 
00033 #include "vtkPolyDataAlgorithm.h"
00034 
00035 class VTK_GRAPHICS_EXPORT vtkMaskPoints : public vtkPolyDataAlgorithm
00036 {
00037 public:
00038   static vtkMaskPoints *New();
00039   vtkTypeRevisionMacro(vtkMaskPoints,vtkPolyDataAlgorithm);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   vtkSetClampMacro(OnRatio,int,1,VTK_LARGE_INTEGER);
00045   vtkGetMacro(OnRatio,int);
00047 
00049 
00050   vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_LARGE_ID);
00051   vtkGetMacro(MaximumNumberOfPoints,vtkIdType);
00053 
00055 
00056   vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
00057   vtkGetMacro(Offset,vtkIdType);
00059 
00061 
00063   vtkSetMacro(RandomMode,int);
00064   vtkGetMacro(RandomMode,int);
00065   vtkBooleanMacro(RandomMode,int);
00067 
00069 
00073   vtkSetMacro(GenerateVertices,int);
00074   vtkGetMacro(GenerateVertices,int);
00075   vtkBooleanMacro(GenerateVertices,int);
00077 
00079 
00082   vtkSetMacro(SingleVertexPerCell,int);
00083   vtkGetMacro(SingleVertexPerCell,int);
00084   vtkBooleanMacro(SingleVertexPerCell,int);
00086 
00087 protected:
00088   vtkMaskPoints();
00089   ~vtkMaskPoints() {};
00090 
00091   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00092   virtual int FillInputPortInformation(int port, vtkInformation *info);
00093 
00094   int OnRatio;     // every OnRatio point is on; all others are off.
00095   vtkIdType Offset;      // offset (or starting point id)
00096   int RandomMode;  // turn on/off randomization
00097   vtkIdType MaximumNumberOfPoints;
00098   int GenerateVertices; //generate polydata verts
00099   int SingleVertexPerCell;
00100 private:
00101   vtkMaskPoints(const vtkMaskPoints&);  // Not implemented.
00102   void operator=(const vtkMaskPoints&);  // Not implemented.
00103 };
00104 
00105 #endif

Generated by  doxygen 1.7.1