std::cout<<"Process ----"<<std::endl;
+
+ //jsCom = "\
+ var volume = new X.volume();\
+ volume.spacing = [0.7,0.7,0.7 ];\
+ volume.file = '" + bbGetInputImagePath() + "';\
+ " +w->jsRef() + ".mVolume = volume;\
+ setTimeout(function(){\
+ var center = [0,0,0\
+ ];\
+ " +w->jsRef() + ".mVolume.center = center;\
+ volume.center = [0,0,0];\
+ " + wtWindow1->jsRef() + ".mRenderer.add(" + w->jsRef() + ".mVolume);\
+ " + wtWindow1->jsRef() + ".mRenderer.onShowTime = function(){\
+ " + w->jsRef() +".mVolume.upperThreshold =20000;\
+ " + w->jsRef() +".mVolume.windowHigh =1670;\
+ var gui = new dat.GUI();\
+ var volumegui = gui.addFolder('Volume');\
+ var vrController = volumegui.add(" + w->jsRef() +".mVolume, 'volumeRendering');\
+ var opacityController = volumegui.add(" + w->jsRef() +".mVolume, 'opacity', 0, 1);\
+ var lowerWindowController = volumegui.add(" + w->jsRef() +".mVolume, 'windowLow', 0,2000);\
+ var upperWindowController = volumegui.add(" + w->jsRef() +".mVolume, 'windowHigh', 0,2000);\
+ var sliceXController = volumegui.add(" + w->jsRef() +".mVolume, 'indexX', 0,volume.range[0] - 1);\
+ var sliceYController = volumegui.add(" + w->jsRef() +".mVolume, 'indexY', 0,volume.range[1] - 1);\
+ var sliceZController = volumegui.add(" + w->jsRef() +".mVolume, 'indexZ', 0,volume.range[2] - 1);\
+ " + wtWindow2->jsRef() + ".mRenderer.add(" +w->jsRef() + ".mVolume);\
+ " + wtWindow2->jsRef() + ".mRenderer.render();\
+ " + wtWindow3->jsRef() + ".mRenderer.add(" +w->jsRef() + ".mVolume);\
+ " + wtWindow3->jsRef() + ".mRenderer.render();\
+ " + wtWindow4->jsRef() + ".mRenderer.add(" +w->jsRef() + ".mVolume);\
+ " + wtWindow4->jsRef() + ".mRenderer.render();\
+ };\
+ " + wtWindow1->jsRef() + ".mRenderer.render();\
+ },500";
+
jsCom = "\
var volume = new X.volume();\
volume.spacing = [0.7,0.7,0.7 ];\
" + wtWindow4->jsRef() + ".mRenderer.render();\
},1500);";
- //jsCom = "\
+ // jsCom = "\
var volume = new X.volume();\
volume.spacing = [0.7,0.7,0.7 ];\
volume.file = '" + bbGetInputImagePath() + "';\
l->addWidget(wtWindow1);
l->addWidget(wtWindow2);
-
+ l->setResizable(0,true,400);
w->setLayout(l);
wtWindow1->configureWt();
l->addWidget(wtWindow2);
l->addWidget(wtWindow3);
+ l->setResizable(0,true,400);
aux1->setLayout(l);
l2->addWidget(wtWindow1);
l2->addWidget(aux1);
-
+ l2->setResizable(0,true,400);
w->setLayout(l2);
wtWindow1->configureWt();
l->addWidget(wtWindow2,0,1);
l->addWidget(wtWindow3,0,2);
l->addWidget(wtWindow4,0,3);
+ l->setColumnResizable(0,true,400);
+ l->setColumnResizable(1,true,400);
+ l->setColumnResizable(2,true,400);
aux1->setLayout(l);
l2->addWidget(wtWindow1);
l2->addWidget(aux1);
-
+ l2->setResizable(0,true,400);
w->setLayout(l2);