Salome HOME
Porting SMESH module to Qt 4
[modules/smesh.git] / src / SMESH_SWIG_WITHIHM / libSMESH_Swig.h
1 // SMESH SMESH : GUI for SMESH component
2 //
3 // Copyright (C) 2003  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 // File   : libSMESH_Swig.h
23 // Author : Nicolas REJNERI, Open CASCADE S.A.S.
24 //
25
26 #ifndef LIBSMESH_SWIG_H
27 #define LIBSMESH_SWIG_H
28
29 #ifdef WNT
30 #if defined SMESHSWIG_EXPORTS
31   #define SMESHSWIG_EXPORT __declspec( dllexport )
32  #else
33   #define SMESHSWIG_EXPORT __declspec( dllimport )
34  #endif
35 #else
36  #define SMESHSWIG_EXPORT
37 #endif
38
39 // IDL includes
40 #include <SALOMEconfig.h>
41 #include CORBA_SERVER_HEADER(SALOMEDS)
42
43 class SMESHSWIG_EXPORT SMESH_Swig
44 {
45 public:
46   SMESH_Swig();
47   ~SMESH_Swig();
48     
49   void                       Init( int );
50
51   const char*                AddNewMesh( const char* );
52
53   const char*                AddNewHypothesis( const char* );
54   const char*                AddNewAlgorithms( const char* );
55
56   void                       SetShape( const char*, const char* );
57
58   void                       SetHypothesis( const char*, const char* );
59   void                       SetAlgorithms( const char*, const char* );
60
61   void                       UnSetHypothesis( const char* );
62
63   const char*                AddSubMesh( const char*, const char*, int );
64   const char*                AddSubMeshOnShape( const char*, const char*, const char*, int );
65
66   void                       CreateAndDisplayActor( const char* );
67
68   void                       SetName( const char*, const char* );
69
70   /*!
71    * \brief Set mesh icon according to compute status
72     * \param Mesh_Entry - entry of a mesh
73     * \param isComputed - is mesh computed or not
74    */
75   void                       SetMeshIcon( const char*, const bool, const bool );
76
77 private:
78   SALOMEDS::Study_var        myStudy;
79   SALOMEDS::StudyBuilder_var myStudyBuilder;
80   SALOMEDS::SComponent_var   mySComponentMesh;
81 };
82
83 #endif // LIBSMESH_SWIG_H