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
18#ifndef vtkMaskPolyData_h
19#define vtkMaskPolyData_h
20
21#include "vtkFiltersCoreModule.h" // For export macro
23
24VTK_ABI_NAMESPACE_BEGIN
25class VTKFILTERSCORE_EXPORT vtkMaskPolyData : public vtkPolyDataAlgorithm
26{
27public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
33
36 vtkSetClampMacro(OnRatio, int, 1, VTK_INT_MAX);
37 vtkGetMacro(OnRatio, int);
39
41
44 vtkSetClampMacro(Offset, vtkIdType, 0, VTK_ID_MAX);
45 vtkGetMacro(Offset, vtkIdType);
47
48protected:
50 ~vtkMaskPolyData() override = default;
51
53 int OnRatio; // every OnRatio entity is on; all others are off.
54 vtkIdType Offset; // offset (or starting point id)
55
56private:
57 vtkMaskPolyData(const vtkMaskPolyData&) = delete;
58 void operator=(const vtkMaskPolyData&) = delete;
59};
60
61VTK_ABI_NAMESPACE_END
62#endif
a simple class to control print indentation
Definition vtkIndent.h:29
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