forked from fuag15/volumetric_visualization_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vectorWindow.cpp
executable file
·90 lines (83 loc) · 2.49 KB
/
vectorWindow.cpp
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
82
83
84
85
86
87
88
89
90
#include "vectorWindow.h"
vectorWindow::vectorWindow(QWidget * parent):QWidget(parent)
{
lgroup = new LicSliderGroup(this);
ggroup = new GlyphSliderGroup(this);
QScrollArea* sarea = new QScrollArea();
sarea->setWidgetResizable(true);
sarea-> setWidget(lgroup);
QScrollArea* sarea2 = new QScrollArea();
sarea2->setWidgetResizable(true);
sarea2-> setWidget(ggroup);
QVBoxLayout* layout = new QVBoxLayout();
QPushButton* button = new QPushButton("Add New Lic Slice");
QPushButton* button2 = new QPushButton("Add New Glyph Slice");
// QPushButton* buttonst = new QPushButton("Disable Slices");
// QPushButton* buttonit = new QPushButton("Disable IsoSurfaces");
// QPushButton* buttonvt = new QPushButton("Disable VolSurfaces");
// QPushButton* buttoncv = new QPushButton("Enable view cutAway");
// buttonvt -> setCheckable(1);
// buttonst -> setCheckable(1);
// buttonit -> setCheckable(1);
// buttoncv -> setCheckable(1);
connect(button, SIGNAL(clicked()), lgroup, SLOT(addSliceNode()));
connect(button2, SIGNAL(clicked()), ggroup, SLOT(addSliceNode()));
// connect(buttons, SIGNAL(clicked()), this, SLOT(sendReloadOut()));
// connect(buttonst, SIGNAL(clicked()), this, SLOT(sendSlicesOut()));
// connect(buttonit, SIGNAL(clicked()), this, SLOT(sendIsosOut()));
// connect(buttonvt, SIGNAL(clicked()), this, SLOT(sendVolsOut()));
// connect(buttoncv, SIGNAL(clicked()), this, SLOT(sendCutOut()));
/*
layout -> addWidget(buttons);
layout -> addWidget(buttonst);
layout -> addWidget(buttonit);
layout -> addWidget(buttonvt);
layout -> addWidget(buttoncv);*/
layout -> addWidget(sarea);
layout -> addWidget(button);
layout -> addWidget(sarea2);
layout -> addWidget(button2);
setLayout(layout);
return;
}
// QSlider* SlicesControllerWidget::getDetailSlider()
// {
// return sgroup -> getDetail();
// }
//
// QSlider* SlicesControllerWidget::getAlphaSlider()
// {
// return sgroup -> getAlpha();
// }
// void SlicesControllerWidget::sendCutOut()
// {
// emit(toggleCut());
// }
//
// void SlicesControllerWidget::sendSlicesOut()
// {
// emit(toggleSlices());
// }
// void SlicesControllerWidget::sendIsosOut()
// {
// emit(toggleIsos());
// }
// void SlicesControllerWidget::sendVolsOut()
// {
// emit(toggleVols());
// }
//
// void SlicesControllerWidget::sendReloadOut()
// {
// emit(reloadFrag());
// }
void vectorWindow::setGlyphSliceMap(ColorMap* smap)
{
ggroup->setSlicesMapList(smap);
return;
}
void vectorWindow::setLicSliceMap(ColorMap* smap)
{
lgroup->setSlicesMapList(smap);
return;
}