19#ifndef MiL_SVG_MARKERS_H
20#define MiL_SVG_MARKERS_H 1
41 const std::string raw)
93 const string si = std::to_string(
static_cast<uint>(i));
100 auto m7 =
make_marker_x(
"x" + si +
"wcagg", {i, i}, {h, h}, h, k::wcaglg_style);
101 auto m8 =
make_marker_rect(
"r" + si +
"wcaglg", {i, i}, {h, h}, k::wcaglg_style);
102 auto m9 =
make_marker_rect(
"r" + si +
"wcagdg", {i, i}, {h, h}, k::wcagdg_style);
104 std::ostringstream oss;
105 oss << m1.
str() << m2.str() << m3.str() << m4.str()
106 << m5.str() << m6.str() << m7.str() << m8.str() << m9.str();
void add_raw(const string &raw)
void add_element(const element_base &e)
path_element make_path_center_mark(const point_2t &origin, const style styl, const int len, const int width, const string xform="", const string tipstr="")
Plus or x tilt mark as closed path that can be filled.
circle_element make_circle(const point_2t origin, const style s, const space_type r, const string xform="")
Make circle element.
rect_element make_rect_centered(const point_2t origin, const style s, const area<> a, const string filterstr="", const string xform="")
Create rect_element centered at origin.
string make_marker_set_n(const double i)
Create a set of markers bounded by a rectangle of size n.
marker_element make_marker_element(const std::string id, const area<> ma, const point_2t mcp, const std::string raw)
Base function for generating SVG markers in a defs section.
marker_element make_marker_rect(const std::string id, const area<> ma, const point_2t mcp, const style styl)
marker_element make_marker_circle(const std::string id, const area<> ma, const point_2t mcp, const uint radius, const style styl)
marker_element make_marker_x(const std::string id, const area<> ma, const point_2t mcp, const uint radius, const style styl)
void make_markers(svg_element &obj)
Make black/white/wcag markers with sizes 4x4 and 2x2.
path_element make_path_polygon(const point_2t origin, const style s, const double r, const uint pointsn, const bool selfclosingtagp=true, const string xattr="")
Center an polygon at this point. radius 4 is pixels to draw out from center point....
std::tuple< space_type, space_type > point_2t
Point (x,y) in 2D space, space_type defaults to double.
marker_element make_marker_triangle(const std::string id, const area<> ma, const point_2t mcp, const uint radius, const style styl)
Datum consolidating style preferences.