Browse Source

Added a Slicing Box to Wave

Raghav Arora 6 years ago
parent
commit
664efbbd4b
1 changed files with 25 additions and 0 deletions
  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);
         }
       });