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

Eigen matrix visualization. More...

#include <imagesc.h>

Public Types

typedef QSharedPointer< ImageScSPtr
 
typedef QSharedPointer< const ImageScConstSPtr
 
- Public Types inherited from DISPLIB::Graph
typedef QSharedPointer< GraphSPtr
 
typedef QSharedPointer< const GraphConstSPtr
 

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
 

Detailed Description

Eigen matrix visualization.

Visualizes Eigen matrizes, similiar to MATLABs imagesc function; Available colormaps are: Jet, Hot, Bone

Definition at line 77 of file imagesc.h.

Inheritance diagram for DISPLIB::ImageSc:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

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

Const shared pointer type for ImageSc class.

Definition at line 83 of file imagesc.h.

◆ SPtr

typedef QSharedPointer<ImageSc> DISPLIB::ImageSc::SPtr

Shared pointer type for ImageSc class.

Definition at line 82 of file imagesc.h.

Constructor & Destructor Documentation

◆ ImageSc() [1/4]

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

Creates the scaled image view.

Parameters
[in]parentParent QObject (optional).

Definition at line 60 of file imagesc.cpp.

◆ ImageSc() [2/4]

DISPLIB::ImageSc::ImageSc ( Eigen::MatrixXd &  p_dMat,
QWidget *  parent = 0 
)
explicit

Creates the scaled image view with a given double matrix.

Parameters
[in]p_dMatThe double data matrix.
[in]parentParent QObject (optional).

◆ ImageSc() [3/4]

DISPLIB::ImageSc::ImageSc ( Eigen::MatrixXf &  p_fMat,
QWidget *  parent = 0 
)
explicit

Creates the scaled image view with a given float matrix.

Parameters
[in]p_fMatThe float data matrix.
[in]parentParent QObject (optional).

◆ ImageSc() [4/4]

DISPLIB::ImageSc::ImageSc ( Eigen::MatrixXi &  p_iMat,
QWidget *  parent = 0 
)
explicit

Creates the scaled image view with a given integer matrix.

Parameters
[in]p_iMatThe integer data matrix.
[in]parentParent QObject (optional).

◆ ~ImageSc()

ImageSc::~ImageSc ( )

Destructs the ImageSc object

Definition at line 103 of file imagesc.cpp.

Member Function Documentation

◆ init()

void ImageSc::init ( )

Initializes the ImageSc object

Definition at line 113 of file imagesc.cpp.

◆ paintEvent()

void ImageSc::paintEvent ( QPaintEvent *  event)
protected

The reimplemented paintEvent

Parameters
[in]eventThe event.

Definition at line 252 of file imagesc.cpp.

◆ setColorMap()

void ImageSc::setColorMap ( const QString &  p_sColorMap)

Sets the color map to use, e.g. "Jet", "Hot", "Bone"

Parameters
[in]p_sColorMapThe colormap to use.

Definition at line 243 of file imagesc.cpp.

◆ updateData() [1/3]

void DISPLIB::ImageSc::updateData ( Eigen::MatrixXd &  p_dMat)

Updates the scaled image view with a given double matrix.

Parameters
[in]p_dMatThe double data matrix.

◆ updateData() [2/3]

void DISPLIB::ImageSc::updateData ( Eigen::MatrixXf &  p_fMat)

Updates the scaled image view with a given float matrix.

Parameters
[in]p_fMatThe float data matrix.

◆ updateData() [3/3]

void DISPLIB::ImageSc::updateData ( Eigen::MatrixXi &  p_iMat)

Updates the scaled image view with a given integer matrix.

Parameters
[in]p_dMatThe integer data matrix.

◆ updateMaps()

void ImageSc::updateMaps ( )
protected

Updates data and colorbar pixmap

Definition at line 172 of file imagesc.cpp.

Member Data Documentation

◆ m_bColorbar

bool DISPLIB::ImageSc::m_bColorbar
protected

If colorbar is visible.

Definition at line 191 of file imagesc.h.

◆ m_dMaxValue

double DISPLIB::ImageSc::m_dMaxValue
protected

Maximal data value.

Definition at line 189 of file imagesc.h.

◆ m_dMinValue

double DISPLIB::ImageSc::m_dMinValue
protected

Minimal data value.

Definition at line 188 of file imagesc.h.

◆ m_iColorbarGradSteps

qint32 DISPLIB::ImageSc::m_iColorbarGradSteps
protected

Gradient steps of the colorbar.

Definition at line 195 of file imagesc.h.

◆ m_iColorbarSteps

qint32 DISPLIB::ImageSc::m_iColorbarSteps
protected

Number of colorbar vaues to display.

Definition at line 194 of file imagesc.h.

◆ m_iColorbarWidth

qint32 DISPLIB::ImageSc::m_iColorbarWidth
protected

Colorbar width.

Definition at line 193 of file imagesc.h.

◆ m_matCentNormData

Eigen::MatrixXd DISPLIB::ImageSc::m_matCentNormData
protected

centralized and normalized data.

Definition at line 186 of file imagesc.h.

◆ m_pPixmapColorbar

QPixmap* DISPLIB::ImageSc::m_pPixmapColorbar
protected

colorbar pixmap.

Definition at line 182 of file imagesc.h.

◆ m_pPixmapData

QPixmap* DISPLIB::ImageSc::m_pPixmapData
protected

data pixmap.

Definition at line 181 of file imagesc.h.

◆ m_qFontColorbar

QFont DISPLIB::ImageSc::m_qFontColorbar
protected

Colorbar font.

Definition at line 196 of file imagesc.h.

◆ m_qPenColorbar

QPen DISPLIB::ImageSc::m_qPenColorbar
protected

Colorbar pen.

Definition at line 197 of file imagesc.h.

◆ m_qVecScaleValues

QVector<double> DISPLIB::ImageSc::m_qVecScaleValues
protected

Scale values.

Definition at line 192 of file imagesc.h.

◆ m_sColorMap

QString DISPLIB::ImageSc::m_sColorMap
protected

The colorbar.

Definition at line 184 of file imagesc.h.

◆ pColorMapper

QRgb(* DISPLIB::ImageSc::pColorMapper) (double, const QString &)
protected

Function pointer to current colormap.

Definition at line 199 of file imagesc.h.


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