-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataModel.h
More file actions
40 lines (31 loc) · 801 Bytes
/
DataModel.h
File metadata and controls
40 lines (31 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef DATAMODEL_H
#define DATAMODEL_H
#include <QAbstractTableModel>
#include "BioImage.h"
struct DataModelData;
class DataModel: public QAbstractTableModel
{
Q_OBJECT
public:
enum ColRoles {
I = Qt::UserRole + 1,
X,
Y
};
DataModel(QObject *parent = nullptr);
int rowCount(const QModelIndex &parent) const;
int columnCount(const QModelIndex &parent) const;
QVariant data(const QModelIndex &index, int role) const;
QHash<int, QByteArray> roleNames() const;
void setRawData(zeroth::BioImage* imageR, zeroth::BioImage* imageT);
void setBinSize(int val);
int binSize();
int totatlNumberOfBins();
float yMin();
float yMax();
signals:
void modelUpdated();
private:
DataModelData *d;
};
#endif // DATAMODEL_H