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

vtkMaskPolyData.h

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