浏览代码

Added a Slicing Box to Wave

Raghav Arora 6 年之前
父节点
当前提交
f81ba2e14d
共有 1 个文件被更改,包括 25 次插入0 次删除
  1. 25 0
      nova/templates/dataset/wave.html

+ 25 - 0
nova/templates/dataset/wave.html

@@ -109,6 +109,7 @@
       vrc = new VRC.VolumeRaycaster(config);
       vrc.setGrayMinValue(minGT / 255);
       vrc.setGrayMaxValue(maxGT / 255);
+      vrc.showZoomBox(false);
     }
 
     function sendContinuousGetToLocationUntilDone(queryUrl) {
@@ -188,6 +189,14 @@
           $("#x-min-input").val(min);
           vrc.setGeometryMaxX(max / 100);
           $("#x-max-input").val(max);
+          vrc.setZoomXMinValue(min/100)
+          vrc.setZoomXMaxValue(max/100)
+        },
+        start: function( event, ui ){
+          vrc.showZoomBox(true);
+        },
+        stop: function( event, ui ){
+          vrc.showZoomBox(false);
         }
       });
 
@@ -204,6 +213,14 @@
           $("#y-min-input").val(min);
           vrc.setGeometryMaxY(max / 100);
           $("#y-max-input").val(max);
+          vrc.setZoomYMinValue(min/100)
+          vrc.setZoomYMaxValue(max/100)
+        },
+        start: function( event, ui ){
+          vrc.showZoomBox(true);
+        },
+        stop: function( event, ui ){
+          vrc.showZoomBox(false);
         }
       });
 
@@ -220,6 +237,14 @@
           $("#z-min-input").val(min);
           vrc.setGeometryMaxZ(max / 100);
           $("#z-max-input").val(max);
+          vrc.setZoomZMinValue(min/100)
+          vrc.setZoomZMaxValue(max/100)
+        },
+        start: function( event, ui ){
+          vrc.showZoomBox(true);
+        },
+        stop: function( event, ui ){
+          vrc.showZoomBox(false);
         }
       });