Salome HOME
rnc : Added some missing french traductions
[modules/geom.git] / src / GEOMGUI / GeometryGUI_Swig.hxx
1 //  Copyright (C) 2007-2010  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.
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 // GEOM GEOMGUI : GUI for Geometry component
24 // File   : GeometryGUI_Swig.hxx
25 // Author : Nicolas REJNERI, Paul RASCLE
26 //
27 #ifndef GEOMETRYGUI_SWIG_HXX
28 #define GEOMETRYGUI_SWIG_HXX
29
30 #include "GEOM_GEOMGUI.hxx"
31
32 // IDL Headers
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(GEOM_Gen)
35 #include CORBA_SERVER_HEADER(SALOMEDS)
36 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
37
38 class GEOMGUI_EXPORT GEOM_Swig
39 {
40 public:
41   GEOM_Swig();
42   ~GEOM_Swig();
43
44   void createAndDisplayGO(const char* Entry, bool isUpdated = true);
45   void eraseGO(const char* Entry, bool allWindows);
46   void createAndDisplayFitAllGO(const char* Entry);
47   void UpdateViewer();
48   void setDisplayMode(const char* Entry, int mode, bool isUpdated = true);
49   void setVectorsMode(const char* Entry, bool isSet, bool isUpdated = true);
50   void setColor(const char* Entry, int red, int green, int blue, bool isUpdated = true);
51   void setTransparency(const char* Entry, float transp, bool isUpdated = true);
52   void setDeflection(const char* Entry, float deflect);
53
54   int  getIndexTopology(const char *SubEntry, const char *Entry);
55   const char* getShapeTypeString(const char *Entry);
56   const char* getShapeTypeIcon(const char *Ior);
57
58   bool initGeomGen();
59 };
60
61 #endif // GEOMETRYGUI_SWIG_HXX