]> Creatis software - clitk.git/commitdiff
shortcut to remove overlay
authorbharath <bharath>
Wed, 2 Jun 2010 19:30:42 +0000 (19:30 +0000)
committerbharath <bharath>
Wed, 2 Jun 2010 19:30:42 +0000 (19:30 +0000)
vv/vvSlicerManagerCommand.cxx

index 5d252043bb0603c9f5f0f58419df63b9f0a3ff73..5b1ad270442ecce2dc4267400b5c4991b1775b03 100644 (file)
@@ -188,7 +188,16 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller,
           this->SM->Render();
           return;
         }
-        if (KeyPress == "u") {
+        if (KeyPress == "x") {
+         for(int i=0;i<SM->NumberOfSlicers();i++)
+         {
+          SM->RemoveActor("overlay",0);
+          SM->SetColorMap(0);
+          SM->Render();
+         }
+          return;
+       }
+       if (KeyPress == "u") {
           this->SM->Reload();
           this->SM->Render();
           return;