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 an older version of Boost and was released in 2022. The current version is 1.89.0.
Manipulator to stream geometries as SVG.
template<typename Geometry> svg_manipulator<Geometry> svg(Geometry const & geometry, std::string const & style, double size = -1.0)
|
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 |
Either
#include <boost/geometry.hpp>
Or
#include <boost/geometry/io/svg/write.hpp>