38 #ifndef DRAIN_TREE_UTILS_SVG
39 #define DRAIN_TREE_UTILS_SVG
43 #include <drain/util/Frame.h>
44 #include <drain/util/Flags.h>
45 #include <drain/util/Rectangle.h>
65 FontSizes() :
base_t(12,10,8,6), titles(next()), header(next()), leftHeader(next()), rightHeader(next()) {
69 FontSizes(
const FontSizes & fs) :
base_t(fs), titles(next()), header(next()), leftHeader(next()), rightHeader(next()) {
76 enum Orientation {UNDEFINED_ORIENTATION=0, HORZ, VERT};
80 enum Direction {UNDEFINED_DIRECTION=0, INCR, DECR};
84 enum Legend {NO_LEGEND=0, LEFT=1, RIGHT=2, EMBED=4};
93 bool absolutePaths =
false;
100 PanelConfSVG() : orientation(HORZ), direction(INCR), legend(LEFT, EMBED), maxPerGroup(10), absolutePaths(false){
148 PanelConfSVG::Orientation orientation=PanelConfSVG::UNDEFINED_ORIENTATION, PanelConfSVG::Direction direction=PanelConfSVG::UNDEFINED_DIRECTION);
Flagger accepting values of enum type E.
Definition: Flags.h:763
Tuple of N elements of type T.
Definition: UniTuple.h:65
Definition: TreeUtilsSVG.h:52
Definition: DataSelector.cpp:1277
Something that has coordinates (x,y) and dimensions (width, height).
Definition: Frame.h:139
Definition: TreeUtilsSVG.h:74
std::string groupName
SVG file may contain several "modules", for example rows or columns of IMAGE:s. This is the name of t...
Definition: TreeUtilsSVG.h:91
Definition: TreeUtilsSVG.h:113
static void getBoundingFrame(TreeSVG &group, drain::Frame2D< int > &frame, PanelConfSVG::Orientation orientation=PanelConfSVG::UNDEFINED_ORIENTATION)
Computes the width and height for a bounding box IMAGE and RECT elements.
Definition: TreeUtilsSVG.cpp:77
static bool getRect(TreeSVG &group, drain::Box< double > &rect)
Returns the bounding box defined here as (x,y,width,height) of a single element.
Definition: TreeUtilsSVG.cpp:67
static void alignSequence(TreeSVG &group, const drain::Frame2D< int > &frame, const drain::Point2D< int > &start={0, 0}, PanelConfSVG::Orientation orientation=PanelConfSVG::UNDEFINED_ORIENTATION, PanelConfSVG::Direction direction=PanelConfSVG::UNDEFINED_DIRECTION)
Stack IMAGE and RECT elements within a frame (width x height) to a row or column.
Definition: TreeUtilsSVG.cpp:143
static void alignText(TreeSVG &group)
Moves TEXT elems to desired positions, esp corners (LEFT|RIGHT), (TOP|BOTTOM)
Definition: TreeUtilsSVG.cpp:277