sources/headers/aux_svg.h file

declares drawing commands to generate svg-files

Typedefs

using Coord = int
single coordinate
using Coords = std::pair<Coord, Coord>
coordinates of a point in the plane
using Degrees = int
angle in degrees
using Length = int
length

Functions

auto size_t2Coords(std::pair<size_t, size_t>& input) -> Coords
convert coordinate of type size_t to type Coord.
auto svg_arrowhead(const Coords& x, const Degrees& angle, const std::string& colour = "black", const Length& width = stringwidth) -> std::string
svg arrowhead
auto svg_bezier(const Coords& x, const Coords& y, const Coords& z, const Coords& w, const std::string& colour = "black", const Length& width = stringwidth, const std::string& options = "") -> std::string
svg bezier curve
auto svg_circle(const Coords& x, const Length& r, const std::string& linecolour = "black", const std::string& fillcolour = "none", const Length& width = stringwidth) -> std::string
svg circle
auto svg_line(const Coords& x, const Coords& y, const std::string& colour = "black", const Length& width = stringwidth) -> std::string
svg line
auto svg_mask(const std::string& inner, const std::string& mask_id) -> std::string
svg mask for under-strands of crossings
auto svg_text(const Coords& x, const std::string& text, const std::string& colour = "black", const Length& pixel = 10) -> std::string
svg text

Variables

int stringwhite constexpr
width of the break of the understrand in a crossing
int stringwidth constexpr
width of a tangle string