Salome HOME
[EDF] AsterStudy: fit 3D view to given presentations
[modules/gui.git] / src / SALOME_SWIG / SALOMEGUI_Swig.hxx
1 // Copyright (C) 2007-2016  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( bool );
42
43   int              getActiveStudyId();
44   const char*      getActiveStudyName();
45
46   const char*      getComponentName( const char* );
47   const char*      getComponentUserName( const char* );
48
49   int              SelectedCount();
50   const char*      getSelected( int i );
51   void             AddIObject( const char*  );
52   void             RemoveIObject( const char*  );
53   void             ClearIObjects();
54
55   void             Display( const char* );
56   void             DisplayOnly( const char* );
57   void             Erase( const char* );
58   void             DisplayAll();
59   void             EraseAll();
60   bool             IsInCurrentView( const char* );
61   void             UpdateView();
62
63   void             FitAll();
64   void             FitSelection();
65   void             FitIObjects(const std::list<std::string>&);
66   void             ResetView();
67   void             ViewTop();
68   void             ViewBottom();
69   void             ViewLeft();
70   void             ViewRight();
71   void             ViewFront();
72   void             ViewBack();
73
74   const char* getViewParameters();
75   void setCameraPosition( double x, double y, double z );
76   void setCameraFocalPoint( double x, double y, double z );
77   void setCameraViewUp( double x, double y, double z );
78   void setViewScale( double parallelScale,double x, double y, double z );
79 };
80
81 #endif // SALOMEGUI_SWIG_HXX