VTK  9.3.0
vtkMaskPolyData.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
27#ifndef vtkMaskPolyData_h
28#define vtkMaskPolyData_h
29
30#include "vtkFiltersCoreModule.h" // For export macro
32
33VTK_ABI_NAMESPACE_BEGIN
34class VTKFILTERSCORE_EXPORT vtkMaskPolyData : public vtkPolyDataAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
45 vtkSetClampMacro(OnRatio, int, 1, VTK_INT_MAX);
46 vtkGetMacro(OnRatio, int);
48
50
53 vtkSetClampMacro(Offset, vtkIdType, 0, VTK_ID_MAX);
54 vtkGetMacro(Offset, vtkIdType);
56
57protected:
59 ~vtkMaskPolyData() override = default;
60
62 int OnRatio; // every OnRatio entity is on; all others are off.
63 vtkIdType Offset; // offset (or starting point id)
64
65private:
66 vtkMaskPolyData(const vtkMaskPolyData&) = delete;
67 void operator=(const vtkMaskPolyData&) = delete;
68};
69
70VTK_ABI_NAMESPACE_END
71#endif
a simple class to control print indentation
Definition vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
sample subset of input polygonal data cells
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkMaskPolyData() override=default
static vtkMaskPolyData * New()
Superclass for algorithms that produce only polydata as output.
int vtkIdType
Definition vtkType.h:315
#define VTK_ID_MAX
Definition vtkType.h:319
#define VTK_INT_MAX
Definition vtkType.h:144