-
Notifications
You must be signed in to change notification settings - Fork 0
/
fibervis.h
53 lines (41 loc) · 1.15 KB
/
fibervis.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
#ifndef FIBERVIS_H
#define FIBERVIS_H
#include <QWidget>
#include "ui_fibervis.h"
#include "fiberglwidget.h"
#include <vector>
using namespace std;
class FiberVis : public QWidget
{
Q_OBJECT
public:
FiberVis(QWidget *parent = 0);
~FiberVis();
friend class TractVisualization;
private:
Ui::FiberVisClass ui;
FiberGLWidget * _glWidget;
FiberData * _fiberData;
TensorData * _tensorData;
SeedData * _seedData;
vector<int> _clusterBuf;
int _currentClusterIdx;
QString _currentPath;
void connectSignalSlots();
protected:
void showEvent(QShowEvent *e);
public:
void startFiberTracking (SeedData * seedData, TensorData * tensorData, const TrackingConfig & config);
static FiberVis * openFiberFile (const QString &fileName, int sizeX = 144, int sizeY = 144, int sizeZ = 64);
void loadClusterFile (const QString &fileName);
public slots:
void handlePrevCluster ();
void handleNextCluster ();
void handleAllClusters ();
void handleOpenClusterFile ();
void handleOpenEmbedFile ();
void handleEmbed ();
void handleLoadNormFile ();
void handleAssignLabel();
};
#endif // FIBERVIS_H