1 // Copyright (C) 2012-2013 ALNEOS
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.
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.alneos.com/ or email : contact@alneos.fr
19 #ifndef _GMSHPlugin_GMSH_HXX_
20 #define _GMSHPlugin_GMSH_HXX_
22 #include "GMSHPlugin_Defs.hxx"
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"
30 //class GMSHPlugin_Hypothesis;
32 class GMSHPLUGIN_EXPORT GMSHPlugin_GMSH: public SMESH_3D_Algo
35 GMSHPlugin_GMSH(int hypId, int studyId, SMESH_Gen* gen);
36 virtual ~GMSHPlugin_GMSH();
38 virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
39 const TopoDS_Shape& aShape,
40 SMESH_Hypothesis::Hypothesis_Status& aStatus);
42 virtual bool Compute(SMESH_Mesh& aMesh,
43 const TopoDS_Shape& aShape);
45 #ifdef WITH_SMESH_CANCEL_COMPUTE
46 virtual void CancelCompute();
49 virtual bool Evaluate(SMESH_Mesh& aMesh,
50 const TopoDS_Shape& aShape,
51 MapShapeNbElems& aResMap);
54 const SMESHDS_Hypothesis* _hypothesis;