Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
svg

Manipulator to stream geometries as SVG.

Synopsis

template<typename Geometry>
svg_manipulator<Geometry> svg(Geometry const & geometry, std::string const & style, double size = -1.0)

Parameters

Type

Concept

Name

Description

Geometry const &

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

std::string const &

style

String containing verbatim SVG style information

double

size

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

Header

Either

#include <boost/geometry.hpp>

Or

#include <boost/geometry/io/svg/write.hpp>


PrevUpHomeNext