From 255d78831155e30f5fa2dca57a3614bcd229e577 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 31 Jul 2009 10:13:32 +0000 Subject: [PATCH] Correct mistake in integration of 0020082 --- src/DisplayGUI/DisplayGUI.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.39.2