]> SALOME platform Git repositories - modules/geom.git/blob - src/DisplayGUI/DisplayGUI.h
Salome HOME
*** empty log message ***
[modules/geom.git] / src / DisplayGUI / DisplayGUI.h
1 // GEOM GEOMGUI : GUI for Geometry component
2 //
3 // Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 // This library is free software; you can redistribute it and/or 
7 // modify it under the terms of the GNU Lesser General Public 
8 // License as published by the Free Software Foundation; either 
9 // version 2.1 of the License. 
10 // 
11 // This library is distributed in the hope that it will be useful, 
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 // Lesser General Public License for more details. 
15 // 
16 // You should have received a copy of the GNU Lesser General Public 
17 // License along with this library; if not, write to the Free Software 
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 // File   : DisplayGUI.h
23 // Author : Damien COQUERET, Open CASCADE S.A.S.
24 //
25
26 #ifndef DISPLAYGUI_H
27 #define DISPLAYGUI_H
28
29 #include "GEOMGUI.h"
30
31 #if defined WIN32
32 #  if defined DISPLAYGUI_EXPORTS
33 #    define DISPLAYGUI_EXPORT __declspec( dllexport )
34 #  else
35 #    define DISPLAYGUI_EXPORT __declspec( dllimport )
36 #  endif
37 #else
38 #  define DISPLAYGUI_EXPORT
39 #endif
40
41 //=================================================================================
42 // class    : GEOMBase_Display
43 // purpose  :
44 //=================================================================================
45 //class QAD_ViewFrame;
46 class SUIT_ViewWindow;
47 class DISPLAYGUI_EXPORT DisplayGUI : public GEOMGUI
48 {
49 public:
50   DisplayGUI( GeometryGUI* parent );
51   ~DisplayGUI();
52
53   // Dispatch menu command
54   bool OnGUIEvent(int theCommandID, SUIT_Desktop* parent);
55
56   // Display all GEOM objects
57   void DisplayAll();
58   // Erase all GEOM objects
59   void EraseAll();
60   // Display selected GEOM objects
61   void Display();
62   // Display selected GEOM objects and erase other
63   void DisplayOnly();
64   // Erase selected GEOM objects
65   void Erase();
66
67   // DISPLAY MODE methods : 0 - wireframe, 1 - shading
68   // Set display mode for the viewer (current viewer if <viewWindow> - 0 )
69   void SetDisplayMode( const int mode, SUIT_ViewWindow* viewWindow = 0 );
70   // Get display mode of the viewer (current viewer if <viewWindow> - 0 )
71   int  GetDisplayMode( SUIT_ViewWindow* viewWindow = 0 );
72   // Invert display mode ( shadin <-> wireframe ) for the viewer 
73   // (current viewer if <viewWindow> = 0 )
74   void InvertDisplayMode( SUIT_ViewWindow* viewWindow = 0 );
75
76   // Set display mode for selected objects in the viewer given
77   // (current viewer if <viewWindow> = 0 )
78   void ChangeDisplayMode( const int mode, SUIT_ViewWindow* viewWindo = 0 );
79 };
80
81 #endif // DISPLAYGUI_H