#include <iostream>
#include "drain/Type.h"
#include "drain/util/TreeXML.h"
#include "drain/image/TreeSVG.h"
using namespace std;
template <class T>
public:
inline
inline
unit = s;
return *this;
};
inline
const std::string & getUnit(){
return unit;
};
protected:
std::string unit;
};
int main(int argc, char **argv){
TreeSVG svg(NodeSVG::SVG);
svg->set("height", 200);
svg.data = {
{"height", 222},
{"width","111"},
{"MAMBO", false}
};
svg["first"](NodeSVG::GROUP)->set("name", "mainGroup");
svg["first"]->setStyle("fill", "red 2px");
svg["first"]->setStyle("scale", 0.5);
svg["first"]->setStyle("opacity", 0.33);
svg["first"]["r"](NodeSVG::RECT) = "Dependent ctext.";
svg["first"]["r"]->set("width", 10);
svg["first"]["r"]->set("height", 20);
svg["first"]["t"](NodeSVG::TEXT) = "Explanation... free ctext.";
svg["first"]["t"]->set("x ", 15);
svg["first"]["t"]->set("y", 25);
svg["first"]["t"]->set("depth", 30);
TreeSVG::path_t p("koe/mika/sika");
svg(p);
svg("toka/poka/joka");
cout << svg;
return 0;
}
Definition: TreeSVG-example.cpp:46
static bool dump(const TR &tree, std::ostream &ostr=std::cout, bool(*callBack)(const typename TR::node_data_t &, std::ostream &)=TreeUtils::dataDumper, const std::string &indent="")
Render a tree using character graphics.
Definition: TreeUtils.h:192
Namespace for images and image processing tools.
Definition: AccumulationArray.cpp:45
Definition: DataSelector.cpp:1277