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:
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
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
vtkContourTriangulator::vtkContourTriangulator
vtkContourTriangulator()
vtkContourTriangulator
Fill all 2D contours to create polygons.
Definition: vtkContourTriangulator.h:46
vtkContourTriangulator::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkContourTriangulator::TriangulatePolygon
static int TriangulatePolygon(vtkIdList *polygon, vtkPoints *points, vtkCellArray *triangles)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::points
GLsizei const GLfloat * points
Definition: vtkgl.h:14786
vtkContourTriangulator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyDataAlgorithm.h
vtkContourTriangulator::TriangulationErrorDisplay
int TriangulationErrorDisplay
Definition: vtkContourTriangulator.h:93
vtkFiltersGeneralModule.h
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
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkContourTriangulator::TriangulateContours
static int TriangulateContours(vtkPolyData *data, vtkIdType firstLine, vtkIdType numLines, vtkCellArray *outputPolys, const double normal[3])
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkContourTriangulator::New
static vtkContourTriangulator * New()
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkContourTriangulator::~vtkContourTriangulator
~vtkContourTriangulator()
vtkContourTriangulator::TriangulationError
int TriangulationError
Definition: vtkContourTriangulator.h:92
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44