|
| Pal () |
| Create an new pal instance. More...
|
|
| ~Pal () |
| delete an instance More...
|
|
Layer * | addLayer (QgsAbstractLabelProvider *provider, const QString &layerName, QgsPalLayerSettings::Placement arrangement, double defaultPriority, bool active, bool toLabel, bool displayAll=false) |
| add a new layer More...
|
|
Problem * | extractProblem (double bbox[4]) |
|
int | getLineP () |
| get maximum # candidates to generate for line features More...
|
|
int | getPointP () |
| get # candidates to generate for point features More...
|
|
int | getPolyP () |
| get maximum # candidates to generate for polygon features More...
|
|
SearchMethod | getSearch () |
| get the search method in use More...
|
|
bool | getShowPartial () |
| Get flag show partial label. More...
|
|
bool | isCancelled () |
| Check whether the job has been cancelled. More...
|
|
QList< LabelPosition * > * | labeller (double bbox[4], PalStat **stats, bool displayAll) |
| the labeling machine Will extract all active layers More...
|
|
void | registerCancellationCallback (FnIsCancelled fnCancelled, void *context) |
| Register a function that returns whether this job has been cancelled - PAL calls it during the computation. More...
|
|
void | removeLayer (Layer *layer) |
| remove a layer More...
|
|
void | setLineP (int line_p) |
| set maximum # candidates to generate for lines features Higher the value is, longer Pal::labeller will spend time More...
|
|
void | setPointP (int point_p) |
| set # candidates to generate for points features Higher the value is, longer Pal::labeller will spend time More...
|
|
void | setPolyP (int poly_p) |
| set maximum # candidates to generate for polygon features Higher the value is, longer Pal::labeller will spend time More...
|
|
void | setSearch (SearchMethod method) |
| Select the search method to use. More...
|
|
void | setShowPartial (bool show) |
| Set flag show partial label. More...
|
|
QList< LabelPosition * > * | solveProblem (Problem *prob, bool displayAll) |
|
Main Pal labelling class.
A pal object will contains layers and global information such as which search method will be used.
- Note
- not available in Python bindings
Definition at line 84 of file pal.h.
Select the search method to use.
For interactive mapping using CHAIN is a good idea because it is the fastest. Other methods, ordered by speedness, are POPMUSIC_TABU, POPMUSIC_CHAIN and POPMUSIC_TABU_CHAIN, defined in pal::_searchMethod enumeration
- Parameters
-
Definition at line 634 of file pal.cpp.