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

The FrequencySpectrumDelegate class represents a frequency delegate which creates the plot paths. More...

#include <frequencyspectrumdelegate.h>

Public Member Functions

 FrequencySpectrumDelegate (QTableView *m_pTableView, QObject *parent=0)
 
void setScaleType (qint8 ScaleType)
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
void rcvMouseLoc (int row, int x, int y, QRect visRect)
 

Detailed Description

The FrequencySpectrumDelegate class represents a frequency delegate which creates the plot paths.

DECLARE CLASS FrequencySpectrumDelegate

Definition at line 81 of file frequencyspectrumdelegate.h.

Inheritance diagram for DISPLIB::FrequencySpectrumDelegate:
Inheritance graph

Constructor & Destructor Documentation

◆ FrequencySpectrumDelegate()

FrequencySpectrumDelegate::FrequencySpectrumDelegate ( QTableView *  m_pTableView,
QObject *  parent = 0 
)

Creates a new abstract item delegate with the given parent.

Parameters
[in]parentParent of the delegate.

Definition at line 65 of file frequencyspectrumdelegate.cpp.

Member Function Documentation

◆ paint()

void FrequencySpectrumDelegate::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 88 of file frequencyspectrumdelegate.cpp.

◆ rcvMouseLoc()

void FrequencySpectrumDelegate::rcvMouseLoc ( int  row,
int  x,
int  y,
QRect  visRect 
)

Receive Mouse location

Parameters
[in]rowThe select row of tableview.
[in]xmouse x pos.
[in]ymouse y pos.
[in]visRectvisual rect of row_tableview.

Definition at line 194 of file frequencyspectrumdelegate.cpp.

◆ setScaleType()

void FrequencySpectrumDelegate::setScaleType ( qint8  ScaleType)

Set scale type.

Parameters
[in]ScaleType.

Definition at line 81 of file frequencyspectrumdelegate.cpp.

◆ sizeHint()

QSize FrequencySpectrumDelegate::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 172 of file frequencyspectrumdelegate.cpp.


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