|
| Pal () |
| Create an new pal instance. More...
|
|
| Pal (const Pal &other)=delete |
| Pal cannot be copied. More...
|
|
| ~Pal () |
|
Layer * | addLayer (QgsAbstractLabelProvider *provider, const QString &layerName, QgsPalLayerSettings::Placement arrangement, double defaultPriority, bool active, bool toLabel, bool displayAll=false) |
| add a new layer More...
|
|
std::unique_ptr< Problem > | extractProblem (const QgsRectangle &extent, const QgsGeometry &mapBoundary) |
| Extracts the labeling problem for the specified map extent - only features within this extent will be considered. More...
|
|
int | getLineP () |
| Returns the number of candidates to generate for line features. More...
|
|
int | getPointP () |
| Returns the number of candidates to generate for point features. More...
|
|
int | getPolyP () |
| Returns the number of candidates to generate for polygon features. More...
|
|
SearchMethod | getSearch () |
| Returns the search method in use. More...
|
|
bool | getShowPartial () |
| Returns whether partial labels should be allowed. More...
|
|
bool | isCanceled () |
| Check whether the job has been canceled. More...
|
|
Pal & | operator= (const Pal &other)=delete |
| Pal cannot be copied. More...
|
|
void | registerCancelationCallback (FnIsCanceled fnCanceled, void *context) |
| Register a function that returns whether this job has been canceled - 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 labeling 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 87 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 572 of file pal.cpp.