Back to index

salome-smesh  6.5.0
libSMESH_Swig.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 // SMESH SMESH : GUI for SMESH component
00021 // File   : libSMESH_Swig.h
00022 // Author : Nicolas REJNERI, Open CASCADE S.A.S.
00023 //
00024 #ifndef LIBSMESH_SWIG_H
00025 #define LIBSMESH_SWIG_H
00026 
00027 #ifdef WNT
00028 #if defined SMESH_SWIG_EXPORTS || defined _libSMESH_Swig_EXPORTS
00029   #define SMESH_SWIG_EXPORT __declspec( dllexport )
00030  #else
00031   #define SMESH_SWIG_EXPORT __declspec( dllimport )
00032  #endif
00033 #else
00034  #define SMESH_SWIG_EXPORT
00035 #endif
00036 
00037 // IDL includes
00038 #include <SALOMEconfig.h>
00039 #include CORBA_SERVER_HEADER(SALOMEDS)
00040 
00041 class SMESH_SWIG_EXPORT SMESH_Swig
00042 {
00043 public:
00044   SMESH_Swig();
00045   ~SMESH_Swig();
00046     
00047   void                       Init( int );
00048 
00049   const char*                AddNewMesh( const char* );
00050 
00051   const char*                AddNewHypothesis( const char* );
00052   const char*                AddNewAlgorithms( const char* );
00053 
00054   void                       SetShape( const char*, const char* );
00055 
00056   void                       SetHypothesis( const char*, const char* );
00057   void                       SetAlgorithms( const char*, const char* );
00058 
00059   void                       UnSetHypothesis( const char* );
00060 
00061   const char*                AddSubMesh( const char*, const char*, int );
00062   const char*                AddSubMeshOnShape( const char*, const char*, const char*, int );
00063 
00064   void                       CreateAndDisplayActor( const char* );
00065 
00066   void                       SetName( const char*, const char* );
00067 
00073   void                       SetMeshIcon( const char*, const bool, const bool );
00074 
00075 private:
00076   SALOMEDS::Study_var        myStudy;
00077   SALOMEDS::StudyBuilder_var myStudyBuilder;
00078   SALOMEDS::SComponent_var   mySComponentMesh;
00079 };
00080 
00081 #endif // LIBSMESH_SWIG_H