Static Public Member Functions | List of all members
CmdBaseSVG Class Reference

SVG panel utils. More...

#include <fileio-svg.h>

Inheritance diagram for CmdBaseSVG:
Inheritance graph
[legend]
Collaboration diagram for CmdBaseSVG:
Collaboration graph
[legend]

Static Public Member Functions

static drain::image::TreeSVG & getMain (RackContext &ctx)
 
static drain::image::TreeSVG & getCurrentGroup (RackContext &ctx)
 
static drain::image::TreeSVG & addImage (RackContext &ctx, const drain::image::Image &src, const drain::FilePath &filepath)
 
static drain::image::TreeSVG & addImage (RackContext &ctx, const drain::image::TreeSVG &svg, const drain::FilePath &filepath)
 Currently, uses file link (does not embed)
 
static drain::image::TreeSVG & addImage (RackContext &ctx, const drain::FilePath &filepath, const drain::Frame2D< double > &frame={640, 400})
 Add external image from a file path.
 
static void completeSVG (RackContext &ctx, const drain::FilePath &filepath)
 Traverse groups, collecting info, recognizing common (shared) variables and pruning them recursively. More...
 
- Static Public Member Functions inherited from Contextual
template<class T >
static Cloner< Context, T > & getCloner ()
 

Additional Inherited Members

- Public Types inherited from BeanCommand< BeanLike >
typedef BeanLike bean_t
 
- Public Member Functions inherited from BasicCommand
 BasicCommand (const std::string &name, const std::string &description)
 
 BasicCommand (const BasicCommand &cmd)
 
- Public Member Functions inherited from BeanCommand< BeanLike >
 BeanCommand (const std::string &name, const std::string &description)
 
 BeanCommand (const BeanCommand &cmd)
 
 BeanCommand (BeanLike &b)
 
virtual const bean_tgetBean () const
 
virtual bean_tgetBean ()
 
const std::string & getName () const final
 
const std::string & getDescription () const final
 
virtual const drain::ReferenceMapgetParameters () const final
 
- Public Member Functions inherited from Command
 Command (const Command &cmd)
 
virtual void setParameters (const std::string &args) final
 
template<class T >
void setParameters (const SmartMap< T > &args)
 
template<class T >
void setParameter (const std::string &key, const T &value)
 Set a value to a single parameter. More...
 
CommandaddSection (drain::Flagger::ivalue_t i)
 
virtual void update ()
 Optional method for preparing command to execution. More...
 
bool hasParameters () const
 
virtual const std::string & getType () const
 Description of result, comparable to a return type of a function. ?
 
virtual void exec () const
 Run the command with current parameter values.
 
virtual void run (const std::string &params="")
 Convenience. Sets parameters and executes the command. More...
 
const std::string & getLastParameters () const
 After executing this command run a routine, if defined. More...
 
- Public Member Functions inherited from Contextual
 Contextual ()
 Sets internal contextPtr to NULL.
 
 Contextual (const Contextual &src)
 Copies base context (even null) of the source. Notice that the actual instance may be of derived class.
 
 Contextual (Context &ctx)
 Copies internal contextPtr.
 
template<class C >
void setContext ()
 Sets internal contextPtr to the static source.
 
void setExternalContext (Context &ctx)
 Sets internal contextPtr to outside target.
 
bool contextIsSet () const
 True, if contextPtr has been set.
 
template<class T = Context>
T & getContext () const
 If context has been set, returns it through a cast to base class Context. More...
 
- Public Attributes inherited from BeanCommand< BeanLike >
BeanLike bean
 
- Public Attributes inherited from Command
int section = 1
 
- Static Public Attributes inherited from Command
static const SprinterLayout cmdArgLayout = {",", "?", "=", ""}
 
- Protected Member Functions inherited from BeanCommand< BeanLike >
virtual drain::ReferenceMapgetParameters () final
 
- Protected Attributes inherited from Command
std::string lastParameters
 
- Protected Attributes inherited from Contextual
ContextcontextPtr
 

Detailed Description

SVG panel utils.

Member Function Documentation

◆ completeSVG()

void completeSVG ( RackContext ctx,
const drain::FilePath filepath 
)
static

Traverse groups, collecting info, recognizing common (shared) variables and pruning them recursively.

Collect


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