|
| | svg_mapper (std::ostream &stream, int width, int height, std::string const &width_height="width=\"100%\" height=\"100%\"") |
| | Constructor, initializing the SVG map. More...
|
| |
| virtual | ~svg_mapper () |
| | Destructor, called automatically. More...
|
| |
| template<typename Geometry > |
| void | add (Geometry const &geometry) |
| | Adds a geometry to the transformation matrix. More...
|
| |
| template<typename Geometry > |
| void | map (Geometry const &geometry, std::string const &style, int size=-1) |
| | Maps a geometry into the SVG map using the specified style. More...
|
| |
| template<typename TextPoint > |
| void | text (TextPoint const &point, std::string const &s, std::string const &style, int offset_x=0, int offset_y=0, int lineheight=10) |
| | Adds a text to the SVG map. More...
|
| |
template<typename Point, bool SameScale = true>
class boost::geometry::svg_mapper< Point, SameScale >
Helper class to create SVG maps.
- Template Parameters
-
| Point | Point type, for input geometries. |
| SameScale | Boolean flag indicating if horizontal and vertical scale should be the same. The default value is true |
{[include reference/io/svg.qbk]}
template<typename Point , bool SameScale = true>
template<typename Geometry >
template<typename Point , bool SameScale = true>
template<typename TextPoint >
| void boost::geometry::svg_mapper< Point, SameScale >::text |
( |
TextPoint const & |
point, |
|
|
std::string const & |
s, |
|
|
std::string const & |
style, |
|
|
int |
offset_x = 0, |
|
|
int |
offset_y = 0, |
|
|
int |
lineheight = 10 |
|
) |
| |
|
inline |