VTK  9.6.1
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
17
18#ifndef vtkMaskPolyData_h
19#define vtkMaskPolyData_h
20
21#include "vtkFiltersCoreModule.h" // For export macro
23#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24
25VTK_ABI_NAMESPACE_BEGIN
26class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkMaskPolyData : public vtkPolyDataAlgorithm
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
37 vtkSetClampMacro(OnRatio, int, 1, VTK_INT_MAX);
38 vtkGetMacro(OnRatio, int);
40
42
45 vtkSetClampMacro(Offset, vtkIdType, 0, VTK_ID_MAX);
46 vtkGetMacro(Offset, vtkIdType);
48
49protected:
51 ~vtkMaskPolyData() override = default;
52
54 int OnRatio; // every OnRatio entity is on; all others are off.
55 vtkIdType Offset; // offset (or starting point id)
56
57private:
58 vtkMaskPolyData(const vtkMaskPolyData&) = delete;
59 void operator=(const vtkMaskPolyData&) = delete;
60};
61
62VTK_ABI_NAMESPACE_END
63#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
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()
int vtkIdType
Definition vtkType.h:368
#define VTK_ID_MAX
Definition vtkType.h:372
#define VTK_INT_MAX
Definition vtkType.h:197
#define VTK_MARSHALAUTO