VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkMaskPolyData : public vtkPolyDataAlgorithm
27 {
28 public:
29  static vtkMaskPolyData* New();
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 
49 protected:
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 
57 private:
58  vtkMaskPolyData(const vtkMaskPolyData&) = delete;
59  void operator=(const vtkMaskPolyData&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #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:192
int vtkIdType
Definition: vtkType.h:363
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:367
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.