42#include "resources-image.h"
72 const std::string &
guessFormat(
const std::string & key);
88 drain::image::TreeSVG & getCurrentAlignedGroup(
RackContext & ctx);
127 drain::image::TreeSVG &
addTitleBox(
const PanelConfSVG & conf, drain::image::TreeSVG &
object, PanelConfSVG::ElemClass elemClass);
132 drain::image::TreeSVG &
appendTitleElements(
const PanelConfSVG &conf, drain::image::TreeSVG &group,
const std::string &anchor, PanelConfSVG::ElemClass elemClass);
144 drain::image::TreeSVG &
addImageBorder(drain::image::TreeSVG & imagePanel);
258 int visitPostfix(TreeSVG &root,
const TreeSVG::path_t &path)
override;
Extracts and stores directory path, base filename and extension.
Definition FilePath.h:58
Something that has width and height.
Definition Frame.h:55
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:193
Resources provided separately for each thread.
Definition resources.h:77
SVG panel utils.
Definition graphics.h:52
static drain::image::TreeSVG & appendTitleElements(const PanelConfSVG &conf, drain::image::TreeSVG &group, const std::string &anchor, PanelConfSVG::ElemClass elemClass)
Add title elements in given group, to "reserve slots" for actual text content to be added later.
Definition graphics.cpp:584
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:405
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:212
static const std::string BACKGROUND_RECT
Group identifiers for elements which be automatically aligned (stacked horizontally or vertically)
Definition graphics.h:60
static drain::image::TreeSVG & addImageBorder(drain::image::TreeSVG &imagePanel)
Add.
Definition graphics.cpp:542
static drain::image::TreeSVG & addTitleBox(const PanelConfSVG &conf, drain::image::TreeSVG &object, PanelConfSVG::ElemClass elemClass)
Create a title from background rectangle and TEXT elements (MAINTITLE, LOCATION, TIME,...
Definition graphics.cpp:553
static drain::image::TreeSVG & addRectangleGroup(RackContext &ctx, const drain::Frame2D< double > &frame={200, 200})
Add rectangle.
static const std::string & guessFormat(const std::string &key)
returns timeformat
Definition graphics.cpp:189
static void addImage(RackContext &ctx, const drain::image::Image &src, const drain::FilePath &filepath)
Add pixel image (PNG).
Definition graphics.cpp:445
static void consumeAlignRequest(RackContext &ctx, drain::image::NodeSVG &node)
Apply an alignment, to next object only.
Definition graphics.cpp:242
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
Formats titles from metadata. Invoked by drain::TreeUtils::traverse()
Definition graphics.h:229
void formatTitle(TreeSVG &group, const NodeSVG::map_t &attributes) const
Definition graphics.cpp:679
Definition DataSelector.cpp:1277
Definition DataSelector.cpp:44
Definition resources-image.h:86