Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
RackSVG Class Reference

SVG support for creating aligned image panels. More...

#include <graphics-base.h>

Public Types

enum  ElemClass {
  NONE = 0 , MAIN_TITLE = 1 , GROUP_TITLE = 2 , IMAGE_TITLE = 4 ,
  TIME = 8 , LOCATION = 16 , GENERAL = 32 , ALL = (63) ,
  SIDE_PANEL , BORDER
}
 

Static Public Member Functions

static void addStyle (drain::image::TreeSVG &style)
 
static const std::string & guessFormat (const std::string &key)
 returns timeformat
 
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)
 
static drain::image::TreeSVG & appendTitleElements (const ConfSVG &conf, drain::image::TreeSVG &group, const drain::ClassXML &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 void addMetaData (const drain::image::Image &src, drain::image::ImagePanel &imagePanel)
 

Detailed Description

SVG support for creating aligned image panels.

Member Enumeration Documentation

◆ ElemClass

See also
rack::Interactive::ElemClass

Member Function Documentation

◆ addStyle()

void addStyle ( drain::image::TreeSVG &  style)
static

These mainly for PANELS

◆ addTitleBox()

drain::image::TreeSVG & addTitleBox ( const ConfSVG &  conf,
drain::image::TreeSVG &  object,
RackSVG::ElemClass  elemClass 
)
static

Create a title from background rectangle and TEXT elements (MAINTITLE, LOCATION, TIME, GENERAL)

Returns
TEXT element located at child(GENERAL)

◆ appendTitleElements()

drain::image::TreeSVG & appendTitleElements ( const ConfSVG &  conf,
drain::image::TreeSVG &  group,
const std::string &  anchor,
RackSVG::ElemClass  elemClass 
)
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);

◆ guessFormat()

const std::string & guessFormat ( const std::string &  key)
static

returns timeformat

Group identifiers for elements which be automatically aligned (stacked horizontally or vertically)

key => Rack.cls.key = 'key'; TODO template

Is return value needed?


The documentation for this class was generated from the following files: