MNE-CPP  beta 1.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISPLIB::Plot Class Reference

Vector plot. More...

#include <plot.h>

Inheritance diagram for DISPLIB::Plot:
DISPLIB::Graph

Public Types

typedef QSharedPointer< PlotSPtr
 
typedef QSharedPointer< const PlotConstSPtr
 

Public Member Functions

 Plot (QWidget *parent=0)
 
 Plot (VectorXd &p_dVec, QWidget *parent=0)
 
 ~Plot ()
 
void init ()
 
void updateData (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 *)
 
- Protected Member Functions inherited from DISPLIB::Graph
void resizeEvent (QResizeEvent *)
 
void drawLabels (qint32 p_iContentWidth, qint32 p_iContentHeight)
 

Protected Attributes

bool m_bHoldOn
 
QList< QVector< QPointF > > m_qListVecPointFPaths
 
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 97 of file plot.h.

Member Typedef Documentation

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

Const shared pointer type for MatrixView class.

Definition at line 102 of file plot.h.

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

Shared pointer type for MatrixView class.

Definition at line 101 of file plot.h.

Constructor & Destructor Documentation

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

Creates the plot.

Parameters
[in]parentParent QObject (optional)

Definition at line 67 of file plot.cpp.

Plot::Plot ( 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)

Definition at line 77 of file plot.cpp.

Plot::~Plot ( )

Destructs the Plot object

Definition at line 88 of file plot.cpp.

Member Function Documentation

void Plot::init ( )

Initializes the Plot object

Definition at line 96 of file plot.cpp.

void Plot::updateData ( 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 112 of file plot.cpp.

Member Data Documentation

bool DISPLIB::Plot::m_bHoldOn
protected

If multiple plots

Definition at line 144 of file plot.h.

double DISPLIB::Plot::m_dMaxX
protected

Maximal X value

Definition at line 149 of file plot.h.

double DISPLIB::Plot::m_dMaxY
protected

Maximal Y value

Definition at line 151 of file plot.h.

double DISPLIB::Plot::m_dMinX
protected

Minimal X value

Definition at line 148 of file plot.h.

double DISPLIB::Plot::m_dMinY
protected

Minimal Y value

Definition at line 150 of file plot.h.


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