00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 00023 // GEOM GEOMGUI : GUI for Geometry component 00024 // File : DisplayGUI.h 00025 // Author : Damien COQUERET, Open CASCADE S.A.S. 00026 // 00027 #ifndef DISPLAYGUI_H 00028 #define DISPLAYGUI_H 00029 00030 #include "GEOMGUI.h" 00031 00032 //================================================================================= 00033 // class : DisplayGUI 00034 // purpose : 00035 //================================================================================= 00036 00037 class SUIT_ViewWindow; 00038 00039 class DisplayGUI : public GEOMGUI 00040 { 00041 public: 00042 DisplayGUI( GeometryGUI* ); 00043 ~DisplayGUI(); 00044 00045 // Dispatch menu command 00046 bool OnGUIEvent( int, SUIT_Desktop* ); 00047 00048 // Display all GEOM objects 00049 void DisplayAll(); 00050 // Erase all GEOM objects 00051 void EraseAll(); 00052 // Display selected GEOM objects 00053 void Display(); 00054 // Display selected GEOM objects and erase other 00055 void DisplayOnly(); 00056 // Erase selected GEOM objects 00057 void Erase(); 00058 00059 // DISPLAY MODE methods : 0 - wireframe, 1 - shading 00060 // Set display mode for the viewer (current viewer if <viewWindow> - 0 ) 00061 void SetDisplayMode( const int, SUIT_ViewWindow* = 0 ); 00062 // Get display mode of the viewer (current viewer if <viewWindow> - 0 ) 00063 int GetDisplayMode( SUIT_ViewWindow* = 0 ); 00064 // Invert display mode ( shadin <-> wireframe ) for the viewer 00065 // (current viewer if <viewWindow> = 0 ) 00066 void InvertDisplayMode( SUIT_ViewWindow* = 0 ); 00067 00068 // VECTOR MODE methods 00069 // Set vectror mode for the viewer 00070 void SetVectorMode( const bool, SUIT_ViewWindow* = 0 ); 00071 // Get vector mode of the viewer 00072 int GetVectorMode( SUIT_ViewWindow* = 0 ); 00073 // Invert vector mode ( shadin <-> wireframe ) for the viewer 00074 00075 // Set display mode for selected objects in the viewer given 00076 // (current viewer if <viewWindow> = 0 ) 00077 void ChangeDisplayMode( const int, SUIT_ViewWindow* = 0 ); 00078 }; 00079 00080 #endif // DISPLAYGUI_H