VTK  9.7.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
16 #ifndef vtkTriangleFilter_h
17 #define vtkTriangleFilter_h
18 
19 #include "vtkFiltersCoreModule.h" // For export macro
20 #include "vtkPolyDataAlgorithm.h"
21 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkTriangleFilter : public vtkPolyDataAlgorithm
25 {
26 public:
27  static vtkTriangleFilter* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
38  vtkSetMacro(PreservePolys, vtkTypeBool);
39  vtkGetMacro(PreservePolys, vtkTypeBool);
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 
81 protected:
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 
99 private:
100  vtkTriangleFilter(const vtkTriangleFilter&) = delete;
101  void operator=(const vtkTriangleFilter&) = delete;
102 };
103 
104 VTK_ABI_NAMESPACE_END
105 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTypeBool PreservePolys
convert input polygons and strips to triangles
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
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.