37#include "resources-image.h"
67 const std::string &
guessFormat(
const std::string & key);
78 drain::image::TreeSVG & getCurrentAlignedGroup(
RackContext & ctx);
117 drain::image::TreeSVG &
addTitleBox(
const PanelConfSVG & conf, drain::image::TreeSVG &
object, PanelConfSVG::ElemClass elemClass);
122 drain::image::TreeSVG &
appendTitleElements(
const PanelConfSVG &conf, drain::image::TreeSVG &group,
const std::string &anchor, PanelConfSVG::ElemClass elemClass);
134 drain::image::TreeSVG &
addImageBorder(drain::image::TreeSVG & imagePanel);
215 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 support for creating aligned image panels.
Definition graphics.h:47
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:644
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:471
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:338
static const std::string BACKGROUND_RECT
Group identifiers for elements which be automatically aligned (stacked horizontally or vertically)
Definition graphics.h:55
static drain::image::TreeSVG & addImageBorder(drain::image::TreeSVG &imagePanel)
Add.
Definition graphics.cpp:602
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:613
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:225
static void addImage(RackContext &ctx, const drain::image::Image &src, const drain::FilePath &filepath)
Add pixel image (PNG).
Definition graphics.cpp:505
static void consumeAlignRequest(RackContext &ctx, drain::image::NodeSVG &node)
Apply an alignment, to next object only.
Definition graphics.cpp:255
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:86
Formats titles from metadata. Invoked by drain::TreeUtils::traverse()
Definition graphics.h:186
void formatTitle(TreeSVG &group, const NodeSVG::map_t &attributes) const
Definition graphics.cpp:739
Definition DataSelector.cpp:1277
Definition DataSelector.cpp:44
Definition resources-image.h:86