69 #ifndef __vtkGreedyTerrainDecimation_h
70 #define __vtkGreedyTerrainDecimation_h
82 class vtkGreedyTerrainDecimationTerrainInfoType;
83 class vtkGreedyTerrainDecimationPointInfoType;
85 #define VTK_ERROR_NUMBER_OF_TRIANGLES 0
86 #define VTK_ERROR_SPECIFIED_REDUCTION 1
87 #define VTK_ERROR_ABSOLUTE 2
88 #define VTK_ERROR_RELATIVE 3
106 vtkGetMacro(ErrorMeasure,
int);
123 vtkGetMacro(NumberOfTriangles,
vtkIdType);
130 vtkSetClampMacro(Reduction,
double,0.0,1.0);
131 vtkGetMacro(Reduction,
double);
140 vtkGetMacro(AbsoluteError,
double);
149 vtkGetMacro(RelativeError,
double);
155 vtkSetMacro(BoundaryVertexDeletion,
int);
156 vtkGetMacro(BoundaryVertexDeletion,
int);
157 vtkBooleanMacro(BoundaryVertexDeletion,
int);
162 vtkSetMacro(ComputeNormals,
int);
163 vtkGetMacro(ComputeNormals,
int);
164 vtkBooleanMacro(ComputeNormals,
int);
176 void ComputePointNormal(
int i,
int j,
float n[3]);
210 virtual int SatisfiesErrorMeasure(
double error);
213 void InsertBoundaryVertices();
219 void GetPoint(
vtkIdType id,
double x[3]);
222 void GetTerrainPoint(
int i,
int j,
double x[3]);
223 void ComputeImageCoordinates(
vtkIdType inputPtId,
int ij[2]);
224 int InCircle (
double x[3],
double x1[3],
double x2[3],
double x3[3]);
230 void UpdateTriangles(
vtkIdType meshPtId);
232 void UpdateTriangle(
vtkIdType triId,
int ij1[2],
int ij2[2],
int ij3[2],
double h[4]);
234 int CharacterizeTriangle(
int ij1[2],
int ij2[2],
int ij[3],
235 int* &min,
int* &
max,
int* &midL,
int* &midR,
236 int* &mid,
int mid2[2],
double h[3],
double &hMin,
double &hMax,
237 double &hL,
double &hR);
#define VTK_ERROR_SPECIFIED_REDUCTION
virtual int FillInputPortInformation(int port, vtkInformation *info)
represent and manipulate point attribute data
vtkIdType NumberOfTriangles
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkPriorityQueue * TerrainError
dynamic, self-adjusting array of float
vtkGreedyTerrainDecimationPointInfoType * PointInfo
void SetErrorMeasureToAbsoluteError()
concrete dataset represents vertices, lines, polygons, and triangle strips
dynamic, self-adjusting array of double
an list of ids arranged in priority order
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
#define VTK_ERROR_ABSOLUTE
void SetErrorMeasureToRelativeError()
a simple class to control print indentation
list of point or cell ids
abstract superclass for arrays of numeric data
vtkGreedyTerrainDecimationTerrainInfoType * TerrainInfo
void SetErrorMeasureToNumberOfTriangles()
#define VTK_ERROR_NUMBER_OF_TRIANGLES
void SetErrorMeasureToSpecifiedReduction()
#define VTK_ERROR_RELATIVE
vtkIdType MaximumNumberOfTriangles
int BoundaryVertexDeletion
reduce height field (represented as image) to reduced TIN