Authors belong to:
- University of LYON http://www.universite-lyon.fr/
- - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
+ - Léon Bérard cancer center http://www.centreleonberard.fr
- CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
This software is distributed WITHOUT ANY WARRANTY; without even
- BSD See included LICENSE.txt file
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
#include "vvInteractorStyleNavigator.h"
#include "vtkAbstractPropPicker.h"
#include <vtkRendererCollection.h>
#include "clitkCommon.h"
-
-vtkCxxRevisionMacro(vvInteractorStyleNavigator, "DummyRevision");
vtkStandardNewMacro(vvInteractorStyleNavigator);
//----------------------------------------------------------------------------
// Redefine this button to handle pick
this->GrabFocus(this->EventCallbackCommand);
- if (!this->Interactor->GetShiftKey() && !this->Interactor->GetControlKey()) {
+ if (this->Interactor->GetShiftKey()) {
+ this->OnMiddleButtonDown();
+ }
+ else if (!this->Interactor->GetControlKey()) {
this->StartPick();
}
this->ReleaseFocus();
}
break;
+ case VTKIS_PAN:
+ this->OnMiddleButtonUp();
+ break;
}
// Call parent to handle all other states and perform additional work
//Do nothing, this is handled in vvSlicerManagerCommand
break;
default:
- this->Superclass::OnChar();
+ //SR: we don't use the default vtk keys => removed to avoid conflicts
+ //this->Superclass::OnChar();
break;
}
}
this->CurrentRenderer->UpdateLightsGeometryToFollowCamera();
}
- rwi->Render();
+ this->InvokeEvent(vtkCommand::EndInteractionEvent, this);
+
+// rwi->Render();
}
//----------------------------------------------------------------------------
}
this->CurrentRenderer->ResetCameraClippingRange();
//this->Interactor->Render();
+
+ this->InvokeEvent(vtkCommand::EndInteractionEvent, this);
}