RtFiffRawViewDelegate
Namespace: DISPLIB · Library: Display Library
#include <disp/rtfiffrawviewdelegate.h>
class DISPLIB::RtFiffRawViewDelegate
QAbstractItemDelegate painting one FIFF channel's signal trace inside RtFiffRawView.
Transforms each visible row of the RtFiffRawViewModel into a polyline drawn inside the cell rectangle, applying the active y-scaling, SSP / compensation operators, trigger overlays and bad-channel greying.
Inheritance
Public Methods
RtFiffRawViewDelegate(parent)
Creates a new abstract item delegate with the given parent.
Parameters:
- parent : *RtFiffRawView ** Parent of the delegate.
initPainterPaths(model)
Initializes painter path variables to fit number of channels in the model/view.
Parameters:
- model : *const QAbstractTableModel ** model.
paint(painter, option, index)
Use the painter and style option to render the item specified by the item index.
(sizeHint() must be implemented also)
Parameters:
-
painter : *QPainter ** Low-level painting on widgets and other paint devices.
-
option : const QStyleOptionViewItem & Describes the parameters used to draw an item in a view widget.
-
index : const QModelIndex & Used to locate data in a data model.
sizeHint(option, index)
Item size.
Parameters:
-
option : const QStyleOptionViewItem & Describes the parameters used to draw an item in a view widget.
-
index : const QModelIndex & Used to locate data in a data model.
Returns:
- QSize — 20 pixels wide by the row height for column 0, the option rectangle size otherwise.
markerMoved(position, activeRow)
markerMoved is called whenever user moves the mouse inside of the table view viewport
Parameters:
-
position : QPoint The current mouse position.
-
activeRow : int The current row which the mouse is moved over.
setSignalColor(signalColor)
Set the signal color.
Parameters:
- signalColor : const QColor & The new signal color.
getSignalColor()
Returns the signal color.
Returns:
- QColor — The current signal color.
setUpperItemIndex(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:
- iUpperItemIndex : int The new upper item index color.
Authors of this file
- Lorenz Esch <lorenz.esch@tu-ilmenau.de>
- Wayne F. Mead <isk@imsorrykun.com>
- Gabriel Motta <gabrielbenmotta@gmail.com>
- Juan GPC <jgarciaprieto@mgh.harvard.edu>
- Christoph Dinh <christoph.dinh@mne-cpp.org>