VTK  9.5.20250905
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
37#ifndef vtkMaskPolyData_h
38#define vtkMaskPolyData_h
39
40#include "vtkFiltersCoreModule.h" // For export macro
42#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
43
44VTK_ABI_NAMESPACE_BEGIN
45class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkMaskPolyData : public vtkPolyDataAlgorithm
46{
47public:
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
53
56 vtkSetClampMacro(OnRatio, int, 1, VTK_INT_MAX);
57 vtkGetMacro(OnRatio, int);
59
61
64 vtkSetClampMacro(Offset, vtkIdType, 0, VTK_ID_MAX);
65 vtkGetMacro(Offset, vtkIdType);
67
68protected:
70 ~vtkMaskPolyData() override = default;
71
73 int OnRatio; // every OnRatio entity is on; all others are off.
74 vtkIdType Offset; // offset (or starting point id)
75
76private:
77 vtkMaskPolyData(const vtkMaskPolyData&) = delete;
78 void operator=(const vtkMaskPolyData&) = delete;
79};
80
81VTK_ABI_NAMESPACE_END
82#endif
a simple class to control print indentation
Definition vtkIndent.h:108
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:332
#define VTK_ID_MAX
Definition vtkType.h:336
#define VTK_INT_MAX
Definition vtkType.h:161
#define VTK_MARSHALAUTO