VTK  9.2.6
vtkTriangleFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTriangleFilter.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 =========================================================================*/
28 #ifndef vtkTriangleFilter_h
29 #define vtkTriangleFilter_h
30 
31 #include "vtkFiltersCoreModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 class VTKFILTERSCORE_EXPORT vtkTriangleFilter : public vtkPolyDataAlgorithm
35 {
36 public:
37  static vtkTriangleFilter* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
48  vtkBooleanMacro(PassVerts, vtkTypeBool);
49  vtkSetMacro(PassVerts, vtkTypeBool);
50  vtkGetMacro(PassVerts, vtkTypeBool);
52 
54 
60  vtkBooleanMacro(PassLines, vtkTypeBool);
61  vtkSetMacro(PassLines, vtkTypeBool);
62  vtkGetMacro(PassLines, vtkTypeBool);
64 
66 
75  vtkSetMacro(Tolerance, double);
76  vtkGetMacro(Tolerance, double);
78 
79 protected:
81  : PassVerts(1)
82  , PassLines(1)
83  , Tolerance(-1.0) // use default vtkPolygon::Tolerance
84  {
85  }
86  ~vtkTriangleFilter() override = default;
87 
88  // Usual data generation method
90 
93  double Tolerance;
94 
95 private:
96  vtkTriangleFilter(const vtkTriangleFilter&) = delete;
97  void operator=(const vtkTriangleFilter&) = delete;
98 };
99 
100 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
convert input polygons and strips to triangles
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.