MNE-CPP  beta 1.0
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>

Inheritance diagram for DISPLIB::ImageSc:
DISPLIB::Graph

Public Types

typedef QSharedPointer< ImageScSPtr
 
typedef QSharedPointer< const ImageScConstSPtr
 

Public Member Functions

 ImageSc (QWidget *parent=0)
 
 ImageSc (MatrixXd &p_dMat, QWidget *parent=0)
 
 ImageSc (MatrixXf &p_fMat, QWidget *parent=0)
 
 ImageSc (MatrixXi &p_iMat, QWidget *parent=0)
 
 ~ImageSc ()
 
void init ()
 
void updateData (MatrixXd &p_dMat)
 
void updateData (MatrixXf &p_fMat)
 
void updateData (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 *)
 
- Protected Member Functions inherited from DISPLIB::Graph
void resizeEvent (QResizeEvent *)
 
void drawLabels (qint32 p_iContentWidth, qint32 p_iContentHeight)
 

Protected Attributes

QPixmap * m_pPixmapData
 
QPixmap * m_pPixmapColorbar
 
MatrixXd m_matCentNormData
 
double m_dMinValue
 
double m_dMaxValue
 
QRgb(* pColorMapper )(double)
 
bool m_bColorbar
 
QVector< double > m_qVecScaleValues
 
qint32 m_iColorbarWidth
 
qint32 m_iColorbarSteps
 
qint32 m_iColorbarGradSteps
 
QFont m_qFontColorbar
 
QPen m_qPenColorbar
 
- 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 96 of file imagesc.h.

Member Typedef Documentation

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

Const shared pointer type for MatrixView class.

Definition at line 101 of file imagesc.h.

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

Shared pointer type for MatrixView class.

Definition at line 100 of file imagesc.h.

Constructor & Destructor Documentation

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

Creates the scaled image view.

Parameters
[in]parentParent QObject (optional)

Definition at line 67 of file imagesc.cpp.

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

Definition at line 78 of file imagesc.cpp.

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

Definition at line 90 of file imagesc.cpp.

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

Definition at line 102 of file imagesc.cpp.

ImageSc::~ImageSc ( )

Destructs the ImageSc object

Definition at line 114 of file imagesc.cpp.

Member Function Documentation

void ImageSc::init ( )

Initializes the ImageSc object

Definition at line 125 of file imagesc.cpp.

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 258 of file imagesc.cpp.

void ImageSc::updateData ( MatrixXd &  p_dMat)

Updates the scaled image view with a given double matrix.

Parameters
[in]p_dMatThe double data matrix

Definition at line 146 of file imagesc.cpp.

void ImageSc::updateData ( MatrixXf &  p_fMat)

Updates the scaled image view with a given float matrix.

Parameters
[in]p_fMatThe float data matrix

Definition at line 167 of file imagesc.cpp.

void ImageSc::updateData ( MatrixXi &  p_iMat)

Updates the scaled image view with a given integer matrix.

Parameters
[in]p_dMatThe integer data matrix

Definition at line 176 of file imagesc.cpp.

void ImageSc::updateMaps ( )
protected

Updates data and colorbar pixmap

Definition at line 185 of file imagesc.cpp.

Member Data Documentation

bool DISPLIB::ImageSc::m_bColorbar
protected

If colorbar is visible

Definition at line 199 of file imagesc.h.

double DISPLIB::ImageSc::m_dMaxValue
protected

Maximal data value

Definition at line 195 of file imagesc.h.

double DISPLIB::ImageSc::m_dMinValue
protected

Minimal data value

Definition at line 194 of file imagesc.h.

qint32 DISPLIB::ImageSc::m_iColorbarGradSteps
protected

Gradient steps of the colorbar

Definition at line 203 of file imagesc.h.

qint32 DISPLIB::ImageSc::m_iColorbarSteps
protected

Number of colorbar vaues to display

Definition at line 202 of file imagesc.h.

qint32 DISPLIB::ImageSc::m_iColorbarWidth
protected

Colorbar width

Definition at line 201 of file imagesc.h.

MatrixXd DISPLIB::ImageSc::m_matCentNormData
protected

centralized and normalized data

Definition at line 192 of file imagesc.h.

QPixmap* DISPLIB::ImageSc::m_pPixmapColorbar
protected

colorbar pixmap

Definition at line 190 of file imagesc.h.

QPixmap* DISPLIB::ImageSc::m_pPixmapData
protected

data pixmap

Definition at line 189 of file imagesc.h.

QFont DISPLIB::ImageSc::m_qFontColorbar
protected

Colorbar font

Definition at line 204 of file imagesc.h.

QPen DISPLIB::ImageSc::m_qPenColorbar
protected

Colorbar pen

Definition at line 205 of file imagesc.h.

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

Scale values

Definition at line 200 of file imagesc.h.

QRgb(* DISPLIB::ImageSc::pColorMapper) (double)
protected

Function pointer to current colormap

Definition at line 197 of file imagesc.h.


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