VTK  9.0.1
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 =========================================================================*/
34 #ifndef vtkContourTriangulator_h
35 #define vtkContourTriangulator_h
36 
37 #include "vtkFiltersGeneralModule.h" // For export macro
38 #include "vtkPolyDataAlgorithm.h"
39 
40 class vtkCellArray;
41 class vtkIdList;
42 
43 class VTKFILTERSGENERAL_EXPORT vtkContourTriangulator : public vtkPolyDataAlgorithm
44 {
45 public:
46  static vtkContourTriangulator* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkGetMacro(TriangulationError, int);
56 
58 
63  vtkSetMacro(TriangulationErrorDisplay, vtkTypeBool);
64  vtkBooleanMacro(TriangulationErrorDisplay, vtkTypeBool);
65  vtkGetMacro(TriangulationErrorDisplay, vtkTypeBool);
67 
73  static int TriangulatePolygon(vtkIdList* polygon, vtkPoints* points, vtkCellArray* triangles);
74 
81  static int TriangulateContours(vtkPolyData* data, vtkIdType firstLine, vtkIdType numLines,
82  vtkCellArray* outputPolys, const double normal[3]);
83 
84 protected:
86  ~vtkContourTriangulator() override;
87 
88  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
89  vtkInformationVector* outputVector) override;
90 
93 
94 private:
96  void operator=(const vtkContourTriangulator&) = delete;
97 };
98 
99 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkContourTriangulator
Fill all 2D contours to create polygons.
Definition: vtkContourTriangulator.h:43
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkX3D::data
@ data
Definition: vtkX3D.h:321
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContourTriangulator::TriangulationErrorDisplay
vtkTypeBool TriangulationErrorDisplay
Definition: vtkContourTriangulator.h:92
vtkPolyDataAlgorithm.h
vtkX3D::points
@ points
Definition: vtkX3D.h:452
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:179
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkContourTriangulator::TriangulationError
int TriangulationError
Definition: vtkContourTriangulator.h:91
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41