37 #include <QLinkedList> 74 PointSet(
int nbPoints,
double *
x,
double *
y );
77 PointSet* extractShape(
int nbPtSh,
int imin,
int imax,
int fps,
int fpe,
double fptx,
double fpty );
84 bool containsPoint(
double x,
double y )
const;
94 bool containsLabelCandidate(
double x,
double y,
double width,
double height,
double alpha = 0 )
const;
102 double xrm,
double yrm );
112 double minDistanceToPoint(
double px,
double py,
double *rx =
nullptr,
double *ry =
nullptr )
const;
114 void getCentroid(
double &px,
double &py,
bool forceInside =
false )
const;
138 void getPointByDistance(
double *d,
double *ad,
double dl,
double *px,
double *py );
142 const GEOSGeometry* geos()
const;
169 void createGeosGeom()
const;
170 const GEOSPreparedGeometry* preparedGeom()
const;
171 void invalidateGeos();
180 mutable const GEOSPreparedGeometry* mPreparedGeom;
PointSet * getHoleOf()
Returns NULL if this isn't a hole.
A set of features which influence the labelling process.
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.
void getBoundingBox(double min[2], double max[2]) const
Main class to handle feature.
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.