Graphics/vtkMaskPoints.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00049 #ifndef __vtkMaskPoints_h
    00050 #define __vtkMaskPoints_h
    00051
    00052 #include "vtkDataSetToPolyDataFilter.h"
    00053
    00054 class VTK_GRAPHICS_EXPORT vtkMaskPoints : public vtkDataSetToPolyDataFilter
    00055 {
    00056 public:
    00057   static vtkMaskPoints *New();
    00058   vtkTypeRevisionMacro(vtkMaskPoints,vtkDataSetToPolyDataFilter);
    00059   void PrintSelf(ostream& os, vtkIndent indent);
    00060
    00062
    00063   vtkSetClampMacro(OnRatio,int,1,VTK_LARGE_INTEGER);
    00064   vtkGetMacro(OnRatio,int);
    00066
    00068
    00069   vtkSetClampMacro(MaximumNumberOfPoints,vtkIdType,0,VTK_LARGE_ID);
    00070   vtkGetMacro(MaximumNumberOfPoints,vtkIdType);
    00072
    00074
    00075   vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
    00076   vtkGetMacro(Offset,vtkIdType);
    00078
    00080
    00082   vtkSetMacro(RandomMode,int);
    00083   vtkGetMacro(RandomMode,int);
    00084   vtkBooleanMacro(RandomMode,int);
    00086
    00088
    00092   vtkSetMacro(GenerateVertices,int);
    00093   vtkGetMacro(GenerateVertices,int);
    00094   vtkBooleanMacro(GenerateVertices,int);
    00096
    00097 protected:
    00098   vtkMaskPoints();
    00099   ~vtkMaskPoints() {};
    00100
    00101   void Execute();
    00102
    00103   int OnRatio;     // every OnRatio point is on; all others are off.
    00104   vtkIdType Offset;      // offset (or starting point id)
    00105   int RandomMode;  // turn on/off randomization
    00106   vtkIdType MaximumNumberOfPoints;
    00107   int GenerateVertices; //generate polydata verts
    00108 private:
    00109   vtkMaskPoints(const vtkMaskPoints&);  // Not implemented.
    00110   void operator=(const vtkMaskPoints&);  // Not implemented.
    00111 };
    00112
    00113 #endif
    00114
    00115