VTK  9.4.20251007
vtkTriangleFilter.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
15
16#ifndef vtkTriangleFilter_h
17#define vtkTriangleFilter_h
18
19#include "vtkFiltersCoreModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
23class VTKFILTERSCORE_EXPORT vtkTriangleFilter : public vtkPolyDataAlgorithm
24{
25public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31
39 vtkBooleanMacro(PreservePolys, vtkTypeBool);
41
43
49 vtkBooleanMacro(PassVerts, vtkTypeBool);
50 vtkSetMacro(PassVerts, vtkTypeBool);
51 vtkGetMacro(PassVerts, vtkTypeBool);
53
55
61 vtkBooleanMacro(PassLines, vtkTypeBool);
62 vtkSetMacro(PassLines, vtkTypeBool);
63 vtkGetMacro(PassLines, vtkTypeBool);
65
67
76 vtkSetMacro(Tolerance, double);
77 vtkGetMacro(Tolerance, double);
79
80protected:
82 : PassVerts(1)
83 , PassLines(1)
84 , PreservePolys(0)
85 , Tolerance(-1.0) // use default vtkPolygon::Tolerance
86 {
87 }
88 ~vtkTriangleFilter() override = default;
89
90 // Usual data generation method
92
96 double Tolerance;
97
98private:
99 vtkTriangleFilter(const vtkTriangleFilter&) = delete;
100 void operator=(const vtkTriangleFilter&) = delete;
101};
102
103VTK_ABI_NAMESPACE_END
104#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
static vtkTriangleFilter * New()
vtkTypeBool PreservePolys
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkTriangleFilter() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int vtkTypeBool
Definition vtkABI.h:64