VTK  9.2.6
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 =========================================================================*/
44 #ifndef vtkContourTriangulator_h
45 #define vtkContourTriangulator_h
46 
47 #include "vtkFiltersGeneralModule.h" // For export macro
48 #include "vtkPolyDataAlgorithm.h"
49 
50 class vtkCellArray;
51 class vtkIdList;
52 
53 class VTKFILTERSGENERAL_EXPORT vtkContourTriangulator : public vtkPolyDataAlgorithm
54 {
55 public:
57 
60  static vtkContourTriangulator* New();
62  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
66 
69  vtkGetMacro(TriangulationError, int);
71 
73 
78  vtkSetMacro(TriangulationErrorDisplay, vtkTypeBool);
79  vtkBooleanMacro(TriangulationErrorDisplay, vtkTypeBool);
80  vtkGetMacro(TriangulationErrorDisplay, vtkTypeBool);
82 
88  static int TriangulatePolygon(vtkIdList* polygon, vtkPoints* points, vtkCellArray* triangles);
89 
97  static int TriangulateContours(vtkPolyData* data, vtkIdType firstLine, vtkIdType numLines,
98  vtkCellArray* outputPolys, const double normal[3]);
99 
100 protected:
102  ~vtkContourTriangulator() override;
103 
104  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
105  vtkInformationVector* outputVector) override;
106 
109 
110 private:
112  void operator=(const vtkContourTriangulator&) = delete;
113 };
114 
115 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:332
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
Fill all 2D contours to create polygons.
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
list of point or cell ids
Definition: vtkIdList.h:33
object to represent cell connectivity
Definition: vtkCellArray.h:186
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.