Salome HOME
Update mail address
[modules/smesh.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
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 // Copyright : CEA 2003
27 // $Header$
28 //=============================================================================
29
30 #ifndef _NETGENPlugin_NETGEN_3D_HXX_
31 #define _NETGENPlugin_NETGEN_3D_HXX_
32
33 #include "SMESH_3D_Algo.hxx"
34 #include "SMESH_Mesh.hxx"
35 #include "StdMeshers_MaxElementVolume.hxx"
36 #include "Utils_SALOME_Exception.hxx"
37
38 class NETGENPlugin_NETGEN_3D: public SMESH_3D_Algo
39 {
40 public:
41   NETGENPlugin_NETGEN_3D(int hypId, int studyId, SMESH_Gen* gen);
42   virtual ~NETGENPlugin_NETGEN_3D();
43
44   virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
45                                const TopoDS_Shape& aShape,
46                                SMESH_Hypothesis::Hypothesis_Status& aStatus);
47
48   virtual bool Compute(SMESH_Mesh& aMesh,
49                        const TopoDS_Shape& aShape);
50
51   ostream & SaveTo(ostream & save);
52   istream & LoadFrom(istream & load);
53   friend ostream & operator << (ostream & save, NETGENPlugin_NETGEN_3D & hyp);
54   friend istream & operator >> (istream & load, NETGENPlugin_NETGEN_3D & hyp);
55
56 protected:
57   double _maxElementVolume;
58
59   const StdMeshers_MaxElementVolume* _hypMaxElementVolume;
60 };
61
62 #endif