VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Filters/Core/vtkMaskPolyData.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkMaskPolyData.h
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 =========================================================================*/
00029 #ifndef vtkMaskPolyData_h
00030 #define vtkMaskPolyData_h
00031 
00032 #include "vtkFiltersCoreModule.h" // For export macro
00033 #include "vtkPolyDataAlgorithm.h"
00034 
00035 class VTKFILTERSCORE_EXPORT vtkMaskPolyData : public vtkPolyDataAlgorithm
00036 {
00037 public:
00038   static vtkMaskPolyData *New();
00039   vtkTypeMacro(vtkMaskPolyData,vtkPolyDataAlgorithm);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   vtkSetClampMacro(OnRatio,int,1,VTK_INT_MAX);
00045   vtkGetMacro(OnRatio,int);
00047 
00049 
00050   vtkSetClampMacro(Offset,vtkIdType,0,VTK_ID_MAX);
00051   vtkGetMacro(Offset,vtkIdType);
00053 
00054 protected:
00055   vtkMaskPolyData();
00056   ~vtkMaskPolyData() {}
00057 
00058   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00059   int OnRatio; // every OnRatio entity is on; all others are off.
00060   vtkIdType Offset;  // offset (or starting point id)
00061 
00062 private:
00063   vtkMaskPolyData(const vtkMaskPolyData&);  // Not implemented.
00064   void operator=(const vtkMaskPolyData&);  // Not implemented.
00065 };
00066 
00067 #endif