MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Public Member Functions | List of all members
DISPLIB::LinePlot Class Reference

Line Plot. More...

#include <lineplot.h>

Public Types

typedef QSharedPointer< LinePlotSPtr
 
typedef QSharedPointer< const LinePlotConstSPtr
 

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)
 

Detailed Description

Line Plot.

Line Plot based on QtCharts

Definition at line 81 of file lineplot.h.

Inheritance diagram for DISPLIB::LinePlot:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const LinePlot> DISPLIB::LinePlot::ConstSPtr

Const shared pointer type for LinePlot.

Definition at line 87 of file lineplot.h.

◆ SPtr

typedef QSharedPointer<LinePlot> DISPLIB::LinePlot::SPtr

Shared pointer type for LinePlot.

Definition at line 86 of file lineplot.h.

Constructor & Destructor Documentation

◆ LinePlot() [1/3]

LinePlot::LinePlot ( QWidget *  parent = Q_NULLPTR)

Constructs a line series plot

Parameters
[in]parentIf 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 62 of file lineplot.cpp.

◆ LinePlot() [2/3]

LinePlot::LinePlot ( const QVector< double > &  y,
const QString &  title = "",
QWidget *  parent = Q_NULLPTR 
)

Constructs a line series plot

Parameters
[in]yThe double data vector.
[in]titlePlot title.
[in]parentIf 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 72 of file lineplot.cpp.

◆ LinePlot() [3/3]

LinePlot::LinePlot ( const QVector< double > &  x,
const QVector< double > &  y,
const QString &  title = "",
QWidget *  parent = Q_NULLPTR 
)

Constructs a line series plot

Parameters
[in]xX-Axis data to plot.
[in]yY-Axis data to plot.
[in]titlePlot title.
[in]parentIf 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 85 of file lineplot.cpp.

◆ ~LinePlot()

LinePlot::~LinePlot ( )
virtual

Destructs the line series plot

Definition at line 99 of file lineplot.cpp.

Member Function Documentation

◆ setTitle()

void LinePlot::setTitle ( const QString &  p_sTitle)

Sets the scaled image view title.

Parameters
[in]p_sTitleThe title.

Definition at line 105 of file lineplot.cpp.

◆ setXLabel()

void LinePlot::setXLabel ( const QString &  p_sXLabel)

Sets the label of the y axes

Parameters
[in]p_sXLabelThe x axes label.

Definition at line 113 of file lineplot.cpp.

◆ setYLabel()

void LinePlot::setYLabel ( const QString &  p_sYLabel)

Sets the label of the y axes

Parameters
[in]p_sXLabelThe y axes label.

Definition at line 121 of file lineplot.cpp.

◆ updateData() [1/2]

void LinePlot::updateData ( const QVector< double > &  y)

Updates the plot using a given double vector without given X data.

Parameters
[in]yThe double data vector.

Definition at line 129 of file lineplot.cpp.

◆ updateData() [2/2]

void LinePlot::updateData ( const QVector< double > &  x,
const QVector< double > &  y 
)

Updates the plot using the given vectors.

Parameters
[in]xX-Axis data to plot.
[in]yY-Axis data to plot.

Definition at line 142 of file lineplot.cpp.


The documentation for this class was generated from the following files: