]> SALOME platform Git repositories - plugins/gmshplugin.git/blob - src/GMSHPlugin/GMSHPlugin_GMSH.hxx
Salome HOME
depot initial V7_2_0
[plugins/gmshplugin.git] / src / GMSHPlugin / GMSHPlugin_GMSH.hxx
1 // Copyright (C) 2012-2013  ALNEOS
2 //
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.
7 //
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.
12 //
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
16 //
17 // See http://www.alneos.com/ or email : contact@alneos.fr
18 //
19 #ifndef _GMSHPlugin_GMSH_HXX_
20 #define _GMSHPlugin_GMSH_HXX_
21
22 #include "GMSHPlugin_Defs.hxx"
23
24 #include "SMESH_Algo.hxx"
25 #include "SMESH_subMesh.hxx"
26 #include "SMESH_Mesh.hxx"
27 #include "StdMeshers_MaxElementVolume.hxx"
28 #include "Utils_SALOME_Exception.hxx"
29
30 //class GMSHPlugin_Hypothesis;
31
32 class GMSHPLUGIN_EXPORT GMSHPlugin_GMSH: public SMESH_3D_Algo
33 {
34 public:
35   GMSHPlugin_GMSH(int hypId, int studyId, SMESH_Gen* gen);
36   virtual ~GMSHPlugin_GMSH();
37
38   virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
39                                const TopoDS_Shape& aShape,
40                                SMESH_Hypothesis::Hypothesis_Status& aStatus);
41
42   virtual bool Compute(SMESH_Mesh& aMesh,
43                        const TopoDS_Shape& aShape);
44
45 #ifdef WITH_SMESH_CANCEL_COMPUTE
46   virtual void CancelCompute();
47 #endif
48
49   virtual bool Evaluate(SMESH_Mesh& aMesh,
50                         const TopoDS_Shape& aShape,
51                         MapShapeNbElems& aResMap);
52
53 protected:
54   const SMESHDS_Hypothesis* _hypothesis;
55 };
56
57 #endif