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=========================================================================*/
137#ifndef vtkTriangleFilter_h
138#define vtkTriangleFilter_h
139
140#include "vtkFiltersCoreModule.h" // For export macro
141#include "vtkPolyDataAlgorithm.h"
142
143class VTKFILTERSCORE_EXPORT vtkTriangleFilter : public vtkPolyDataAlgorithm
144{
145public:
148 void PrintSelf(ostream& os, vtkIndent indent) override;
149
151
157 vtkBooleanMacro(PassVerts, vtkTypeBool);
158 vtkSetMacro(PassVerts, vtkTypeBool);
159 vtkGetMacro(PassVerts, vtkTypeBool);
161
163
169 vtkBooleanMacro(PassLines, vtkTypeBool);
170 vtkSetMacro(PassLines, vtkTypeBool);
171 vtkGetMacro(PassLines, vtkTypeBool);
173
175
184 vtkSetMacro(Tolerance, double);
185 vtkGetMacro(Tolerance, double);
187
188protected:
190 : PassVerts(1)
191 , PassLines(1)
192 , Tolerance(-1.0) // use default vtkPolygon::Tolerance
193 {
194 }
195 ~vtkTriangleFilter() override = default;
196
197 // Usual data generation method
199
202 double Tolerance;
203
204private:
205 vtkTriangleFilter(const vtkTriangleFilter&) = delete;
206 void operator=(const vtkTriangleFilter&) = delete;
207};
208
209#endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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:69