|
| | Pal () |
| | Create an new pal instance. More...
|
| |
| | ~Pal () |
| | delete an instance More...
|
| |
| Layer * | addLayer (const char *lyrName, double min_scale, double max_scale, Arrangement arrangement, Units label_unit, double defaultPriority, bool obstacle, bool active, bool toLabel, bool displayAll=false) |
| | add a new layer More...
|
| |
| Problem * | extractProblem (double scale, double bbox[4]) |
| |
| int | getDpi () |
| | get map resolution More...
|
| |
| Layer * | getLayer (const char *lyrName) |
| | Look for a layer. More...
|
| |
| QList< Layer * > * | getLayers () |
| | get all layers More...
|
| |
| int | getLineP () |
| | get maximum # candidates to generate for line features More...
|
| |
| Units | getMapUnit () |
| | get current map unit 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...
|
| |
| std::list< LabelPosition * > * | labeller (double scale, double bbox[4], PalStat **stats, bool displayAll) |
| | the labeling machine Will extract all active layers More...
|
| |
| std::list< LabelPosition * > * | labeller (int nbLayers, char **layersName, double *layersFactor, double scale, double bbox[4], PalStat **stat, bool displayAll) |
| | the labeling machine Active layers are specifiend through layersName array 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 | setDpi (int dpi) |
| | Set map resolution. 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 | setMapUnit (Units map_unit) |
| | set map unit 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...
|
| |
| std::list< LabelPosition * > * | solveProblem (Problem *prob, bool displayAll) |
| |
Pal main class.
A pal object will contains layers and global information such as which search method will be used, the map resolution (dpi) ....
- Author
- Maxence Laurent (maxence dot laurent at heig-vd dot ch)
Definition at line 126 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 989 of file pal.cpp.