A line on a 2D plot, with fill and/or stroke.
|
| Line2D (Axis &axisX, Axis &axisY, PlotStyle::Counter styleIndex) |
|
Line2D & | add (double x, double y) |
|
template<class X, class Y> |
Line2D & | addArray (X &&x, Y &&y, size_t size) |
|
template<class X, class Y> |
Line2D & | addArray (X &&x, Y &&y) |
|
Line2D & | cut () |
|
Point2D | prev () const |
|
Line2D & | marker (double x, double y, int shape=-1) |
|
Line2D & | dot (double x, double y, double screenR) |
| Adds a scatter-plot style circle.
|
|
Line2D & | dot (double x, double y, double screenR, double unitColour) |
| Adds a scatter-plot style circle, with colour value in the 0-1 range.
|
|
Line2D & | label (double valueX, double valueY, std::string name) |
|
Line2D & | label (double valueX, double valueY, std::string name, double degrees, double distance=0) |
| Label with direction (degrees clockwise) and distance.
|
|
Line2D & | label (std::string name, double degrees=0, double distance=0) |
| Adds a label using the latest point/marker/dot position.
|
|
Line2D & | label (double xIsh, std::string name, double degrees=0, double distance=0) |
| Adds a label using the closest (line) point to the given x-axis position.
|
|
|
Line2D & | drawLine (bool draw=true) |
|
Line2D & | drawFill (bool draw=true) |
|
Line2D & | fillToY (double y) |
| Start/end the fill at a given Y value.
|
|
Line2D & | fillToX (double x) |
| Start/end the fill at a given X value.
|
|
Line2D & | fillTo (Line2D &other) |
|
|
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 endTime) 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.
|
|
void | writeLabel (SvgWriter &svg, const PlotStyle &style) override |
|
void | writeData (SvgWriter &svg, const PlotStyle &style) override |
|
| 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.
|
|