|
libosmscout 1.1.1
|
#include <libosmscout-map/include/osmscoutmap/LabelLayouter.h>

Public Member Functions | |
| LayoutJob (const ScreenVectorRectangle &layoutViewport, const Projection &projection, const MapParameter ¶meter) | |
| LayoutJob (const LayoutJob &)=delete | |
| LayoutJob (LayoutJob &&)=delete | |
| ~LayoutJob ()=default | |
| LayoutJob & | operator= (const LayoutJob &)=delete |
| LayoutJob & | operator= (LayoutJob &&)=delete |
| void | Swap (std::vector< LabelInstanceType > &labelInstances, std::vector< ContourLabelType > &contourLabelInstances) |
| void | SortLabels () |
| double | GetLabelPadding (const LabelData &labelData) const |
| ScreenMask * | GetCanvas (LabelData data) |
| void | ProcessLabelInstance (const LabelInstanceType ¤tLabel, std::vector< LabelInstanceType > &labelInstances) |
| void | ProcessLabelContourLabel (const ContourLabelType ¤tContourLabel, std::vector< ContourLabelType > &contourLabelInstances) |
| void | ProcessLabels (std::vector< LabelInstanceType > &labelInstances, std::vector< ContourLabelType > &contourLabelInstances) |
Public Attributes | |
| ScreenVectorRectangle | layoutViewport |
| double | iconPadding |
| double | labelPadding |
| double | shieldLabelPadding |
| double | contourLabelPadding |
| double | overlayLabelPadding |
| std::vector< ContourLabelType > | allSortedContourLabels |
| std::vector< LabelInstanceType > | allSortedLabels |
| ScreenMask | iconCanvas |
| ScreenMask | labelCanvas |
| ScreenMask | overlayCanvas |
Layout job initializes separate canvases for icons/symbols, labels and overlay labels. Then takes all registered labels and contour labels and sort them by priority. Note that labels includes standard labels, icons/symbols and overlay labels. As final step process labels and contour labels (from highest priority) and check its visual rectangle in corresponding canvas. When pixels are not occupied yet, it is added and pixels on canvas mark.
|
inline |
|
delete |
|
delete |
|
default |
|
inline |
|
inline |
|
delete |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| std::vector<ContourLabelType> osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::allSortedContourLabels |
| std::vector<LabelInstanceType> osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::allSortedLabels |
| double osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::contourLabelPadding |
| ScreenMask osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::iconCanvas |
| double osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::iconPadding |
| ScreenMask osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::labelCanvas |
| double osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::labelPadding |
| ScreenVectorRectangle osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::layoutViewport |
| ScreenMask osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::overlayCanvas |
| double osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::overlayLabelPadding |
| double osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LayoutJob::shieldLabelPadding |