Back to index

salome-geom  6.5.0
GeometryGUI_Swig.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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   : GeometryGUI_Swig.hxx
00025 // Author : Nicolas REJNERI, Paul RASCLE
00026 //
00027 #ifndef GEOMETRYGUI_SWIG_HXX
00028 #define GEOMETRYGUI_SWIG_HXX
00029 
00030 #include "GEOM_GEOMGUI.hxx"
00031 
00032 // IDL Headers
00033 #include <SALOMEconfig.h>
00034 #include CORBA_SERVER_HEADER(GEOM_Gen)
00035 #include CORBA_SERVER_HEADER(SALOMEDS)
00036 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
00037 
00038 class GEOMGUI_EXPORT GEOM_Swig
00039 {
00040 public:
00041   GEOM_Swig();
00042   ~GEOM_Swig();
00043 
00044   void createAndDisplayGO(const char* Entry, bool isUpdated = true);
00045   void eraseGO(const char* Entry, bool allWindows);
00046   void createAndDisplayFitAllGO(const char* Entry);
00047   void UpdateViewer();
00048   void setDisplayMode(const char* Entry, int mode, bool isUpdated = true);
00049   void setVectorsMode(const char* Entry, bool isSet, bool isUpdated = true);
00050   void setColor(const char* Entry, int red, int green, int blue, bool isUpdated = true);
00051   void setTransparency(const char* Entry, float transp, bool isUpdated = true);
00052   void setDeflection(const char* Entry, float deflect);
00053 
00054   int  getIndexTopology(const char *SubEntry, const char *Entry);
00055   const char* getShapeTypeString(const char *Entry);
00056   const char* getShapeTypeIcon(const char *Ior);
00057 
00058   bool initGeomGen();
00059 };
00060 
00061 #endif // GEOMETRYGUI_SWIG_HXX