VTK  9.3.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
18 #ifndef vtkMaskPolyData_h
19 #define vtkMaskPolyData_h
20 
21 #include "vtkFiltersCoreModule.h" // For export macro
22 #include "vtkPolyDataAlgorithm.h"
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class VTKFILTERSCORE_EXPORT vtkMaskPolyData : public vtkPolyDataAlgorithm
26 {
27 public:
28  static vtkMaskPolyData* New();
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 
48 protected:
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 
56 private:
57  vtkMaskPolyData(const vtkMaskPolyData&) = delete;
58  void operator=(const vtkMaskPolyData&) = delete;
59 };
60 
61 VTK_ABI_NAMESPACE_END
62 #endif
sample subset of input polygonal data cells
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:144
int vtkIdType
Definition: vtkType.h:315
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_ID_MAX
Definition: vtkType.h:319
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.