21 #ifndef OBJECT_RENDERER_HPP 22 #define OBJECT_RENDERER_HPP 43 const shared_ptr<Geodata>&
data;
49 void paintLine(cairo_t* cr,
const std::vector<NodeId>& nodeIDs,
bool reverse=
false,
bool connect=
false)
const;
50 void addShield(std::list<shared_ptr<Shield> >& shields,
52 const cairo_text_extents_t* textSize)
const;
53 void addLabel(std::list<shared_ptr<Label> >& labels,
55 const cairo_text_extents_t* textSize)
const;
60 const cairo_matrix_t* transform);
const cairo_matrix_t * transform
const shared_ptr< Geodata > & data
Stores bounding box and style of a label that needs to be placed.
A Style stores the MapCSS properties for a single Node or Way, or a Relation of type multipolygon...
FloatRect bounds
is set by addWayPath for ways or in transformLocation for nodes
void paintLine(cairo_t *cr, const std::vector< NodeId > &nodeIDs, bool reverse=false, bool connect=false) const
This file is part of alaCarte.
void addLabel(std::list< shared_ptr< Label > > &labels, const FloatPoint &p, const cairo_text_extents_t *textSize) const
used by node and way renderer to place a shield.
void addShield(std::list< shared_ptr< Shield > > &shields, const FloatPoint &p, const cairo_text_extents_t *textSize) const
used by node and way renderer to place a shield.
ObjectRenderer(const shared_ptr< Geodata > &data, const Style *s, const cairo_matrix_t *transform)