|
| | LabelLayouter (TextLayouter *textLayouter) |
| void | SetViewport (const ScreenVectorRectangle &v) |
| void | SetLayoutOverlap (uint32_t overlap) |
| void | Reset () |
| void | Layout (const Projection &projection, const MapParameter ¶meter) |
| template<class Painter> |
| void | DrawTextLabels (const Projection &, const MapParameter &, Painter *) const |
| template<class Painter> |
| void | DrawLabels (const Projection &projection, const MapParameter ¶meter, Painter *p) |
| void | ProcessLabel (const Projection &projection, const MapParameter ¶meter, const Vertex2D &point, LabelInstanceType &instance, double &offset, const LabelData &data, double objectWidth) |
| void | RegisterLabel (const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const Vertex2D &point, const LabelData &data, double objectWidth=10.0) |
| void | RegisterLabel (const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const Vertex2D &point, const std::vector< LabelData > &data, double objectWidth=10.0) |
| void | RegisterContourLabel (const Projection &projection, const MapParameter ¶meter, const ObjectFileRef &ref, const PathLabelData &labelData, const LabelPath &labelPath) |
| const std::vector< LabelInstanceType > & | Labels () const |
| const std::vector< ContourLabelType > & | ContourLabels () const |
template<class NativeGlyph, class NativeLabel, class TextLayouter>
class osmscout::LabelLayouter< NativeGlyph, NativeLabel, TextLayouter >
- Template Parameters
-
| NativeGlyph | |
| NativeLabel | |
| TextLayouter | - class providing low level text layouting required methods: |
// glyph bounding box relative to its base point DoubleScreenRectangle 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);