#include <detailplot.h>
Public Member Functions | |
DetailPlot (int linesize, QPointF lineAxis, QWidget *parent=0) | |
void | setData (const double *x, const double *y, const QString &dateTimeLabel) |
void | setSampleBounds (QPoint p) |
void | setLineAxisBounds (QPointF p) |
QSize | sizeHint () const |
DetailPlot is a widget which has the capabilites to plot 2D graphs. It holds a single curve, a detailed representation of a subset (segment) of SimplePlot.
Definition at line 40 of file detailplot.h.
DetailPlot::DetailPlot | ( | int | linesize, | |
QPointF | lineAxis, | |||
QWidget * | parent = 0 | |||
) |
Constructor.
linesize | Length of the cruve. | |
lineAxis | Y-axis scale. | |
parent | Parent widget. |
Definition at line 36 of file detailplot.cpp.
void DetailPlot::setData | ( | const double * | x, | |
const double * | y, | |||
const QString & | dateTimeLabel | |||
) |
Set curve data to be displayed.
x | Pointer to x values. | |
y | Pointer to y values. | |
dateTimeLabel | The start timestamp of the curve data. |
Definition at line 45 of file detailplot.cpp.
void DetailPlot::setLineAxisBounds | ( | QPointF | p | ) | [inline] |
Set Y-axis scale.
p | A pair of points, min and max. |
Definition at line 88 of file detailplot.h.
void DetailPlot::setSampleBounds | ( | QPoint | p | ) | [inline] |
Set X-axis scale. UNUSED.
p | A pair of points containing the range of the X-axis. |
Definition at line 86 of file detailplot.h.
QSize DetailPlot::sizeHint | ( | ) | const [inline] |
Reimplemntation.
Definition at line 74 of file detailplot.h.