Browse Source

Added a Slicing Box to Wave

Raghav Arora 6 years ago
parent
commit
1ff8719534
1 changed files with 25 additions and 0 deletions
  1. 25 0
      nova/templates/dataset/wave.html

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

@@ -107,6 +107,7 @@
             $vrc = new VRC.VolumeRaycaster($config);
             $vrc.setGrayMinValue($minGT/255);
             $vrc.setGrayMaxValue($maxGT/255);
+            $vrc.showZoomBox(false);
         }
         function sendContinuousGetToLocationUntilDone($loc) {
             $.ajax($loc, {
@@ -177,6 +178,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);
                 }
             });
             $("#slider-Y").dragslider ({
@@ -192,6 +201,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);
                 }
             });
             $("#slider-Z").dragslider ({
@@ -207,6 +224,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);
                 }
             });
             $("#gray-threshold-min-input").val($minGT);