37 #include <QLinkedList>
70 PointSet(
int nbPoints,
double *x,
double *y );
73 PointSet* extractShape(
int nbPtSh,
int imin,
int imax,
int fps,
int fpe,
double fptx,
double fpty );
80 bool containsPoint(
double x,
double y )
const;
90 bool containsLabelCandidate(
double x,
double y,
double width,
double height,
double alpha = 0 )
const;
108 double minDistanceToPoint(
double px,
double py,
double *rx = 0,
double *ry = 0 )
const;
110 void getCentroid(
double &px,
double &py,
bool forceInside =
false )
const;
116 min[0] = xmin; min[1] = ymin;
117 max[0] = xmax; max[1] = ymax;
132 void getPointByDistance(
double *d,
double *ad,
double dl,
double *px,
double *py );
136 const GEOSGeometry* geos()
const;
140 double length()
const;
163 void createGeosGeom()
const;
164 const GEOSPreparedGeometry* preparedGeom()
const;
165 void invalidateGeos();
174 mutable const GEOSPreparedGeometry* mPreparedGeom;
PointSet * getHoleOf()
Returns NULL if this isn't a hole.
A layer of spacial entites.
struct pal::_cHullBox CHullBox
double ANALYSIS_EXPORT max(double x, double y)
Returns the maximum of two doubles or the first argument if both are equal.
Main class to handle feature.
void getBoundingBox(double min[2], double max[2]) const
LabelPosition is a candidate feature label position.
double ANALYSIS_EXPORT min(double x, double y)
Returns the minimum of two doubles or the first argument if both are equal.
Data structure to compute polygon's candidates costs.