VTK  9.1.0
vtkMaskPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMaskPolyData.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
46 #ifndef vtkMaskPolyData_h
47 #define vtkMaskPolyData_h
48 
49 #include "vtkFiltersCoreModule.h" // For export macro
50 #include "vtkPolyDataAlgorithm.h"
51 
52 class VTKFILTERSCORE_EXPORT vtkMaskPolyData : public vtkPolyDataAlgorithm
53 {
54 public:
55  static vtkMaskPolyData* New();
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
60 
63  vtkSetClampMacro(OnRatio, int, 1, VTK_INT_MAX);
64  vtkGetMacro(OnRatio, int);
66 
68 
71  vtkSetClampMacro(Offset, vtkIdType, 0, VTK_ID_MAX);
72  vtkGetMacro(Offset, vtkIdType);
74 
75 protected:
77  ~vtkMaskPolyData() override = default;
78 
80  int OnRatio; // every OnRatio entity is on; all others are off.
81  vtkIdType Offset; // offset (or starting point id)
82 
83 private:
84  vtkMaskPolyData(const vtkMaskPolyData&) = delete;
85  void operator=(const vtkMaskPolyData&) = delete;
86 };
87 
88 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:155
vtkMaskPolyData::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkMaskPolyData
sample subset of input polygonal data cells
Definition: vtkMaskPolyData.h:53
vtkIdType
int vtkIdType
Definition: vtkType.h:332
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:145
vtkMaskPolyData::~vtkMaskPolyData
~vtkMaskPolyData() override=default
vtkMaskPolyData::New
static vtkMaskPolyData * New()
vtkMaskPolyData::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:183
vtkMaskPolyData::OnRatio
int OnRatio
Definition: vtkMaskPolyData.h:80
VTK_ID_MAX
#define VTK_ID_MAX
Definition: vtkType.h:336
vtkMaskPolyData::vtkMaskPolyData
vtkMaskPolyData()
vtkMaskPolyData::Offset
vtkIdType Offset
Definition: vtkMaskPolyData.h:81
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:151