17 #ifndef TRIANGULATION_H
18 #define TRIANGULATION_H
24 #include "qgis_analysis.h"
61 virtual int addPoint(
const QgsPoint &point ) = 0;
67 virtual bool calcNormal(
double x,
double y,
Vector3D *result
SIP_OUT ) = 0;
70 virtual void performConsistencyTest() = 0;
76 virtual bool calcPoint(
double x,
double y,
QgsPoint &result
SIP_OUT ) = 0;
79 virtual QgsPoint *getPoint(
int i )
const = 0;
96 virtual int getOppositePoint(
int p1,
int p2 ) = 0;
99 virtual double getXMax()
const = 0;
102 virtual double getXMin()
const = 0;
105 virtual double getYMax()
const = 0;
108 virtual double getYMin()
const = 0;
111 virtual int getNumberOfPoints()
const = 0;
119 virtual QList<int> getSurroundingTriangles(
int pointno ) = 0;
127 virtual QList<int> *getPointsAroundEdge(
double x,
double y ) = 0;
136 virtual void setEdgeColor(
int r,
int g,
int b ) = 0;
139 virtual void setForcedEdgeColor(
int r,
int g,
int b ) = 0;
142 virtual void setBreakEdgeColor(
int r,
int g,
int b ) = 0;
148 virtual void eliminateHorizontalTriangles() = 0;
151 virtual void ruppertRefinement() = 0;
154 virtual bool pointInside(
double x,
double y ) = 0;
163 virtual bool swapEdge(
double x,
double y ) = 0;