MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The RtFiffRawViewDelegate class represents a RTMSA delegate which creates the plot paths. More...
#include <rtfiffrawviewdelegate.h>
Public Types | |
typedef QSharedPointer< RtFiffRawViewDelegate > | SPtr |
typedef QSharedPointer< const RtFiffRawViewDelegate > | ConstSPtr |
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) |
The RtFiffRawViewDelegate class represents a RTMSA delegate which creates the plot paths.
DECLARE CLASS RtFiffRawViewDelegate
Definition at line 93 of file rtfiffrawviewdelegate.h.
typedef QSharedPointer<const RtFiffRawViewDelegate> DISPLIB::RtFiffRawViewDelegate::ConstSPtr |
Const shared pointer type for RtFiffRawViewDelegate.
Definition at line 99 of file rtfiffrawviewdelegate.h.
typedef QSharedPointer<RtFiffRawViewDelegate> DISPLIB::RtFiffRawViewDelegate::SPtr |
Shared pointer type for RtFiffRawViewDelegate.
Definition at line 98 of file rtfiffrawviewdelegate.h.
RtFiffRawViewDelegate::RtFiffRawViewDelegate | ( | RtFiffRawView * | parent = 0 | ) |
Creates a new abstract item delegate with the given parent.
[in] | parent | Parent of the delegate. |
Definition at line 70 of file rtfiffrawviewdelegate.cpp.
QColor RtFiffRawViewDelegate::getSignalColor | ( | ) |
Returns the signal color.
Definition at line 413 of file rtfiffrawviewdelegate.cpp.
void RtFiffRawViewDelegate::initPainterPaths | ( | const QAbstractTableModel * | model | ) |
Initializes painter path variables to fit number of channels in the model/view.
[in] | model | model. |
Definition at line 83 of file rtfiffrawviewdelegate.cpp.
void RtFiffRawViewDelegate::markerMoved | ( | QPoint | position, |
int | activeRow | ||
) |
markerMoved is called whenever user moves the mouse inside of the table view viewport
[in] | position | The current mouse position. |
[in] | activeRow | The current row which the mouse is moved over. |
Definition at line 396 of file rtfiffrawviewdelegate.cpp.
|
virtual |
Use the painter and style option to render the item specified by the item index.
(sizeHint() must be implemented also)
[in] | painter | Low-level painting on widgets and other paint devices. |
[in] | option | Describes the parameters used to draw an item in a view widget. |
[in] | index | Used to locate data in a data model. |
Definition at line 209 of file rtfiffrawviewdelegate.cpp.
void RtFiffRawViewDelegate::setSignalColor | ( | const QColor & | signalColor | ) |
Set the signal color.
[in] | signalColor | The new signal color. |
Definition at line 405 of file rtfiffrawviewdelegate.cpp.
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.
[in] | iUpperItem | The new upper item index color. |
Definition at line 420 of file rtfiffrawviewdelegate.cpp.
|
virtual |
Item size
[in] | option | Describes the parameters used to draw an item in a view widget. |
[in] | index | Used to locate data in a data model. |
Definition at line 374 of file rtfiffrawviewdelegate.cpp.