Пример #1
0
/* virtual */ std::string svg_writer::get_label_formatted(
                const rna_label& label,
                const RGB& color) const
{
    properties out;

    out
        << get_point_formatted(label.p, "", "")
        << property("class", color.get_name());

    return create_element("text", out, label.label);
}
Пример #2
0
/* virtual */ std::string svg_writer::get_line_formatted(
                point from,
                point to,
                const RGB& color) const
{
    properties out;

    out
        << get_point_formatted(from, "", "1")
        << get_point_formatted(to, "", "2")
        << property("class", color.get_name());

    return create_element("line", out);
}