36 #include "qgis_core.h" 44 #include <QStringList> 103 Pal(
const Pal &other ) =
delete;
105 Pal &operator=(
const Pal &other ) =
delete;
127 void removeLayer(
Layer *layer );
129 typedef bool ( *FnIsCanceled )(
void *ctx );
132 void registerCancellationCallback( FnIsCanceled fnCanceled,
void *context );
135 inline bool isCanceled() {
return fnIsCanceled ? fnIsCanceled( fnIsCanceledContext ) :
false; }
158 QList<LabelPosition *> solveProblem(
Problem *prob,
bool displayAll, QList<pal::LabelPosition *> *unlabeled =
nullptr );
165 void setShowPartial(
bool show );
170 bool getShowPartial();
178 void setPointP(
int point_p );
186 void setLineP(
int line_p );
194 void setPolyP(
int poly_p );
213 QHash< QgsAbstractLabelProvider *, Layer * > mLayers;
242 double candListSize = 0.2;
247 bool showPartial =
true;
250 FnIsCanceled fnIsCanceled =
nullptr;
252 void *fnIsCanceledContext =
nullptr;
265 void setPopmusicR(
int r );
271 void setMinIt(
int min_it );
277 void setMaxIt(
int max_it );
283 void setTenure(
int tenure );
289 void setEjChainDeg(
int degree );
295 void setCandListSize(
double fact );
314 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.
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.