VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkContourTriangulator.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00036 #ifndef vtkContourTriangulator_h 00037 #define vtkContourTriangulator_h 00038 00039 #include "vtkFiltersGeneralModule.h" // For export macro 00040 #include "vtkPolyDataAlgorithm.h" 00041 00042 class vtkCellArray; 00043 class vtkIdList; 00044 00045 class VTKFILTERSGENERAL_EXPORT vtkContourTriangulator : public vtkPolyDataAlgorithm 00046 { 00047 public: 00048 static vtkContourTriangulator *New(); 00049 vtkTypeMacro(vtkContourTriangulator,vtkPolyDataAlgorithm); 00050 void PrintSelf(ostream& os, vtkIndent indent); 00051 00053 00054 vtkGetMacro(TriangulationError, int); 00056 00058 00061 vtkSetMacro(TriangulationErrorDisplay, int); 00062 vtkBooleanMacro(TriangulationErrorDisplay, int); 00063 vtkGetMacro(TriangulationErrorDisplay, int); 00065 00067 00070 static int TriangulatePolygon( 00071 vtkIdList *polygon, vtkPoints *points, vtkCellArray *triangles); 00073 00075 00079 static int TriangulateContours( 00080 vtkPolyData *data, vtkIdType firstLine, vtkIdType numLines, 00081 vtkCellArray *outputPolys, const double normal[3]); 00083 00084 protected: 00085 vtkContourTriangulator(); 00086 ~vtkContourTriangulator(); 00087 00088 virtual int RequestData( 00089 vtkInformation* request, vtkInformationVector** inputVector, 00090 vtkInformationVector* outputVector); 00091 00092 int TriangulationError; 00093 int TriangulationErrorDisplay; 00094 00095 private: 00096 vtkContourTriangulator(const vtkContourTriangulator&); // Not implemented. 00097 void operator=(const vtkContourTriangulator&); // Not implemented. 00098 }; 00099 00100 #endif