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 =========================================================================*/
36 #ifndef vtkContourTriangulator_h
37 #define vtkContourTriangulator_h
38 
39 #include "vtkFiltersGeneralModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
42 class vtkCellArray;
43 class vtkIdList;
44 
46 {
47 public:
48  static vtkContourTriangulator *New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
54  vtkGetMacro(TriangulationError, int);
56 
58 
61  vtkSetMacro(TriangulationErrorDisplay, int);
62  vtkBooleanMacro(TriangulationErrorDisplay, int);
63  vtkGetMacro(TriangulationErrorDisplay, int);
65 
67 
70  static int TriangulatePolygon(
71  vtkIdList *polygon, vtkPoints *points, vtkCellArray *triangles);
73 
75 
79  static int TriangulateContours(
80  vtkPolyData *data, vtkIdType firstLine, vtkIdType numLines,
81  vtkCellArray *outputPolys, const double normal[3]);
83 
84 protected:
87 
88  virtual int RequestData(
89  vtkInformation* request, vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
94 
95 private:
96  vtkContourTriangulator(const vtkContourTriangulator&); // Not implemented.
97  void operator=(const vtkContourTriangulator&); // Not implemented.
98 };
99 
100 #endif
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkIdType
Definition: vtkType.h:247
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
Fill all 2D contours to create polygons.
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
#define VTKFILTERSGENERAL_EXPORT
object to represent cell connectivity
Definition: vtkCellArray.h:49
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38