From: bharath Date: Wed, 2 Jun 2010 19:30:42 +0000 (+0000) Subject: shortcut to remove overlay X-Git-Tag: v1.2.0~623 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a7057e740e0ea78a2a53f9e579ff07058e8b060f;p=clitk.git shortcut to remove overlay --- diff --git a/vv/vvSlicerManagerCommand.cxx b/vv/vvSlicerManagerCommand.cxx index 5d25204..5b1ad27 100644 --- a/vv/vvSlicerManagerCommand.cxx +++ b/vv/vvSlicerManagerCommand.cxx @@ -188,7 +188,16 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, this->SM->Render(); return; } - if (KeyPress == "u") { + if (KeyPress == "x") { + for(int i=0;iNumberOfSlicers();i++) + { + SM->RemoveActor("overlay",0); + SM->SetColorMap(0); + SM->Render(); + } + return; + } + if (KeyPress == "u") { this->SM->Reload(); this->SM->Render(); return;