From: stv Date: Tue, 14 Mar 2006 06:37:23 +0000 (+0000) Subject: no message X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4cf84891809bb289d270c49bd3a27a63175a16df;p=modules%2Fgui.git no message --- diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 216c9ec84..d5e802d7b 100755 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -36,6 +36,8 @@ #include #include +#include + #include #include #include @@ -83,8 +85,8 @@ myBgColor( Qt::black ) daspect->ThirdAxisAspect()->SetColor(Quantity_Color(0.0, 0.0, 1.0, Quantity_TOC_RGB)); } - myAISContext->Display(myTrihedron); - myAISContext->Deactivate(myTrihedron); + myTrihedron->SetSelectionMode( -1 ); + myAISContext->Display( myTrihedron, 0, -1 ); } // selection @@ -458,9 +460,18 @@ void OCCViewer_Viewer::setTrihedronShown( const bool on ) return; if ( on ) - myAISContext->Display( myTrihedron ); + { + myTrihedron->SetToUpdate(); + myAISContext->Display( myTrihedron, 0, -1, false ); + myAISContext->KeepTemporary( myTrihedron ); + } else - myAISContext->Erase( myTrihedron ); + { + myAISContext->Erase( myTrihedron, false, false ); + myAISContext->Remove( myTrihedron ); + myAISContext->SelectionManager()->Remove( myTrihedron ); + } + myAISContext->UpdateCurrentViewer(); } int OCCViewer_Viewer::trihedronSize() const