Relacs Plot Library
0.9.8
|
#include <plot.h>
Public Types | |
enum | DataTypes { SinglePoint, TwoPoints, Map, Events } |
Public Member Functions | |
DataElement (DataTypes dt) | |
virtual | ~DataElement (void) |
void | setAxis (Plot::Axis axis) |
void | setAxis (int xaxis, int yaxis) |
void | setLineIndex (long inx) |
long | lineIndex () const |
void | setPointIndex (long inx) |
long | pointIndex () const |
void | setLine (const Plot::LineStyle &style) |
void | setLine (int lcolor=Transparent, int lwidth=1, Plot::Dash ldash=Solid) |
void | setPoint (const Plot::PointStyle &style) |
void | setPoint (Points ptype=Circle, int psize=10, int pcolor=Transparent, int pfill=Transparent) |
void | setStyle (const Plot::LineStyle &lstyle, const Plot::PointStyle &pstyle) |
void | setStyle (int lcolor=Transparent, int lwidth=1, Plot::Dash ldash=Solid, Points ptype=Circle, int psize=10, int pcolor=Transparent, int pfill=Transparent) |
virtual long | first (double x1, double y1, double x2, double y2) const =0 |
virtual long | last (double x1, double y1, double x2, double y2) const =0 |
virtual void | point (long index, double &x, double &y) const =0 |
virtual void | errors (long index, double &up, double &down) const |
virtual void | vector (long index, double &a, double &l) const |
virtual bool | init (void) |
virtual void | xminmax (double &xmin, double &xmax, double ymin, double ymax) const |
virtual void | yminmax (double xmin, double xmax, double &ymin, double &ymax) const |
virtual void | setRange (double xmin[MaxAxis], double xmax[MaxAxis], double ymin[MaxAxis], double ymax[MaxAxis], int xpmin, int xpmax, int ypmin, int ypmax) |
Protected Attributes | |
bool | Own |
int | XAxis |
int | YAxis |
int | LineIndex |
int | PointIndex |
DataTypes | DataType |
Plot::LineStyle | Line |
Plot::PointStyle | Point |
Friends | |
class | Plot |
Manages a single 2-D data item for plotting lines.
enum DataTypes |
DataElement | ( | DataTypes | dt | ) |
|
virtual |
void setAxis | ( | Plot::Axis | axis | ) |
void setAxis | ( | int | xaxis, |
int | yaxis | ||
) |
void setLineIndex | ( | long | inx | ) |
long lineIndex | ( | ) | const |
void setPointIndex | ( | long | inx | ) |
long pointIndex | ( | ) | const |
void setLine | ( | const Plot::LineStyle & | style | ) |
void setLine | ( | int | lcolor = Transparent , |
int | lwidth = 1 , |
||
Plot::Dash | ldash = Solid |
||
) |
void setPoint | ( | const Plot::PointStyle & | style | ) |
void setPoint | ( | Points | ptype = Circle , |
int | psize = 10 , |
||
int | pcolor = Transparent , |
||
int | pfill = Transparent |
||
) |
void setStyle | ( | const Plot::LineStyle & | lstyle, |
const Plot::PointStyle & | pstyle | ||
) |
void setStyle | ( | int | lcolor = Transparent , |
int | lwidth = 1 , |
||
Plot::Dash | ldash = Solid , |
||
Plot::Points | ptype = Circle , |
||
int | psize = 10 , |
||
int | pcolor = Transparent , |
||
int | pfill = Transparent |
||
) |
|
pure virtual |
The index of the first data point in the x-range x1, x2 and the y-range y1, y2.
|
pure virtual |
The index of the last data point in the x-range x1, x2 and the y-range y1, y2.
|
pure virtual |
Returns the x coordinate and y coordinate of the data point at index\ a index.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Can be reimplemented for some initialization before initializing and drawing the plot.
true
if the data changed
|
inlinevirtual |
Returns a sensible x-range xmin and xmax for a given y-range ymin, ymax.
|
inlinevirtual |
Returns a sensible y-range ymin and ymax for a given x-range xmin, xmax.
|
inlinevirtual |
Passes the current ranges and pixel positions to the data element after initializing but before drawing the plot.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |