#include <plot.h>
Basic grid-based layout, where you can address cells using grid(x, y).
Inherits signalsmith::plot::Cell.
Inherited by signalsmith::plot::Figure.
Methods | |
| int | rows () const |
| int | columns () const |
| Grid & | operator() (int column, int row) |
| void | toFrame (double time, bool clear=true) override |
| Creates a frame from the current stat, and optionally clears the state ready for the next frame. | |
| void | loopFrame (double loopTime) override |
| Sets loop time (or < 0 to disable) for this element and all children. | |
| void | clearFrames () override |
| Removes all animation frames. Mostly useful if re-using the diagram for multiple animations. | |
Methods inherited from signalsmith::plot::Cell | |
| Plot2D & | plot (double widthPt, double heightPt) |
| Plot2D & | plot () |
Methods inherited from signalsmith::plot::SvgFileDrawable | |
| 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. | |
Protected Member Functions | |
| void | layout (const PlotStyle &style) override |
| void | writeData (SvgWriter &svg, const PlotStyle &style) override |
| void | writeLabel (SvgWriter &svg, const PlotStyle &style) override |
Protected Member Functions inherited from signalsmith::plot::SvgDrawable | |
| void | invalidateLayout () |
| void | addLayoutChild (SvgDrawable *child) |
| These children are removed when the layout is invalidated. | |
Additional Inherited Members | |
Protected Attributes inherited from signalsmith::plot::SvgDrawable | |
| Bounds | bounds |
|
inlineoverridevirtual |
Removes all animation frames. Mostly useful if re-using the diagram for multiple animations.
Reimplemented from signalsmith::plot::SvgDrawable.
|
inlineoverrideprotectedvirtual |
Reimplemented from signalsmith::plot::Cell.
|
inlineoverridevirtual |
Sets loop time (or < 0 to disable) for this element and all children.
Elements may have different loop time
Reimplemented from signalsmith::plot::SvgDrawable.
|
inlineoverridevirtual |
Creates a frame from the current stat, and optionally clears the state ready for the next frame.
The time is the start-time of the frame being created.
Reimplemented from signalsmith::plot::SvgDrawable.
|
inlineoverrideprotectedvirtual |
Reimplemented from signalsmith::plot::SvgDrawable.
|
inlineoverrideprotectedvirtual |
Reimplemented from signalsmith::plot::SvgDrawable.