33#ifndef RACK_GRAPHICS_PANEL
34#define RACK_GRAPHICS_PANEL
37#include <drain/image/FilePng.h>
38#include <drain/image/TreeSVG.h>
39#include <drain/prog/Command.h>
40#include <drain/prog/CommandInstaller.h>
41#include <drain/prog/CommandBank.h>
42#include <drain/util/Output.h>
43#include <main/graphics-panel.h>
44#include "data/SourceODIM.h"
48#include "graphics-radar.h"
49#include <drain/image/TreeSVG.h>
91 int visitPostfix(TreeSVG &root,
const TreeSVG::path_t &path)
override;
112 getParameters().link(
"orientation", orientation=
"HORZ",
114 getParameters().link(
"direction", direction=
"INCR",
120 getParameters().
copyStruct(cmd.getParameters(), cmd, *
this);
125 void exec()
const override;
129 typedef drain::image::AlignBase::Axis orientation_enum;
134 std::string orientation;
138 std::string direction;
171 getParameters().link(
"position", position,
178 getParameters().link(
"anchor", anchor.str(),
181 getParameters().link(
"anchorHorz", anchorHorz.str(),
184 getParameters().link(
"anchorVert", anchorVert.str(),
195 void exec()
const override;
199 std::string position;
243 template <
class T,
size_t N=2>
247 double defaultValue = decay * tuple[0];
255 for (
double & s: tuple){
256 defaultValue = 0.1 * ::round(10.0 * defaultValue);
262 if (s > defaultValue){
267 defaultValue *= decay;
288 void exec()
const override;
302 void exec()
const override;
314 void exec()
const override;
337 void exec()
const override;
361 mout.
accept<LOG_WARNING>(
"new value: ", ctx.svgPanelConf.groupIdentifier);
399 getParameters().link(
"title", ctx.svgPanelConf.mainTitle,
"<empty>|<string>|'auto'");
455 void exec()
const override;
Simple implementation of Command: adds name , description and parameters .
Definition Command.h:445
LogSourc e is the means for a function or any program segment to "connect" to a Log.
Definition Log.h:313
Logger & accept(const TT &... args)
Some input has been accepted, for example by a syntax.
Definition Log.h:583
void copyStruct(const ReferenceMap &m, const T &src, T &dst, extLinkPolicy policy=RESERVE)
Experimental. Copies references and values of a structure to another.
Definition ReferenceMap.h:415
@ LINK
Definition ReferenceMap.h:400
A single-parameter command.
Definition Command.h:469
char separator
Default character used for splitting input and output. See setValues.
Definition SmartMap.h:85
Default implementation of a tree visitor (concept) compatible TreeUtils::traverser()
Definition TreeUtils.h:270
Tuple of N elements of type T.
Definition UniTuple.h:65
VariableT is a final class applied through typedefs Variable, Reference and FlexibleVariable.
Definition VariableT.h:87
Direction
Direction for "Stacked", horziontally or vertically sequentially aligned layout.
Definition LayoutSVG.h:63
"Virtual" command base for FontSizes and HeaderSizes
Definition graphics-panel.h:235
Definition graphics-panel.h:153
virtual void exec() const override
Definition graphics-panel.cpp:360
Definition graphics-panel.h:279
virtual void exec() const override
Run the command with current parameter values.
Definition graphics-panel.cpp:436
Definition graphics-panel.h:341
void exec() const override
Run the command with current parameter values.
Definition graphics-panel.h:355
Definition graphics-panel.h:321
void exec() const override
Run the command with current parameter values.
Definition graphics-panel.cpp:490
Definition graphics-panel.h:447
void exec() const override
Definition graphics-panel.cpp:592
Definition graphics-panel.h:106
virtual void exec() const override
Run the command with current parameter values.
Definition graphics-panel.cpp:333
Definition graphics-panel.h:306
void exec() const override
Run the command with current parameter values.
Definition graphics-panel.cpp:463
Definition graphics-panel.h:293
virtual void exec() const override
Run the command with current parameter values.
Definition graphics-panel.cpp:446
Definition graphics-panel.h:389
Resources provided separately for each thread.
Definition resources.h:67
Formats titles from metadata. Invoked by drain::TreeUtils::traverse()
Definition graphics-panel.h:63
void formatTitle(TreeSVG &group, const NodeSVG::map_t &attributes) const
Group identifiers for elements which be automatically aligned (stacked horizontally or vertically)
Definition graphics-panel.cpp:140
Namespace for images and image processing tools.
Definition AccumulationArray.cpp:45
Definition DataSelector.cpp:44
A container for a static dictionary of enumeration values.
Definition Enum.h:51
Definition AlignAnchorSVG.h:77
Definition resources-image.h:56