VTK  9.2.20230320
vtkMaskPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMaskPolyData.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
49 #ifndef vtkMaskPolyData_h
50 #define vtkMaskPolyData_h
51 
52 #include "vtkFiltersCoreModule.h" // For export macro
53 #include "vtkPolyDataAlgorithm.h"
54 
55 VTK_ABI_NAMESPACE_BEGIN
56 class VTKFILTERSCORE_EXPORT vtkMaskPolyData : public vtkPolyDataAlgorithm
57 {
58 public:
59  static vtkMaskPolyData* New();
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
64 
67  vtkSetClampMacro(OnRatio, int, 1, VTK_INT_MAX);
68  vtkGetMacro(OnRatio, int);
70 
72 
75  vtkSetClampMacro(Offset, vtkIdType, 0, VTK_ID_MAX);
76  vtkGetMacro(Offset, vtkIdType);
78 
79 protected:
81  ~vtkMaskPolyData() override = default;
82 
84  int OnRatio; // every OnRatio entity is on; all others are off.
85  vtkIdType Offset; // offset (or starting point id)
86 
87 private:
88  vtkMaskPolyData(const vtkMaskPolyData&) = delete;
89  void operator=(const vtkMaskPolyData&) = delete;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
a simple class to control print indentation
Definition: vtkIndent.h:120
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.
static vtkMaskPolyData * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkMaskPolyData() override=default
Superclass for algorithms that produce only polydata as output.
int vtkIdType
Definition: vtkType.h:327
#define VTK_ID_MAX
Definition: vtkType.h:331
#define VTK_INT_MAX
Definition: vtkType.h:156