38 #ifndef DRAIN_TREE_SVG
39 #define DRAIN_TREE_SVG
41 #include "drain/util/FileInfo.h"
42 #include "drain/util/TreeXML.h"
50 typedef drain::UnorderedMultiTree<NodeSVG,false, NodeXML<>::path_t> TreeSVG;
60 SVG, CIRCLE, DESC, GROUP, LINE, IMAGE, METADATA, POLYGON, RECT, TEXT, TITLE, TSPAN };
79 NodeSVG(tag_t t = svg::UNDEFINED);
89 void setType(
const tag_t & type);
100 drain::SmartMapTools::setValues<map_t>((
map_t &)*
this, n);
159 std::string text_anchor;
173 std::ostream & operator<<(std::ostream &ostr,
const drain::image::TreeSVG & tree){
181 DRAIN_TYPENAME(image::NodeSVG);
185 image::TreeSVG & image::TreeSVG::operator()(
const image::svg::tag_t & type);
Definition: FileInfo.h:48
Definition: TreeXML.h:135
NodeXML & setText(const S &value)
Assign the text content of this node. If the node type is undefined, set it to CTEXT.
Definition: TreeXML.h:521
NodeSVG & operator=(const std::string &s)
Set text (CTEXT).
Definition: TreeSVG.h:121
NodeSVG & operator=(const char *s)
Set text (CTEXT).
Definition: TreeSVG.h:114
static std::string xlink
In opening SVG tag, referred to by attribute "xmlns:xlink".
Definition: TreeSVG.h:136
NodeSVG & operator=(const NodeSVG &n)
Copy data from a node. (Does not copy subtree.)
Definition: TreeSVG.h:98
NodeSVG & operator=(const std::initializer_list< Variable::init_pair_t > &l)
Set attributes.
Definition: TreeSVG.h:128
NodeSVG & operator=(const tag_t &type)
Set type.
Definition: TreeSVG.h:107
NodeSVG(tag_t t=svg::UNDEFINED)
Default constructor. Create a node of given type.
Definition: TreeSVG.cpp:84
static std::string svg
In opening SVG tag, referred to by attributes "xmlns" and "xmlns:svg".
Definition: TreeSVG.h:140
Definition: DataSelector.cpp:1277