VTK  9.6.1
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkTriangleFilter : public vtkPolyDataAlgorithm
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
40 vtkBooleanMacro(PreservePolys, vtkTypeBool);
42
44
50 vtkBooleanMacro(PassVerts, vtkTypeBool);
51 vtkSetMacro(PassVerts, vtkTypeBool);
52 vtkGetMacro(PassVerts, vtkTypeBool);
54
56
62 vtkBooleanMacro(PassLines, vtkTypeBool);
63 vtkSetMacro(PassLines, vtkTypeBool);
64 vtkGetMacro(PassLines, vtkTypeBool);
66
68
77 vtkSetMacro(Tolerance, double);
78 vtkGetMacro(Tolerance, double);
80
81protected:
83 : PassVerts(1)
84 , PassLines(1)
85 , PreservePolys(0)
86 , Tolerance(-1.0) // use default vtkPolygon::Tolerance
87 {
88 }
89 ~vtkTriangleFilter() override = default;
90
91 // Usual data generation method
93
97 double Tolerance;
98
99private:
100 vtkTriangleFilter(const vtkTriangleFilter&) = delete;
101 void operator=(const vtkTriangleFilter&) = delete;
102};
103
104VTK_ABI_NAMESPACE_END
105#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
#define VTK_MARSHALAUTO