1 // Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // SMESH SMESH : GUI for SMESH component
21 // File : libSMESH_Swig.h
22 // Author : Nicolas REJNERI, Open CASCADE S.A.S.
24 #ifndef LIBSMESH_SWIG_H
25 #define LIBSMESH_SWIG_H
28 #if defined SMESH_SWIG_EXPORTS || defined _libSMESH_Swig_EXPORTS
29 #define SMESH_SWIG_EXPORT __declspec( dllexport )
31 #define SMESH_SWIG_EXPORT __declspec( dllimport )
34 #define SMESH_SWIG_EXPORT
38 #include <SALOMEconfig.h>
39 #include CORBA_SERVER_HEADER(SALOMEDS)
44 #include <SVTK_Selection.h>
46 #include <SVTK_Selection.h>
52 EdgeOfCell = EdgeOfCellSelection,
55 Volume = VolumeSelection,
56 Actor = ActorSelection,
57 Elem0D = Elem0DSelection,
61 class SMESH_SWIG_EXPORT SMESH_Swig
69 const char* AddNewMesh( const char* );
71 const char* AddNewHypothesis( const char* );
72 const char* AddNewAlgorithms( const char* );
74 void SetShape( const char*, const char* );
76 void SetHypothesis( const char*, const char* );
77 void SetAlgorithms( const char*, const char* );
79 void UnSetHypothesis( const char* );
81 const char* AddSubMesh( const char*, const char*, int );
82 const char* AddSubMeshOnShape( const char*, const char*, const char*, int );
84 void CreateAndDisplayActor( const char* );
86 void SetName( const char*, const char* );
88 void EraseActor( const char*, const bool allViewers = false );
91 * \brief Set mesh icon according to compute status
92 * \param Mesh_Entry - entry of a mesh
93 * \param isComputed - is mesh computed or not
95 void SetMeshIcon( const char*, const bool, const bool );
97 // --------------------- for the test purposes -----------------------
98 int getSelectionMode();
99 void select( const char *id, std::vector<int> ids, bool append = false );
100 void select( const char *id, int id1, bool append = false );
103 SALOMEDS::Study_var myStudy;
104 SALOMEDS::StudyBuilder_var myStudyBuilder;
105 SALOMEDS::SComponent_var mySComponentMesh;
108 #endif // LIBSMESH_SWIG_H