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

The RtFiffRawViewDelegate class represents a RTMSA delegate which creates the plot paths. More...

#include <rtfiffrawviewdelegate.h>

Public Types

typedef QSharedPointer< RtFiffRawViewDelegateSPtr
 
typedef QSharedPointer< const RtFiffRawViewDelegateConstSPtr
 

Public Member Functions

 RtFiffRawViewDelegate (RtFiffRawView *parent=0)
 
void initPainterPaths (const QAbstractTableModel *model)
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
void markerMoved (QPoint position, int activeRow)
 
void setSignalColor (const QColor &signalColor)
 
QColor getSignalColor ()
 
void setUpperItemIndex (int iUpperItemIndex)
 

Detailed Description

The RtFiffRawViewDelegate class represents a RTMSA delegate which creates the plot paths.

DECLARE CLASS RtFiffRawViewDelegate

Definition at line 93 of file rtfiffrawviewdelegate.h.

Inheritance diagram for DISPLIB::RtFiffRawViewDelegate:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for RtFiffRawViewDelegate.

Definition at line 99 of file rtfiffrawviewdelegate.h.

◆ SPtr

Shared pointer type for RtFiffRawViewDelegate.

Definition at line 98 of file rtfiffrawviewdelegate.h.

Constructor & Destructor Documentation

◆ RtFiffRawViewDelegate()

RtFiffRawViewDelegate::RtFiffRawViewDelegate ( RtFiffRawView parent = 0)

Creates a new abstract item delegate with the given parent.

Parameters
[in]parentParent of the delegate.

Definition at line 70 of file rtfiffrawviewdelegate.cpp.

Member Function Documentation

◆ getSignalColor()

QColor RtFiffRawViewDelegate::getSignalColor ( )

Returns the signal color.

Returns
The current signal color.

Definition at line 413 of file rtfiffrawviewdelegate.cpp.

◆ initPainterPaths()

void RtFiffRawViewDelegate::initPainterPaths ( const QAbstractTableModel *  model)

Initializes painter path variables to fit number of channels in the model/view.

Parameters
[in]modelmodel.

Definition at line 83 of file rtfiffrawviewdelegate.cpp.

◆ markerMoved()

void RtFiffRawViewDelegate::markerMoved ( QPoint  position,
int  activeRow 
)

markerMoved is called whenever user moves the mouse inside of the table view viewport

Parameters
[in]positionThe current mouse position.
[in]activeRowThe current row which the mouse is moved over.

Definition at line 396 of file rtfiffrawviewdelegate.cpp.

◆ paint()

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

Use the painter and style option to render the item specified by the item index.

(sizeHint() must be implemented also)

Parameters
[in]painterLow-level painting on widgets and other paint devices.
[in]optionDescribes the parameters used to draw an item in a view widget.
[in]indexUsed to locate data in a data model.

Definition at line 209 of file rtfiffrawviewdelegate.cpp.

◆ setSignalColor()

void RtFiffRawViewDelegate::setSignalColor ( const QColor &  signalColor)

Set the signal color.

Parameters
[in]signalColorThe new signal color.

Definition at line 405 of file rtfiffrawviewdelegate.cpp.

◆ setUpperItemIndex()

void RtFiffRawViewDelegate::setUpperItemIndex ( int  iUpperItemIndex)

Set the new upper item index color. This is used to only plot the background for the upper, visible item in the QTableView. This is a rather ugly hack in order to cope with QOpenGLWidget's/QtableView's problem when setting a background color.

Parameters
[in]iUpperItemThe new upper item index color.

Definition at line 420 of file rtfiffrawviewdelegate.cpp.

◆ sizeHint()

QSize RtFiffRawViewDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Item size

Parameters
[in]optionDescribes the parameters used to draw an item in a view widget.
[in]indexUsed to locate data in a data model.

Definition at line 374 of file rtfiffrawviewdelegate.cpp.


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