MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Eigen matrix visualization. More...
#include <imagesc.h>
Public Types | |
typedef QSharedPointer< ImageSc > | SPtr |
typedef QSharedPointer< const ImageSc > | ConstSPtr |
Public Types inherited from DISPLIB::Graph | |
typedef QSharedPointer< Graph > | SPtr |
typedef QSharedPointer< const Graph > | ConstSPtr |
Public Member Functions | |
ImageSc (QWidget *parent=0) | |
ImageSc (Eigen::MatrixXd &p_dMat, QWidget *parent=0) | |
ImageSc (Eigen::MatrixXf &p_fMat, QWidget *parent=0) | |
ImageSc (Eigen::MatrixXi &p_iMat, QWidget *parent=0) | |
~ImageSc () | |
void | init () |
void | updateData (Eigen::MatrixXd &p_dMat) |
void | updateData (Eigen::MatrixXf &p_fMat) |
void | updateData (Eigen::MatrixXi &p_iMat) |
void | setColorMap (const QString &p_sColorMap) |
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 | updateMaps () |
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 | |
QPixmap * | m_pPixmapData |
QPixmap * | m_pPixmapColorbar |
QString | m_sColorMap |
Eigen::MatrixXd | m_matCentNormData |
double | m_dMinValue |
double | m_dMaxValue |
bool | m_bColorbar |
QVector< double > | m_qVecScaleValues |
qint32 | m_iColorbarWidth |
qint32 | m_iColorbarSteps |
qint32 | m_iColorbarGradSteps |
QFont | m_qFontColorbar |
QPen | m_qPenColorbar |
QRgb(* | pColorMapper )(double, const QString &) |
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 |
Eigen matrix visualization.
Visualizes Eigen matrizes, similiar to MATLABs imagesc function; Available colormaps are: Jet, Hot, Bone
typedef QSharedPointer<const ImageSc> DISPLIB::ImageSc::ConstSPtr |
typedef QSharedPointer<ImageSc> DISPLIB::ImageSc::SPtr |
|
explicit |
Creates the scaled image view.
[in] | parent | Parent QObject (optional). |
Definition at line 60 of file imagesc.cpp.
|
explicit |
Creates the scaled image view with a given double matrix.
[in] | p_dMat | The double data matrix. |
[in] | parent | Parent QObject (optional). |
|
explicit |
Creates the scaled image view with a given float matrix.
[in] | p_fMat | The float data matrix. |
[in] | parent | Parent QObject (optional). |
|
explicit |
Creates the scaled image view with a given integer matrix.
[in] | p_iMat | The integer data matrix. |
[in] | parent | Parent QObject (optional). |
ImageSc::~ImageSc | ( | ) |
Destructs the ImageSc object
Definition at line 103 of file imagesc.cpp.
void ImageSc::init | ( | ) |
Initializes the ImageSc object
Definition at line 113 of file imagesc.cpp.
|
protected |
The reimplemented paintEvent
[in] | event | The event. |
Definition at line 252 of file imagesc.cpp.
void ImageSc::setColorMap | ( | const QString & | p_sColorMap | ) |
Sets the color map to use, e.g. "Jet", "Hot", "Bone"
[in] | p_sColorMap | The colormap to use. |
Definition at line 243 of file imagesc.cpp.
void DISPLIB::ImageSc::updateData | ( | Eigen::MatrixXd & | p_dMat | ) |
Updates the scaled image view with a given double matrix.
[in] | p_dMat | The double data matrix. |
void DISPLIB::ImageSc::updateData | ( | Eigen::MatrixXf & | p_fMat | ) |
Updates the scaled image view with a given float matrix.
[in] | p_fMat | The float data matrix. |
void DISPLIB::ImageSc::updateData | ( | Eigen::MatrixXi & | p_iMat | ) |
Updates the scaled image view with a given integer matrix.
[in] | p_dMat | The integer data matrix. |
|
protected |
Updates data and colorbar pixmap
Definition at line 172 of file imagesc.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |