A PlotLine is a vector of points with appearance properties. More...
#include <PlotLine.h>
Public Member Functions | |
| virtual void | append () |
| virtual void | clear () |
| virtual AbstractLine * | clone () const |
| virtual int | count () const |
| const Curve< Point > & | curve () const |
| Curve< Point > & | curve () |
| virtual void | insert (int index) |
| virtual void | operator= (const PlotLine &o) |
| virtual Point | point (int index, const CurvePointOptions *) const |
| virtual void | removeLast () |
| virtual void | setX (int index, double v) |
| virtual void | setY (int index, double v, const CurvePointOptions *) |
| virtual void | setZ (int index, double v, const CurvePointOptions *) |
Protected Attributes | |
| Curve< Point > | _curve |
A PlotLine is a vector of points with appearance properties.
Each point is of type Point which has 3 components: x, y and error on y (z component of Point). Appearance properties are the Pen and the QbtSymbol used to draw line segments between points and the symbol at each point, respectively. An additionnal property is a boolean to tell whether the point is selected or not.
| virtual void SciFigs::PlotLine::append | ( | ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
| virtual void SciFigs::PlotLine::clear | ( | ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
| AbstractLine * SciFigs::PlotLine::clone | ( | ) | const [virtual] |
Implements SciFigs::AbstractLine.
{
PlotLine * l=new PlotLine;
*l=*this;
return l;
}
| virtual int SciFigs::PlotLine::count | ( | ) | const [inline, virtual] |
Implements SciFigs::AbstractLine.
| const Curve<Point>& SciFigs::PlotLine::curve | ( | ) | const [inline] |
{return _curve;}
| Curve<Point>& SciFigs::PlotLine::curve | ( | ) | [inline] |
{return _curve;}
| virtual void SciFigs::PlotLine::insert | ( | int | index | ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
| void SciFigs::PlotLine::operator= | ( | const PlotLine & | o | ) | [virtual] |
References _curve.
{
_curve=o._curve;
AbstractLine::operator=(o);
}
| virtual Point SciFigs::PlotLine::point | ( | int | index, |
| const CurvePointOptions * | |||
| ) | const [inline, virtual] |
Implements SciFigs::AbstractLine.
| virtual void SciFigs::PlotLine::removeLast | ( | ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
| virtual void SciFigs::PlotLine::setX | ( | int | index, |
| double | v | ||
| ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{_curve[index].setX(v);}
| virtual void SciFigs::PlotLine::setY | ( | int | index, |
| double | v, | ||
| const CurvePointOptions * | |||
| ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{_curve[index].setY(v);}
| virtual void SciFigs::PlotLine::setZ | ( | int | index, |
| double | v, | ||
| const CurvePointOptions * | |||
| ) | [inline, virtual] |
Implements SciFigs::AbstractLine.
{_curve[index].setZ(v);}
Curve<Point> SciFigs::PlotLine::_curve [protected] |
Referenced by operator=().