1 #ifndef QXRDROICOORDINATESLISTMODEL_H
2 #define QXRDROICOORDINATESLISTMODEL_H
6 #include <QAbstractListModel>
8 #include <QScriptEngine>
29 int rowCount(
const QModelIndex &parent)
const;
32 QVariant
data(
const QModelIndex &index,
int role)
const;
33 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
35 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
37 bool setData(
const QModelIndex &index,
const QVariant &value,
int role);
94 #endif // QXRDROICOORDINATESLISTMODEL_H
void visualizePeak(int n, QcepImageDataBasePtr img, QcepMaskDataPtr mask)
int rowCount(const QModelIndex &parent) const
QSharedPointer< QxrdROICoordinates > QxrdROICoordinatesPtr
QVariant headerData(int section, Qt::Orientation orientation, int role) const
void recalculate(QcepImageDataBasePtr img, QcepMaskDataPtr mask)
Qt::ItemFlags flags(const QModelIndex &index) const
QxrdExperimentWPtr m_Experiment
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
void append(QxrdROICoordinatesPtr coords)
virtual ~QxrdROICoordinatesListModel()
QVariant data(const QModelIndex &index, int role) const
void readSettings(QSettings *settings, QString section)
void writeSettings(QSettings *settings, QString section)
int columnCount(const QModelIndex &parent) const
void visualizeBackground(int n, QcepImageDataBasePtr img, QcepMaskDataPtr mask)
QcepSettingsSaverWPtr m_Saver
void moveROIDown(int row)
QxrdROICoordinatesPtr newROI(int roiType)
QxrdROICoordinatesListModel(QcepSettingsSaverWPtr saver, QxrdExperimentWPtr exp)
static void fromScriptValue(const QScriptValue &obj, QxrdROICoordinatesListModelPtr &coords)
static QScriptValue toScriptValue(QScriptEngine *engine, const QxrdROICoordinatesListModelPtr &coords)
bool setData(const QModelIndex &index, const QVariant &value, int role)
void moveROICenter(int row, double x, double y)
QVector< QxrdROICoordinatesPtr > m_ROICoordinates
QSharedPointer< QcepImageDataBase > QcepImageDataBasePtr
QSharedPointer< QcepMaskData > QcepMaskDataPtr
QSharedPointer< QxrdROICoordinatesListModel > QxrdROICoordinatesListModelPtr
QxrdROICoordinatesPtr roi(int row) const
void setRoi(int row, QxrdROICoordinatesPtr c)
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr