From: ouv Date: Thu, 15 Dec 2005 09:45:53 +0000 (+0000) Subject: Fixed bug GVIEW10888 : sphere cursor interaction : left to move, middle to change... X-Git-Tag: TG-D5-38-2003_D2005-20-12~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f268ee940501b9d48ed1fe1b9724632f987eaff;p=modules%2Fvisu.git Fixed bug GVIEW10888 : sphere cursor interaction : left to move, middle to change size --- 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;