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

# Graphics/vtkMaskPolyData.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkMaskPolyData.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 =========================================================================*/
    00041 #ifndef __vtkMaskPolyData_h
    00042 #define __vtkMaskPolyData_h
    00043
    00044 #include "vtkPolyDataToPolyDataFilter.h"
    00045
    00046 class VTK_GRAPHICS_EXPORT vtkMaskPolyData : public vtkPolyDataToPolyDataFilter
    00047 {
    00048 public:
    00049   static vtkMaskPolyData *New();
    00050   vtkTypeRevisionMacro(vtkMaskPolyData,vtkPolyDataToPolyDataFilter);
    00051   void PrintSelf(ostream& os, vtkIndent indent);
    00052
    00054
    00055   vtkSetClampMacro(OnRatio,int,1,VTK_LARGE_INTEGER);
    00056   vtkGetMacro(OnRatio,int);
    00058
    00060
    00061   vtkSetClampMacro(Offset,vtkIdType,0,VTK_LARGE_ID);
    00062   vtkGetMacro(Offset,vtkIdType);
    00064
    00065 protected:
    00066   vtkMaskPolyData();
    00067   ~vtkMaskPolyData() {};
    00068
    00069   void Execute();
    00070   int OnRatio; // every OnRatio entity is on; all others are off.
    00071   vtkIdType Offset;  // offset (or starting point id)
    00072 private:
    00073   vtkMaskPolyData(const vtkMaskPolyData&);  // Not implemented.
    00074   void operator=(const vtkMaskPolyData&);  // Not implemented.
    00075 };
    00076
    00077 #endif
    00078
    00079