X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicerManagerCommand.cxx;h=32ef0593eaa09dbb3ae6cebe2e79de069ac18130;hb=10ec7dc09aeea303fdc6a30449ec69de2f2ccd88;hp=80f6d514ead0428ab80f82d086be67feaff18688;hpb=c5cfabe7589eb606e38b3968c1d67570d7f4659b;p=clitk.git diff --git a/vv/vvSlicerManagerCommand.cxx b/vv/vvSlicerManagerCommand.cxx index 80f6d51..32ef059 100644 --- a/vv/vvSlicerManagerCommand.cxx +++ b/vv/vvSlicerManagerCommand.cxx @@ -107,6 +107,11 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, { FlyToPosition(isi->GetInteractor(),this->SM->GetSlicer(VisibleInWindow)); } + if (KeyPress == "z") + { + this->SM->SetLocalColorWindowing(VisibleInWindow); + return; + } if (KeyPress == "0") { this->SM->SetPreset(0); @@ -177,7 +182,6 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, } if (KeyPress == "minus") { - std::cout << "KeyPress : - " << std::endl; this->SM->SetColorWindow(-this->SM->GetColorWindow()); this->SM->SetColorMap(-1); this->SM->UpdateWindowLevel(); @@ -257,7 +261,6 @@ void vvSlicerManagerCommand::Execute(vtkObject *caller, if (KeyPress == "F1") { - //std::cerr << this << ":" << this->SM->GetId() << "\t" << VisibleInWindow << endl; this->SM->GetSlicer(VisibleInWindow)->GetAnnotation()->SetText(2,"Sagital\n"); this->SM->GetSlicer(VisibleInWindow)->SetSliceOrientation(0); this->SM->UpdateSliceRange(VisibleInWindow);