Salome HOME
Correct mistake in integration of 0020082
authordmv <dmv@opencascade.com>
Fri, 31 Jul 2009 10:13:32 +0000 (10:13 +0000)
committerdmv <dmv@opencascade.com>
Fri, 31 Jul 2009 10:13:32 +0000 (10:13 +0000)
src/DisplayGUI/DisplayGUI.cxx

index 3cfa07c76d5159e2156b86ea82819d638fbc2e2e..952007b0ad8c442f71c8e5682867af45eef2d3f3 100644 (file)
@@ -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 <viewWindow> = 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