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
41 #include "vtkPolyDataAlgorithm.h"
42 
43 class vtkCellArray;
44 class vtkIdList;
45 
46 class VTKFILTERSGENERAL_EXPORT vtkContourTriangulator : public vtkPolyDataAlgorithm
47 {
48 public:
49  static vtkContourTriangulator *New();
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
57  vtkGetMacro(TriangulationError, int);
59 
61 
66  vtkSetMacro(TriangulationErrorDisplay, vtkTypeBool);
67  vtkBooleanMacro(TriangulationErrorDisplay, vtkTypeBool);
68  vtkGetMacro(TriangulationErrorDisplay, vtkTypeBool);
70 
76  static int TriangulatePolygon(
77  vtkIdList *polygon, vtkPoints *points, vtkCellArray *triangles);
78 
85  static int TriangulateContours(
86  vtkPolyData *data, vtkIdType firstLine, vtkIdType numLines,
87  vtkCellArray *outputPolys, const double normal[3]);
88 
89 protected:
91  ~vtkContourTriangulator() override;
92 
93  int RequestData(
94  vtkInformation* request, vtkInformationVector** inputVector,
95  vtkInformationVector* outputVector) override;
96 
99 
100 private:
102  void operator=(const vtkContourTriangulator&) = delete;
103 };
104 
105 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkContourTriangulator
Fill all 2D contours to create polygons.
Definition: vtkContourTriangulator.h:46
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkX3D::data
Definition: vtkX3D.h:315
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
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:98
vtkPolyDataAlgorithm.h
vtkX3D::points
Definition: vtkX3D.h:446
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:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkContourTriangulator::TriangulationError
int TriangulationError
Definition: vtkContourTriangulator.h:97
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44