36 #include "qgis_core.h" 43 #include <QStringList> 105 Pal(
const Pal &other ) =
delete;
107 Pal &operator=(
const Pal &other ) =
delete;
131 void removeLayer(
Layer *layer );
133 typedef bool ( *FnIsCanceled )(
void *ctx );
136 void registerCancelationCallback( FnIsCanceled fnCanceled,
void *context );
139 inline bool isCanceled() {
return fnIsCanceled ? fnIsCanceled( fnIsCanceledContext ) :
false; }
150 QList<LabelPosition *> solveProblem(
Problem *prob,
bool displayAll );
157 void setShowPartial(
bool show );
164 bool getShowPartial();
172 void setPointP(
int point_p );
180 void setLineP(
int line_p );
188 void setPolyP(
int poly_p );
224 QHash< QgsAbstractLabelProvider *, Layer * > mLayers;
263 FnIsCanceled fnIsCanceled;
265 void *fnIsCanceledContext =
nullptr;
278 void setPopmusicR(
int r );
284 void setMinIt(
int min_it );
290 void setMaxIt(
int max_it );
296 void setTenure(
int tenure );
302 void setEjChainDeg(
int degree );
308 void setCandListSize(
double fact );
327 Q_DECLARE_OPERATORS_FOR_FLAGS( pal::LineArrangementFlags )
A rectangle specified with double values.
A set of features which influence the labeling process.
Is slower and best than TABU, worse and faster than TABU_CHAIN.
A geometry is the spatial representation of a feature.
Is a little bit better than CHAIN but slower.
bool isCanceled()
Check whether the job has been canceled.
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.
Placement
Placement modes which determine how label candidates are generated for a feature. ...
Representation of a labeling problem.
LineArrangementFlag
Enumeration line arrangement flags. Flags can be combined.
SearchMethod
Search method to use.
Is the worst but fastest method.