From: dmv Date: Fri, 31 Jul 2009 10:13:32 +0000 (+0000) Subject: Correct mistake in integration of 0020082 X-Git-Tag: V5_1_3rc1~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=255d78831155e30f5fa2dca57a3614bcd229e577;p=modules%2Fgeom.git Correct mistake in integration of 0020082 --- diff --git a/src/DisplayGUI/DisplayGUI.cxx b/src/DisplayGUI/DisplayGUI.cxx index 3cfa07c76..952007b0a 100644 --- a/src/DisplayGUI/DisplayGUI.cxx +++ b/src/DisplayGUI/DisplayGUI.cxx @@ -469,6 +469,16 @@ int DisplayGUI::GetVectorMode( SUIT_ViewWindow* viewWindow ) return viewWindow->getCustomData( "VectorsMode" ).toBool(); } +//===================================================================================== +// function : DisplayGUI::InvertDisplayMode() +// purpose : Invert display mode ( shadin <-> wireframe ) for the viewer +// (current viewer if = 0 ) +//===================================================================================== +void DisplayGUI::InvertDisplayMode( SUIT_ViewWindow* viewWindow ) +{ + SetDisplayMode( 1 - GetDisplayMode( viewWindow ) ); +} + //===================================================================================== // function : DisplayGUI::ChangeDisplayMode() // purpose : Set display mode for selected objects in the viewer given