32 #ifndef RACK_FILE_IO_SVG
33 #define RACK_FILE_IO_SVG
37 #include <drain/prog/CommandBank.h>
38 #include <drain/prog/CommandInstaller.h>
40 #include <drain/util/FileInfo.h>
47 #include "resources.h"
63 typedef std::map<std::string, unsigned short> variableStat_t;
65 int visitPrefix(TreeSVG & tree,
const TreeSVG::path_t & path);
68 int visitPostfix(TreeSVG & tree,
const TreeSVG::path_t & path);
83 typedef std::map<std::string, unsigned short> variableStat_t;
85 int visitPrefix(TreeSVG & tree,
const TreeSVG::path_t & path);
88 int visitPostfix(TreeSVG & tree,
const TreeSVG::path_t & path);
107 int visitPrefix(TreeSVG & tree,
const TreeSVG::path_t & odimPath){
112 int visitPostfix(TreeSVG & tree,
const TreeSVG::path_t & odimPath);
127 drain::image::TreeSVG & getMain(
RackContext & ctx);
131 drain::image::TreeSVG & getCurrentGroup(
RackContext & ctx);
174 getParameters().link(
"filename", filename=
"");
175 getParameters().link(
"layout", layout,
"basic");
179 getParameters().
copyStruct(cmd.getParameters(), cmd, *
this);
187 std::string filename;
189 void appendImage(TreeSVG & group,
const std::string & prefix,
drain::VariableMap & vmap,
Container for geographical extent spanned by lowerLeft(x,y) and upperRight(x,y). Assumes longitude=x ...
Definition: BoundingBox.h:46
Simple implementation of Command: adds name , description and parameters .
Definition: Command.h:417
Extracts and stores directory path, base filename and extension.
Definition: FilePath.h:58
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:399
A map of Variables.
Definition: VariableMap.h:61
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
SVG panel utils.
Definition: fileio-svg.h:119
static void completeSVG(RackContext &ctx, const drain::FilePath &filepath)
Traverse groups, collecting info, recognizing common (shared) variables and pruning them recursively.
Definition: fileio-svg.cpp:622
SVG panel.
Definition: fileio-svg.h:168
void exec() const
Definition: fileio-svg.cpp:925
Resources provided separately for each thread.
Definition: resources.h:67
Definition: fileio-svg.h:95
Definition: DataSelector.cpp:44