#include <plot.h>
Top-level objects which can generate SVG files.
Inherits signalsmith::plot::SvgDrawable.
Inherited by signalsmith::plot::Cell, signalsmith::plot::Legend, and signalsmith::plot::Plot2D.
Nested Classes | |
struct | ScheduledWrite |
Draws when this object goes out of scope. More... | |
Methods | |
virtual PlotStyle | defaultStyle () const |
void | write (std::ostream &o, const PlotStyle &style) |
void | write (const std::string &svgFile, const PlotStyle &style) |
void | write (std::ostream &o) |
void | write (const std::string &svgFile) |
ScheduledWrite | writeLater (const std::string &svgFile) |
Methods inherited from signalsmith::plot::SvgDrawable | |
SvgDrawable (const SvgDrawable &other)=delete | |
SvgDrawable & | operator= (const SvgDrawable &other)=delete |
Bounds | layoutIfNeeded (const PlotStyle &style) |
void | addChild (SvgDrawable *child, bool front=false) |
Takes ownership of the child. More... | |
virtual void | writeData (SvgWriter &svg, const PlotStyle &style) |
virtual void | writeLabel (SvgWriter &svg, const PlotStyle &style) |
virtual void | toFrame (double time, bool clear=true) |
Creates a frame from the current stat, and optionally clears the state ready for the next frame. More... | |
virtual void | loopFrame (double loopTime) |
Sets loop time (or < 0 to disable) More... | |
virtual void | clearFrames () |
Removes all animation frames. Mostly useful if re-using the diagram for multiple animations. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from signalsmith::plot::SvgDrawable | |
void | invalidateLayout () |
virtual void | layout (const PlotStyle &style) |
void | addLayoutChild (SvgDrawable *child) |
These children are removed when the layout is invalidated. More... | |
Protected Attributes inherited from signalsmith::plot::SvgDrawable | |
Bounds | bounds |