VTK  9.3.1
vtkContourTriangulator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
32 #ifndef vtkContourTriangulator_h
33 #define vtkContourTriangulator_h
34 
35 #include "vtkFiltersGeneralModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
38 VTK_ABI_NAMESPACE_BEGIN
39 class vtkCellArray;
40 class vtkIdList;
41 
42 class VTKFILTERSGENERAL_EXPORT vtkContourTriangulator : public vtkPolyDataAlgorithm
43 {
44 public:
46 
49  static vtkContourTriangulator* New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
58  vtkGetMacro(TriangulationError, int);
60 
62 
67  vtkSetMacro(TriangulationErrorDisplay, vtkTypeBool);
68  vtkBooleanMacro(TriangulationErrorDisplay, vtkTypeBool);
69  vtkGetMacro(TriangulationErrorDisplay, vtkTypeBool);
71 
77  static int TriangulatePolygon(vtkIdList* polygon, vtkPoints* points, vtkCellArray* triangles);
78 
86  static int TriangulateContours(vtkPolyData* data, vtkIdType firstLine, vtkIdType numLines,
87  vtkCellArray* outputPolys, const double normal[3], vtkPolyDataAlgorithm* self = nullptr);
88 
89 protected:
91  ~vtkContourTriangulator() override;
92 
93  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
94  vtkInformationVector* outputVector) override;
95 
98 
99 private:
101  void operator=(const vtkContourTriangulator&) = delete;
102 };
103 
104 VTK_ABI_NAMESPACE_END
105 #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:315
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
Fill all 2D contours to create polygons.
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
list of point or cell ids
Definition: vtkIdList.h:22
object to represent cell connectivity
Definition: vtkCellArray.h:175
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.