38 #include <QStringList>
151 void removeLayer(
Layer *layer );
163 std::list<LabelPosition*> *labeller(
double bbox[4],
PalStat **stats,
bool displayAll );
165 typedef bool ( *FnIsCancelled )(
void* ctx );
168 void registerCancellationCallback( FnIsCancelled fnCancelled,
void* context );
171 inline bool isCancelled() {
return fnIsCancelled ? fnIsCancelled( fnIsCancelledContext ) :
false; }
173 Problem* extractProblem(
double bbox[4] );
175 std::list<LabelPosition*>* solveProblem(
Problem* prob,
bool displayAll );
182 void setShowPartial(
bool show );
189 bool getShowPartial();
197 void setPointP(
int point_p );
205 void setLineP(
int line_p );
213 void setPolyP(
int poly_p );
288 FnIsCancelled fnIsCancelled;
290 void* fnIsCancelledContext;
301 Problem* extract(
double lambda_min,
double phi_min,
302 double lambda_max,
double phi_max );
309 void setPopmusicR(
int r );
315 void setMinIt(
int min_it );
321 void setMaxIt(
int max_it );
327 void setTenure(
int tenure );
333 void setEjChainDeg(
int degree );
339 void setCandListSize(
double fact );
356 Q_DECLARE_OPERATORS_FOR_FLAGS( pal::LineArrangementFlags )
arranges candidates around a point (centroid for polygon)
A layer of spacial entites.
bool isCancelled()
Check whether the job has been cancelled.
is slower and best than TABU, worse and faster than TABU_CHAIN
Only for polygon, arranges candidates with respect of polygon orientation.
is a little bit better than CHAIN but slower
GEOSContextHandle_t geosContext()
Get GEOS context handle to be used in all GEOS library calls with reentrant API.
Main class to handle feature.
The QgsAbstractLabelProvider class is an interface class.
Only for lines, labels along the line.
Arrangement
The way to arrange labels against spatial entities.
LineArrangementFlag
Enumeration line arrangement flags.
SearchMethod
Search method to use.
is the worst but fastest method
arranges candidates over a point (centroid for polygon)