Wrapper for slightly more semantic code when writing SVGs.
|
| SvgWriter (std::ostream &output, Bounds bounds, double precision) |
|
SvgWriter & | raw () |
|
template<class First , class ... Args> |
SvgWriter & | raw (First &&first, Args &&...args) |
|
SvgWriter & | write () |
|
template<class First , class ... Args> |
SvgWriter & | write (First &&v, Args &&...args) |
|
template<class ... Args> |
SvgWriter & | write (const char *str, Args &&...args) |
|
template<class ... Args> |
SvgWriter & | write (std::string str, Args &&...args) |
|
template<class ... Args> |
SvgWriter & | attr (const char *name, Args &&...args) |
|
SvgWriter & | pushClip (Bounds b, double dataCheckPadding) |
|
SvgWriter & | popClip () |
|
std::string | elementId (std::string prefix) |
|
Tag | tag (const char *name, bool selfClose=false) |
|
Tag | line (double x1, double y1, double x2, double y2) |
|
Tag | rect (double x, double y, double w, double h) |
|
double | round (double v) |
|
void | startPath () |
|
void | endPath () |
|
void | addPoint (double x, double y, bool alwaysInclude=false) |
|