MNE-CPP  beta 1.0
Public Member Functions | Public Attributes | List of all members
MNEBrowseRawQt::RawDelegate Class Reference

#include <rawdelegate.h>

Inheritance diagram for MNEBrowseRawQt::RawDelegate:

Public Member Functions

 RawDelegate (QObject *parent=0)
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
void setModelView (EventModel *eventModel, QTableView *eventView, QTableView *rawView)
 
void setScaleMap (const QMap< QString, double > &scaleMap)
 

Public Attributes

QMap< QString, double > m_scaleMap
 
int m_iDefaultPlotHeight
 
bool m_bShowSelectedEventsOnly
 
bool m_bActivateEvents
 
bool m_bRemoveDC
 
double m_dMaxValue
 
double m_dScaleY
 
double m_dDx
 

Detailed Description

DECLARE CLASS RawDelegate

Definition at line 123 of file rawdelegate.h.

Member Function Documentation

void RawDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Reimplemented virtual functions

Definition at line 96 of file rawdelegate.cpp.

void RawDelegate::setModelView ( EventModel eventModel,
QTableView *  eventView,
QTableView *  rawView 
)

setModelView creates the QPointer path for the data plot.

Parameters
[in]modelholds a pointer to the event model. This model needs to be set in order to access the event data for plotting.
[in]eventViewholds a pointer to the event view. This view needs to be set in order to access the selected event data for plotting.
[in]rawViewholds a pointer to the raw view. This view needs to be set in order to access the raw view for manual viewport updating.

Definition at line 202 of file rawdelegate.cpp.

void RawDelegate::setScaleMap ( const QMap< QString, double > &  scaleMap)

setModelView creates the QPointer path for the data plot.

Parameters
[in]scaleMapmap with all channel types and their current scaling value.

Definition at line 212 of file rawdelegate.cpp.

Member Data Documentation

bool MNEBrowseRawQt::RawDelegate::m_bActivateEvents

Flag for plotting events.

Definition at line 160 of file rawdelegate.h.

bool MNEBrowseRawQt::RawDelegate::m_bRemoveDC

Flag for DC removal.

Definition at line 161 of file rawdelegate.h.

bool MNEBrowseRawQt::RawDelegate::m_bShowSelectedEventsOnly

When true all events are plotted otherwise only plot selected event.

Definition at line 159 of file rawdelegate.h.

double MNEBrowseRawQt::RawDelegate::m_dDx

pixel difference to the next sample.

Definition at line 166 of file rawdelegate.h.

double MNEBrowseRawQt::RawDelegate::m_dMaxValue

Maximum value of the data to plot.

Definition at line 164 of file rawdelegate.h.

double MNEBrowseRawQt::RawDelegate::m_dScaleY

Maximum amplitude of plot (max is m_dPlotHeight/2).

Definition at line 165 of file rawdelegate.h.

int MNEBrowseRawQt::RawDelegate::m_iDefaultPlotHeight

The height of the plot.

Definition at line 158 of file rawdelegate.h.

QMap<QString,double> MNEBrowseRawQt::RawDelegate::m_scaleMap

Map with all channel types and their current scaling value.

Definition at line 155 of file rawdelegate.h.


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