|
libosmscout
1.1.1
|
#include <libosmscout-map/include/osmscout/LabelLayouter.h>
Public Types | |
| using | ContourLabelType = ContourLabel< NativeGlyph > |
| using | LabelType = Label< NativeGlyph, NativeLabel > |
| using | LabelPtr = std::shared_ptr< LabelType > |
| using | LabelInstanceType = LabelInstance< NativeGlyph, NativeLabel > |
Public Member Functions | |
| LabelLayouter (TextLayouter *textLayouter) | |
| void | SetViewport (const DoubleRectangle &v) |
| void | SetLayoutOverlap (uint32_t overlap) |
| void | Reset () |
| bool | CheckLabelCollision (const std::vector< uint64_t > &canvas, const Mask &mask, int64_t viewportHeight) const |
| void | MarkLabelPlace (std::vector< uint64_t > &canvas, const Mask &mask, int viewportHeight) const |
| bool | IsOverlay (const LabelData &labelData) const |
| void | Layout (const Projection &projection, const MapParameter ¶meter) |
| template<class Painter > | |
| void | DrawLabels (const Projection &projection, const MapParameter ¶meter, Painter *p) |
| void | RegisterLabel (const Projection &projection, const MapParameter ¶meter, const Vertex2D &point, const std::vector< LabelData > &data, double objectWidth=10.0) |
| void | RegisterContourLabel (const Projection &projection, const MapParameter ¶meter, const PathLabelData &labelData, const LabelPath &labelPath) |
| const std::vector< LabelInstanceType > & | Labels () const |
| const std::vector< ContourLabelType > & | ContourLabels () const |
| NativeGlyph | |
| NativeLabel | |
| TextLayouter | - class providing low level text layouting required methods: |
// glyph bounding box relative to its base point DoubleRectangle GlyphBoundingBox(const NativeGlyph &) const
// layout text for label std::shared_ptr<Label<NativeGlyph, NativeLabel>> Layout( const Projection& projection, const MapParameter& parameter, const std::string& text, double fontSize, double objectWidth, bool enableWrapping = false, bool contourLabel = false);
| using osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::ContourLabelType = ContourLabel<NativeGlyph> |
| using osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LabelInstanceType = LabelInstance<NativeGlyph, NativeLabel> |
| using osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LabelPtr = std::shared_ptr<LabelType> |
| using osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >::LabelType = Label<NativeGlyph, NativeLabel> |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
| Painter | required methods: void DrawSymbol(const Projection& projection,
const MapParameter& parameter,
onst Symbol& symbol,
double x, double y) override;
void DrawIcon(const IconStyle* style,
double centerX, double centerY,
double width, double height) override;
void DrawLabel(const Projection& projection,
const MapParameter& parameter,
const DoubleRectangle& labelRectangle,
const LabelData& label,
const std::shared_ptr<NativeLabel>& layout);
void DrawGlyphs(const Projection &projection,
const MapParameter ¶meter,
const osmscout::PathTextStyleRef style,
const std::vector<Glyph<NativeGlyph>> &glyphs);
|
| projection | |
| parameter | |
| p | - painter pointer |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
1.8.14