VTK
vtkContourTriangulator.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkContourTriangulator.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=========================================================================*/
37#ifndef vtkContourTriangulator_h
38#define vtkContourTriangulator_h
39
40#include "vtkFiltersGeneralModule.h" // For export macro
42
43class vtkCellArray;
44class vtkIdList;
45
46class VTKFILTERSGENERAL_EXPORT vtkContourTriangulator : public vtkPolyDataAlgorithm
47{
48public:
51 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
52
54
57 vtkGetMacro(TriangulationError, int);
59
61
66 vtkSetMacro(TriangulationErrorDisplay, int);
67 vtkBooleanMacro(TriangulationErrorDisplay, int);
68 vtkGetMacro(TriangulationErrorDisplay, int);
70
77 vtkIdList *polygon, vtkPoints *points, vtkCellArray *triangles);
78
86 vtkPolyData *data, vtkIdType firstLine, vtkIdType numLines,
87 vtkCellArray *outputPolys, const double normal[3]);
88
89protected:
92
93 int RequestData(
94 vtkInformation* request, vtkInformationVector** inputVector,
95 vtkInformationVector* outputVector) VTK_OVERRIDE;
96
97 int TriangulationError;
98 int TriangulationErrorDisplay;
99
100private:
101 vtkContourTriangulator(const vtkContourTriangulator&) VTK_DELETE_FUNCTION;
102 void operator=(const vtkContourTriangulator&) VTK_DELETE_FUNCTION;
103};
104
105#endif
object to represent cell connectivity
Definition: vtkCellArray.h:51
Fill all 2D contours to create polygons.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkContourTriangulator * New()
static int TriangulateContours(vtkPolyData *data, vtkIdType firstLine, vtkIdType numLines, vtkCellArray *outputPolys, const double normal[3])
Given some closed contour lines, create a triangle mesh that fills those lines.
static int TriangulatePolygon(vtkIdList *polygon, vtkPoints *points, vtkCellArray *triangles)
A robust method for triangulating a polygon.
~vtkContourTriangulator() override
list of point or cell ids
Definition: vtkIdList.h:37
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
represent and manipulate 3D points
Definition: vtkPoints.h:40
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
@ points
Definition: vtkX3D.h:446
@ data
Definition: vtkX3D.h:315
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287