Salome HOME
1824689fea3c0091c94d90165b54652a48fce90a
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_NETGEN_3D.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS, L3S, LJLL, MENSI
3 //
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
8 //
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 //=============================================================================
21 // File      : NETGENPlugin_NETGEN_3D.hxx
22 //             Moved here from SMESH_NETGEN_3D.hxx
23 // Created   : lundi 27 Janvier 2003
24 // Author    : Nadir BOUHAMOU (CEA)
25 // Project   : SALOME
26 // $Header$
27 //=============================================================================
28
29 #ifndef _NETGENPlugin_NETGEN_3D_HXX_
30 #define _NETGENPlugin_NETGEN_3D_HXX_
31
32 #include "NETGENPlugin_Defs.hxx"
33
34 #include "SMESH_3D_Algo.hxx"
35 #include "SMESH_Mesh.hxx"
36 #include "StdMeshers_MaxElementVolume.hxx"
37 #include "Utils_SALOME_Exception.hxx"
38
39 class NETGENPLUGIN_EXPORT NETGENPlugin_NETGEN_3D: public SMESH_3D_Algo
40 {
41 public:
42   NETGENPlugin_NETGEN_3D(int hypId, int studyId, SMESH_Gen* gen);
43   virtual ~NETGENPlugin_NETGEN_3D();
44
45   virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
46                                const TopoDS_Shape& aShape,
47                                SMESH_Hypothesis::Hypothesis_Status& aStatus);
48
49   virtual bool Compute(SMESH_Mesh& aMesh,
50                        const TopoDS_Shape& aShape);
51
52   virtual bool Compute(SMESH_Mesh& aMesh,
53                        SMESH_MesherHelper* aHelper);
54   
55 protected:
56   double _maxElementVolume;
57
58   const StdMeshers_MaxElementVolume* _hypMaxElementVolume;
59 };
60
61 #endif