33#ifndef RACK_RESOURCES_SVG
34#define RACK_RESOURCES_SVG
38#include <drain/image/Image.h>
39#include <drain/image/LayoutSVG.h>
40#include <drain/image/TreeSVG.h>
41#include <drain/image/Alignment.h>
42#include <drain/image/TreeUtilsSVG.h>
58 std::string pathPolicy =
"ABSOLUTE";
63 std::string mainTitle =
"AUTO";
64 std::string groupIdentifier =
"";
65 std::string groupTitle =
"AUTO";
93 ConfSVG() : svgIncludes(
drain::image::
FileSVG::IncludePolicy::ALL), pathPolicyFlagger(
drain::image::
FileSVG::PathPolicy::ABSOLUTE), pathPolicy(
"ABSOLUTE") {
123 drain::image::TreeSVG svgTrack;
126 drain::image::TreeSVG & getSVG(){
138 void ensureScript(
const std::string & label,
const std::string & code){
140 drain::UtilsXML::getHeaderObject(getSVG(), svg::SCRIPT, label) = code;
147 AlignBase::Axis mainOrientation = AlignBase::Axis::HORZ;
149 LayoutSVG::DirectionHorz mainDirectionHorz = LayoutSVG::DirectionHorz::RIGHT;
150 LayoutSVG::DirectionVert mainDirectionVert = LayoutSVG::DirectionVert::DOWN;
160 std::string currentImagePanel;
169 return svgTrack[drain::image::svg::STYLE](drain::image::svg::STYLE);
174 drain::image::TreeSVG & ensureOnLoad(
const std::string &
function);
190 drain::image::TreeSVG &
addJavaScripsDef(
const std::string & key,
const std::string & section=
"cls");
213 drain::image::TreeSVG & getCurrentAdapterGroup();
235 drain::image::TreeSVG & getStackedGroup() = 0;
Flagger accepting values of enum type E.
Definition EnumFlagger.h:56
Extracts and stores directory path, base filename and extension.
Definition FilePath.h:54
Something that has width and height.
Definition Frame.h:53
Tuple of N elements of type T.
Definition UniTuple.h:65
DOC: Add class description.
Definition TreeSVG.h:64
A map of radar data, indexed by quantity code (DBZH, VRAD, etc).
Definition Data.h:1293
Definition resources-svg.h:105
bool consumeAlignRequest(drain::image::NodeSVG &node)
Some SVG style classes. Identifiers for IMAGE and RECT elements over which TEXT elements will be alig...
Definition resources-svg.cpp:152
GraphicsContext()
Default constructor.
Definition resources-svg.cpp:47
drain::image::TreeSVG & addJavaScripsDef(const std::string &key, const std::string §ion="cls")
key => Rack.cls.key = 'key';
Definition resources-svg.cpp:117
static drain::image::TreeSVG & ensureAdapterGroup(drain::image::TreeSVG &group)
Definition resources-svg.cpp:134
drain::image::TreeSVG & getImagePanelGroup()
Returns the last applicable.
Definition resources-svg.cpp:276
drain::image::TreeSVG & getMainGroup()
Top-level GROUP used by Rack. All the graphic elements will be created inside this element.
Definition resources-svg.cpp:203
drain::image::TreeSVG & getStyle()
Some SVG style classes. Identifiers for IMAGE and RECT elements over which TEXT elements will be alig...
Definition resources-svg.h:168
virtual ~GraphicsContext()
Destructor.
Definition resources-svg.h:120
void ensureScript(const std::string &label, const std::string &code)
Reserve slot for JavaScript code.
Definition resources-svg.h:138
drain::image::TreeSVG & getJavaScriptDefs()
Definition resources-svg.cpp:106
Namespace for images and image processing tools.
Definition AccumulationArray.cpp:45
Definition AltitudeOp.cpp:42
Definition AlignAnchorSVG.h:77
"Alternative" partial alignment configuration for single object. Partial means that either OBJECT its...
Definition Alignment.h:245
Definition resources-svg.h:48
drain::EnumFlagger< drain::MultiFlagger< drain::image::FileSVG::PathPolicy > > PathPolicyFlagger
SVG file may contain several "modules", for example rows or columns of IMAGE:s. This is the name of t...
Definition resources-svg.h:55
sizeConf boxHeights
Definition resources-svg.h:88
sizeConf fontSizes
Definition resources-svg.h:82