36 #ifndef FREQUENCYSPECTRUMDELEGATE_H
37 #define FREQUENCYSPECTRUMDELEGATE_H
43 #include "../../disp_global.h"
49 #include <QAbstractItemDelegate>
101 void setScaleType(qint8 ScaleType);
113 virtual void paint(QPainter *painter,
114 const QStyleOptionViewItem &option,
115 const QModelIndex &index)
const;
124 virtual QSize sizeHint(
const QStyleOptionViewItem &option,
125 const QModelIndex &index)
const;
137 void rcvMouseLoc(
int row,
150 void capturePoint(
const QModelIndex &index,
151 const QStyleOptionViewItem &option,
153 Eigen::RowVectorXd& data,
154 QPainter *painter)
const;
163 void createPlotPath(
const QModelIndex &index,
164 const QStyleOptionViewItem &option,
166 Eigen::RowVectorXd& data)
const;
175 void createGridPath(
const QModelIndex &index,
176 const QStyleOptionViewItem &option,
178 Eigen::RowVectorXd& data)
const;
186 void createGridTick(
const QModelIndex &index,
187 const QStyleOptionViewItem &option,
188 QPainter *painter)
const;
190 QPointer<QTableView> m_tableview;
203 #endif // FREQUENCYSPECTRUMDELEGATE_H