boost::geometry::svg_mapper
svg_mapper.hpp
typename Point Point
bool SameScale SameScale true
geometry::select_most_precise< typename coordinate_type< Point >::type, double >::type typedef geometry::select_most_precise< typename coordinate_type<Point>::type, double >::type boost::geometry::svg_mapper< Point, SameScale >::calculation_type calculation_type
strategy::transform::map_transformer< calculation_type, geometry::dimension< Point >::type::value, geometry::dimension< Point >::type::value, true, SameScale > typedef strategy::transform::map_transformer< calculation_type, geometry::dimension<Point>::type::value, geometry::dimension<Point>::type::value, true, SameScale > boost::geometry::svg_mapper< Point, SameScale >::transformer_type transformer_type
model::box< Point > model::box<Point> boost::geometry::svg_mapper< Point, SameScale >::m_bounding_box m_bounding_box
int int boost::geometry::svg_mapper< Point, SameScale >::m_height m_height
boost::scoped_ptr< transformer_type > boost::scoped_ptr<transformer_type> boost::geometry::svg_mapper< Point, SameScale >::m_matrix m_matrix
std::ostream & std::ostream& boost::geometry::svg_mapper< Point, SameScale >::m_stream m_stream
int int boost::geometry::svg_mapper< Point, SameScale >::m_width m_width
std::string std::string boost::geometry::svg_mapper< Point, SameScale >::m_width_height m_width_height
void void boost::geometry::svg_mapper< Point, SameScale >::init_matrix () init_matrix
typename Geometry
void void boost::geometry::svg_mapper< Point, SameScale >::add (Geometry const &geometry) add Geometry const & geometry

Adds a geometry to the transformation matrix. After doing this, the specified geometry can be mapped fully into the SVG map.

Geometry

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

typename Geometry
void void boost::geometry::svg_mapper< Point, SameScale >::map (Geometry const &geometry, std::string const &style, int size=-1) map Geometry const & geometry std::string const & style int size -1

Maps a geometry into the SVG map using the specified style.

Geometry

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

style

String containing verbatim SVG style information

size

Optional size (used for SVG points) in SVG pixels. For linestrings, specify linewidth in the SVG style information

boost::geometry::svg_mapper< Point, SameScale >::svg_mapper
(std::ostream &stream, int width, int height, std::string const &width_height="width=\"100%\" height=\"100%\"")
svg_mapper
std::ostream & stream
int width
int height
std::string const & width_height "width=\"100%\" height=\"100%\""

Constructor, initializing the SVG map. Opens and initializes the SVG. Should be called explicitly.

stream

Output stream, should be a stream already open

width

Width of the SVG map (in SVG pixels)

height

Height of the SVG map (in SVG pixels)

width_height

Optional information to increase width and/or height

typename TextPoint
void 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) 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.

TextPoint

Any type fulfilling a Point Concept

point

Location of the text (in map units)

s

The text itself

style

String containing verbatim SVG style information, of the text

offset_x

Offset in SVG pixels, defaults to 0

offset_y

Offset in SVG pixels, defaults to 0

lineheight

Line height in SVG pixels, in case the text contains

virtual boost::geometry::svg_mapper< Point, SameScale >::~svg_mapper
()
~svg_mapper

Destructor, called automatically. Closes the SVG by streaming <\/svg>

Helper class to create SVG maps.

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]
- boost::geometry::svg_mapper
  add
- boost::geometry::svg_mapper
  calculation_type
- boost::geometry::svg_mapper
  init_matrix
- boost::geometry::svg_mapper
  m_bounding_box
- boost::geometry::svg_mapper
  m_height
- boost::geometry::svg_mapper
  m_matrix
- boost::geometry::svg_mapper
  m_stream
- boost::geometry::svg_mapper
  m_width
- boost::geometry::svg_mapper
  m_width_height
- boost::geometry::svg_mapper
  map
- boost::geometry::svg_mapper
  svg_mapper
- boost::geometry::svg_mapper
  text
- boost::geometry::svg_mapper
  transformer_type
- boost::geometry::svg_mapper
  ~svg_mapper