-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathSimpleMeshTableModel.h
More file actions
27 lines (23 loc) · 888 Bytes
/
SimpleMeshTableModel.h
File metadata and controls
27 lines (23 loc) · 888 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
#ifndef SIMPLEMESHTABLEMODEL_H
#define SIMPLEMESHTABLEMODEL_H
// File modified by Deepak Samuel on 25 Sep 2019
#include <QAbstractTableModel>
#include <SimpleMesh.h>
class SimpleMeshTableModel : public QAbstractTableModel
{
Q_OBJECT
public:
SimpleMeshTableModel();
public:
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
Qt::ItemFlags flags(const QModelIndex &index) const;
bool setData(const QModelIndex &index,const QVariant &value, int role);
void setMesh(SimpleMesh* m){mesh=m; emit layoutChanged();}
G4ThreeVector GetVector(QString s);
private:
SimpleMesh* mesh;
};
#endif // SIMPLEMESHTABLEMODEL_H