Salome HOME
updated copyright message
[modules/gui.git] / src / SALOME_SWIG / SALOMEGUI_Swig.hxx
1 // Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  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, or (at your option) any later version.
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
23 //  SALOME SALOMEGUI : implementation of desktop and GUI kernel
24 // File   : SALOMEGUI_Swig.hxx
25 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
26 //
27 #ifndef SALOMEGUI_SWIG_HXX
28 #define SALOMEGUI_SWIG_HXX
29
30 #include <string>
31 #include <list>
32
33 class SALOMEGUI_Swig
34 {
35 public:
36   SALOMEGUI_Swig();
37   ~SALOMEGUI_Swig();
38
39   bool             hasDesktop();
40
41   void             updateObjBrowser();
42
43   const char*      getActiveStudyName();
44
45   const char*      getComponentName( const char* );
46   const char*      getComponentUserName( const char* );
47
48   int              SelectedCount();
49   const char*      getSelected( int i );
50   void             AddIObject( const char*  );
51   void             RemoveIObject( const char*  );
52   void             ClearIObjects();
53
54   void             Display( const char* );
55   void             DisplayOnly( const char* );
56   void             Erase( const char* );
57   void             DisplayAll();
58   void             EraseAll();
59   bool             IsInCurrentView( const char* );
60   void             UpdateView();
61
62   void             FitAll();
63   void             FitSelection();
64   void             FitIObjects(const std::list<std::string>&);
65   void             ResetView();
66   void             ViewTop();
67   void             ViewBottom();
68   void             ViewLeft();
69   void             ViewRight();
70   void             ViewFront();
71   void             ViewBack();
72
73   const char* getViewParameters();
74   void setCameraPosition( double x, double y, double z );
75   void setCameraFocalPoint( double x, double y, double z );
76   void setCameraViewUp( double x, double y, double z );
77   void setViewScale( double parallelScale,double x, double y, double z );
78 };
79
80 #endif // SALOMEGUI_SWIG_HXX