39 #include "resources-image.h"
40 #include "resources.h"
103 const std::string &
guessFormat(
const std::string & key);
126 void applyAlignment(
RackContext & ctx, drain::image::TreeSVG & group);
151 void addTitleBox(
const PanelConfSVG & conf, drain::image::TreeSVG &
object, PanelConfSVG::ElemClass elemClass);
154 void addTitles(
const PanelConfSVG & conf, drain::image::TreeSVG &
object,
const std::string & anchor, PanelConfSVG::ElemClass elemClass);
166 drain::image::TreeSVG &
addImageBorder(drain::image::TreeSVG & imagePanel);
234 int visitPrefix(TreeSVG & tree,
const TreeSVG::path_t & path)
override;
236 int visitPostfix(TreeSVG & tree,
const TreeSVG::path_t & path)
override;
240 typedef std::map<std::string, unsigned short> variableStat_t;
251 int visitPrefix(TreeSVG & tree,
const TreeSVG::path_t & path)
override;
253 int visitPostfix(TreeSVG & tree,
const TreeSVG::path_t & path)
override;
260 typedef std::map<std::string, unsigned short> variableStat_t;
298 int visitPostfix(TreeSVG & tree,
const TreeSVG::path_t & odimPath)
override;
305 void writeTitles(TreeSVG & group,
const NodeSVG::map_t & attributes);
Extracts and stores directory path, base filename and extension.
Definition: FilePath.h:58
Something that has width and height.
Definition: Frame.h:53
Default implementation of a tree visitor (concept) compatible TreeUtils::traverser()
Definition: TreeUtils.h:270
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Resources provided separately for each thread.
Definition: resources.h:67
SVG panel utils.
Definition: graphics.h:49
static drain::image::TreeSVG & getImagePanelGroup(RackContext &ctx, const drain::FilePath &filepath)
For each image an own group is created (for clarity, to contain also title TEXT's etc)
Definition: graphics.cpp:364
static drain::image::TreeSVG & getMainGroup(RackContext &ctx)
Top-level GROUP used by Rack. All the graphic elements will be created inside this element.
Definition: graphics.cpp:214
static void completeSVG(RackContext &ctx)
Traverse groups, collecting info, recognizing common (shared) variables and pruning them recursively.
Definition: graphics.cpp:658
static drain::image::TreeSVG & getCurrentAlignedGroup(RackContext &ctx)
Return current row or column of image panels.
Definition: graphics.cpp:329
static const std::string BACKGROUND_RECT
Group identifiers for elements which be automatically aligned (stacked horizontally or vertically)
Definition: graphics.h:57
static drain::image::TreeSVG & addRectangleGroup(RackContext &ctx, const drain::Frame2D< double > &frame={200, 200})
Add rectangle.
static drain::image::TreeSVG & addImageBorder(drain::image::TreeSVG &imagePanel)
Add.
Definition: graphics.cpp:484
static void addTitleBox(const PanelConfSVG &conf, drain::image::TreeSVG &object, PanelConfSVG::ElemClass elemClass)
Add TEXT elements: MAINTITLE, LOCATION, TIME, GENERAL.
Definition: graphics.cpp:494
static void addTitles(const PanelConfSVG &conf, drain::image::TreeSVG &object, const std::string &anchor, PanelConfSVG::ElemClass elemClass)
Definition: graphics.cpp:532
static const std::string & guessFormat(const std::string &key)
returns timeformat
Definition: graphics.cpp:191
static void addImage(RackContext &ctx, const drain::image::Image &src, const drain::FilePath &filepath)
Add pixel image (PNG)
Definition: graphics.cpp:394
static drain::image::TreeSVG & getStyle(RackContext &ctx)
Some SVG style classes. Identifiers for IMAGE and RECT elements over which TEXT elements will be alig...
Definition: graphics.cpp:85
"Collects" titles from metadata. Invoked by drain::TreeUtils::traverse()
Definition: graphics.h:271
static void writeTitles(TreeSVG &group, const NodeSVG::map_t &attributes)
Definition: graphics.cpp:936
Definition: DataSelector.cpp:1277
Definition: DataSelector.cpp:44
Definition: resources-image.h:91