MNE-CPP
0.1.9
A Framework for Electrophysiology
|
#include <lineplot.h>
Public Types | |
typedef QSharedPointer< LinePlot > | SPtr |
typedef QSharedPointer< const LinePlot > | ConstSPtr |
Public Member Functions | |
LinePlot (QWidget *parent=Q_NULLPTR) | |
LinePlot (const QVector< double > &y, const QString &title="", QWidget *parent=Q_NULLPTR) | |
LinePlot (const QVector< double > &x, const QVector< double > &y, const QString &title="", QWidget *parent=Q_NULLPTR) | |
virtual | ~LinePlot () |
void | setTitle (const QString &p_sTitle) |
void | setXLabel (const QString &p_sXLabel) |
void | setYLabel (const QString &p_sYLabel) |
void | updateData (const QVector< double > &y) |
void | updateData (const QVector< double > &x, const QVector< double > &y) |
typedef QSharedPointer<const LinePlot> DISPLIB::LinePlot::ConstSPtr |
Const shared pointer type for LinePlot.
Definition at line 93 of file lineplot.h.
typedef QSharedPointer<LinePlot> DISPLIB::LinePlot::SPtr |
Shared pointer type for LinePlot.
Definition at line 92 of file lineplot.h.
LinePlot::LinePlot | ( | QWidget * | parent = Q_NULLPTR | ) |
Constructs a line series plot
[in] | parent | If parent is Q_NULLPTR, the new widget becomes a window. If parent is another widget, this widget becomes a child window inside parent. The new widget is deleted when its parent is deleted. |
Definition at line 64 of file lineplot.cpp.
LinePlot::LinePlot | ( | const QVector< double > & | y, |
const QString & | title = "" , |
||
QWidget * | parent = Q_NULLPTR |
||
) |
Constructs a line series plot
[in] | y | The double data vector. |
[in] | title | Plot title. |
[in] | parent | If parent is Q_NULLPTR, the new widget becomes a window. If parent is another widget, this widget becomes a child window inside parent. The new widget is deleted when its parent is deleted. |
Definition at line 74 of file lineplot.cpp.
LinePlot::LinePlot | ( | const QVector< double > & | x, |
const QVector< double > & | y, | ||
const QString & | title = "" , |
||
QWidget * | parent = Q_NULLPTR |
||
) |
Constructs a line series plot
[in] | x | X-Axis data to plot. |
[in] | y | Y-Axis data to plot. |
[in] | title | Plot title. |
[in] | parent | If parent is Q_NULLPTR, the new widget becomes a window. If parent is another widget, this widget becomes a child window inside parent. The new widget is deleted when its parent is deleted. |
Definition at line 87 of file lineplot.cpp.
|
virtual |
Destructs the line series plot
Definition at line 101 of file lineplot.cpp.
void LinePlot::setTitle | ( | const QString & | p_sTitle | ) |
Sets the scaled image view title.
[in] | p_sTitle | The title. |
Definition at line 107 of file lineplot.cpp.
void LinePlot::setXLabel | ( | const QString & | p_sXLabel | ) |
Sets the label of the y axes
[in] | p_sXLabel | The x axes label. |
Definition at line 115 of file lineplot.cpp.
void LinePlot::setYLabel | ( | const QString & | p_sYLabel | ) |
Sets the label of the y axes
[in] | p_sXLabel | The y axes label. |
Definition at line 123 of file lineplot.cpp.
void LinePlot::updateData | ( | const QVector< double > & | x, |
const QVector< double > & | y | ||
) |
Updates the plot using the given vectors.
[in] | x | X-Axis data to plot. |
[in] | y | Y-Axis data to plot. |
Definition at line 144 of file lineplot.cpp.
void LinePlot::updateData | ( | const QVector< double > & | y | ) |
Updates the plot using a given double vector without given X data.
[in] | y | The double data vector. |
Definition at line 131 of file lineplot.cpp.