![]() |
|
SVG support for creating aligned image panels. More...
#include <graphics-panel.h>
Static Public Member Functions | |
| static drain::image::TreeSVG & | getStyle (RackContext &ctx) |
| Some SVG style classes. Identifiers for IMAGE and RECT elements over which TEXT elements will be aligned. | |
| static drain::image::TreeSVG & | getOnLoadScript (RackContext &ctx) |
| static drain::image::TreeSVG & | getJavaScriptDefs (RackContext &ctx) |
| static drain::image::TreeSVG & | addJavaScripsDef (RackContext &ctx, const std::string &key, const std::string §ion="cls") |
| key => Rack.cls.key = 'key'; | |
| static const std::string & | guessFormat (const std::string &key) |
| returns timeformat | |
| static drain::image::TreeSVG & | getMainGroup (RackContext &ctx) |
| Top-level GROUP used by Rack. All the graphic elements will be created inside this element. | |
| static drain::image::TreeSVG & | getCurrentAlignedGroup (RackContext &ctx) |
| 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) | |
| static drain::image::TreeSVG & | getImagePanelGroup (RackContext &ctx) |
| static drain::image::TreeSVG & | getAdapterGroup (drain::image::TreeSVG &group) |
| Return current row or column of image panels. | |
| static void | consumeAlignRequest (RackContext &ctx, drain::image::NodeSVG &node) |
| Apply an alignment, to next object only. | |
| static bool | applyInclusion (RackContext &cxt, const drain::FilePath &filepath) |
| static void | addImage (RackContext &ctx, const drain::image::Image &src, const drain::FilePath &filepath) |
| Add pixel image (PNG). | |
| static void | addImage (RackContext &ctx, const drain::image::TreeSVG &svg, const drain::FilePath &filepath) |
| Currently, uses file link (does not embed) | |
| static void | addImage (RackContext &ctx, const drain::Frame2D< drain::image::svg::coord_t > &frame, const drain::FilePath &filepath, const std::string &styleClass="") |
| Add external image from a file path. | |
| static drain::image::TreeSVG & | addTitleBox (const ConfSVG &conf, drain::image::TreeSVG &object, RackSVG::ElemClass elemClass) |
| Create a title from background rectangle and TEXT elements (MAINTITLE, LOCATION, TIME, GENERAL) | |
| static drain::image::TreeSVG & | appendTitleElements (const ConfSVG &conf, drain::image::TreeSVG &group, const std::string &anchor, RackSVG::ElemClass elemClass) |
| Add title elements in given group, to "reserve slots" for actual text content to be added later. | |
| static drain::image::TreeSVG & | appendTitleElements (const ConfSVG &conf, drain::image::TreeSVG &group, const char *anchor, RackSVG::ElemClass elemClass) |
| template<class T > | |
| static drain::image::TreeSVG & | appendTitleElements (const ConfSVG &conf, drain::image::TreeSVG &group, const T &anchorId, RackSVG::ElemClass elemClass) |
| 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. | |
SVG support for creating aligned image panels.
|
static |
Add external image from a file path.
Add pixel image (PNG)
| styleClass | - optional style class, possibly FLOAT |
|
static |
Add pixel image (PNG).
Idea: keep this minimal, add components only upon (eventual) saving of the SVG file.
|
static |
Currently, uses file link (does not embed)
Add SVG image.
|
static |
Add.
| imagePanel |
|
static |
key => Rack.cls.key = 'key';
TODO template
TODO template
Is return value needed?
|
static |
Create a title from background rectangle and TEXT elements (MAINTITLE, LOCATION, TIME, GENERAL)
|
static |
Add title elements in given group, to "reserve slots" for actual text content to be added later.
TODO const double fontSize = // getStyleValue(root, RackSVG::TITLE, "font-size", 12.5); root[drain::image::svg::STYLE][elemClass]->get("font-size", 12.5);
|
static |
Return current row or column of image panels.
Intermediate group "hiding" translation that moves upper left corner of the object to the origin.
|
static |
// static Rack = { cls = {},
} Rack.cls.SELECTOR = 'SELECTOR';
|
static |
Some SVG style classes. Identifiers for IMAGE and RECT elements over which TEXT elements will be aligned.
Group identifiers for elements which be automatically aligned (stacked horizontally or vertically)
Initialize styles, if undone.
1.9.8