VTK  9.3.0
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
25 #ifndef vtkTriangleFilter_h
26 #define vtkTriangleFilter_h
27 
28 #include "vtkFiltersCoreModule.h" // For export macro
29 #include "vtkPolyDataAlgorithm.h"
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class VTKFILTERSCORE_EXPORT vtkTriangleFilter : public vtkPolyDataAlgorithm
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
46  vtkBooleanMacro(PassVerts, vtkTypeBool);
47  vtkSetMacro(PassVerts, vtkTypeBool);
48  vtkGetMacro(PassVerts, vtkTypeBool);
50 
52 
58  vtkBooleanMacro(PassLines, vtkTypeBool);
59  vtkSetMacro(PassLines, vtkTypeBool);
60  vtkGetMacro(PassLines, vtkTypeBool);
62 
64 
73  vtkSetMacro(Tolerance, double);
74  vtkGetMacro(Tolerance, double);
76 
77 protected:
79  : PassVerts(1)
80  , PassLines(1)
81  , Tolerance(-1.0) // use default vtkPolygon::Tolerance
82  {
83  }
84  ~vtkTriangleFilter() override = default;
85 
86  // Usual data generation method
88 
91  double Tolerance;
92 
93 private:
94  vtkTriangleFilter(const vtkTriangleFilter&) = delete;
95  void operator=(const vtkTriangleFilter&) = delete;
96 };
97 
98 VTK_ABI_NAMESPACE_END
99 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
convert input polygons and strips to triangles
static vtkTriangleFilter * New()
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