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

Vector plot. More...

#include <plot.h>

Public Types

typedef QSharedPointer< PlotSPtr
 
typedef QSharedPointer< const PlotConstSPtr
 
- Public Types inherited from DISPLIB::Graph
typedef QSharedPointer< GraphSPtr
 
typedef QSharedPointer< const GraphConstSPtr
 

Public Member Functions

 Plot (QWidget *parent=Q_NULLPTR)
 
 Plot (Eigen::VectorXd &p_dVec, QWidget *parent=0)
 
 ~Plot ()
 
void init ()
 
void updateData (Eigen::VectorXd &p_dVec)
 
- Public Member Functions inherited from DISPLIB::Graph
 Graph (QWidget *parent=0)
 
void init ()
 
void setTitle (const QString &p_sTitle)
 
void setXLabel (const QString &p_sXLabel)
 
void setYLabel (const QString &p_sYLabel)
 

Protected Member Functions

void paintEvent (QPaintEvent *event)
 
- Protected Member Functions inherited from DISPLIB::Graph
void resizeEvent (QResizeEvent *event)
 
void drawLabels (qint32 p_iContentWidth, qint32 p_iContentHeight)
 

Protected Attributes

QList< QVector< QPointF > > m_qListVecPointFPaths
 
bool m_bHoldOn
 
double m_dMinX
 
double m_dMaxX
 
double m_dMinY
 
double m_dMaxY
 
- Protected Attributes inherited from DISPLIB::Graph
QSize m_qSizeWidget
 
QString m_sTitle
 
QFont m_qFontTitle
 
QPen m_qPenTitle
 
qint32 m_iBorderTopBottom
 
qint32 m_iBorderLeftRight
 
QString m_sXLabel
 
QString m_sYLabel
 
QFont m_qFontAxes
 
QPen m_qPenAxes
 

Detailed Description

Vector plot.

Plots vector data, similiar to MATLABs plot

Definition at line 77 of file plot.h.

Inheritance diagram for DISPLIB::Plot:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

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

Const shared pointer type for Plot class.

Definition at line 83 of file plot.h.

◆ SPtr

typedef QSharedPointer<Plot> DISPLIB::Plot::SPtr

Shared pointer type for Plot class.

Definition at line 82 of file plot.h.

Constructor & Destructor Documentation

◆ Plot() [1/2]

Plot::Plot ( QWidget *  parent = Q_NULLPTR)
explicit

Creates the plot.

Parameters
[in]parentParent QObject (optional).

Definition at line 60 of file plot.cpp.

◆ Plot() [2/2]

DISPLIB::Plot::Plot ( Eigen::VectorXd &  p_dVec,
QWidget *  parent = 0 
)
explicit

Creates the plot using a given double vector.

Parameters
[in]p_dVecThe double data vector.
[in]parentParent QObject (optional).

◆ ~Plot()

Plot::~Plot ( )

Destructs the Plot object

Definition at line 79 of file plot.cpp.

Member Function Documentation

◆ init()

void Plot::init ( )

Initializes the Plot object

Definition at line 85 of file plot.cpp.

◆ paintEvent()

void Plot::paintEvent ( QPaintEvent *  event)
protected

The reimplemented paintEvent

Parameters
[in]eventThe event.

Definition at line 130 of file plot.cpp.

◆ updateData()

void Plot::updateData ( Eigen::VectorXd &  p_dVec)

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

Parameters
[in]p_dVecThe double data vector.

Definition at line 100 of file plot.cpp.

Member Data Documentation

◆ m_bHoldOn

bool DISPLIB::Plot::m_bHoldOn
protected

If multiple plots.

Definition at line 134 of file plot.h.

◆ m_dMaxX

double DISPLIB::Plot::m_dMaxX
protected

Maximal X value.

Definition at line 136 of file plot.h.

◆ m_dMaxY

double DISPLIB::Plot::m_dMaxY
protected

Maximal Y value.

Definition at line 138 of file plot.h.

◆ m_dMinX

double DISPLIB::Plot::m_dMinX
protected

Minimal X value.

Definition at line 135 of file plot.h.

◆ m_dMinY

double DISPLIB::Plot::m_dMinY
protected

Minimal Y value.

Definition at line 137 of file plot.h.

◆ m_qListVecPointFPaths

QList<QVector<QPointF> > DISPLIB::Plot::m_qListVecPointFPaths
protected

List of point series.

Definition at line 132 of file plot.h.


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