-
Notifications
You must be signed in to change notification settings - Fork 1
/
ResourceForm.h
executable file
·81 lines (68 loc) · 1.83 KB
/
ResourceForm.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef RESOURCEFORM_H_
#define RESOURCEFORM_H_
#define HAVE_MINC2 1
#include "ui_resourceForm.h"
#include "ui_tagProps.h"
#include "ui_labelProps.h"
#include "TreeModel.h"
#include "BrainQuarter.h"
#include <QFile>
#include <QTextStream>
#include <QtGui>
class GeometryScene;
class ResourceForm : public QWidget {
Q_OBJECT
public:
ResourceForm(QWidget *parent, BrainQuarter *viewer);
virtual ~ResourceForm();
Ui::resourceForm ui;
Ui::tagProps uitag;
Ui::labelProps uilabel;
bool insertGeometry(QFile &filename);
bool insertVertstats(QFile &filename);
bool insertTagfile(QFile &filename);
bool insertLabelLUfile(QFile &filename);
float * addTagpoint();
double returnTagsize();
void setLastGeometry( GeometryScene *geom) { lastGeometry = geom; };
void somethingChanged();
void updatebckgrndColour(QColor &colour);
void setVerboseStatus(bool stat);
bool getVerboseStatus();
void emitVerboseSignal();
bool ifVerbose;
//for labale.config file
QVector <int> labelnums;
QVector <QString> labelnames;
QVector <float> labelred;
QVector <float> labelgreen;
QVector <float> labelblue;
signals:
void verboseSignal();
public slots:
void setPropertyForm(const QModelIndex & index);
void selectedItem(const QModelIndex & index);
void geometrySelected(int childNum);
void enableCreateTag();
void enableSaveTag();
void disableAddTag();
// void enableSaveLabel();
//void updateTagSize(double newsize);//{/* do nothing */};
private:
QWidget *propWidget;
QVBoxLayout *propLayout;
QVBoxLayout *tagLayout;
QWidget *tagWidget;
TreeItem *currentPropItem;
TreeItem *parent;
TreeModel *model;
BrainQuarter *viewer;
bool haveProps;
bool haveGeometry;
GeometryScene *lastGeometry;
void sampleTreeSetup(BrainQuarter *viewer);
QWidget *labelWidget;
QVBoxLayout *labelLayout;
QVector <int> h5childCount;
};
#endif /*RESOURCEFORM_H_*/