From 4f268ee940501b9d48ed1fe1b9724632f987eaff Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 15 Dec 2005 09:45:53 +0000 Subject: [PATCH] Fixed bug GVIEW10888 : sphere cursor interaction : left to move, middle to change size --- src/PIPELINE/VISU_SphereWidget.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/PIPELINE/VISU_SphereWidget.cxx b/src/PIPELINE/VISU_SphereWidget.cxx index e28e985f..45bf56eb 100755 --- a/src/PIPELINE/VISU_SphereWidget.cxx +++ b/src/PIPELINE/VISU_SphereWidget.cxx @@ -305,10 +305,10 @@ void VISU_SphereWidget::ProcessEvents(vtkObject* vtkNotUsed(object), } } //==================================================================== -// function:OnMiddleButtonDown +// function:OnLeftButtonDown // purpose: //==================================================================== -void VISU_SphereWidget::OnMiddleButtonDown() +void VISU_SphereWidget::OnLeftButtonDown() { int X = Interactor->GetEventPosition()[0]; int Y = Interactor->GetEventPosition()[1]; @@ -389,10 +389,10 @@ void VISU_SphereWidget::OnMouseMove() Interactor->Render(); } //==================================================================== -// function:OnMiddleButtonUp +// function:OnLeftButtonUp // purpose: //==================================================================== -void VISU_SphereWidget::OnMiddleButtonUp() +void VISU_SphereWidget::OnLeftButtonUp() { if ( myState == VISU_SphereWidget::Outside ) { return; @@ -408,10 +408,10 @@ void VISU_SphereWidget::OnMiddleButtonUp() Interactor->Render(); } //==================================================================== -// function:OnLeftButtonDown +// function:OnMiddleButtonDown // purpose: //==================================================================== -void VISU_SphereWidget::OnLeftButtonDown() +void VISU_SphereWidget::OnMiddleButtonDown() { myState = VISU_SphereWidget::Scaling; @@ -444,10 +444,10 @@ void VISU_SphereWidget::OnLeftButtonDown() Interactor->Render(); } //==================================================================== -// function:OnLeftButtonUp +// function:OnMiddleButtonUp // purpose: //==================================================================== -void VISU_SphereWidget::OnLeftButtonUp() +void VISU_SphereWidget::OnMiddleButtonUp() { if ( myState == VISU_SphereWidget::Outside ) { return; -- 2.39.2