Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_NETGEN_2D.hxx
1 //  NETGENPlugin : C++ implementation
2 //
3 //  Copyright (C) 2006  OPEN CASCADE, CEA/DEN, EDF R&D
4 // 
5 //  This library is free software; you can redistribute it and/or 
6 //  modify it under the terms of the GNU Lesser General Public 
7 //  License as published by the Free Software Foundation; either 
8 //  version 2.1 of the License. 
9 // 
10 //  This library is distributed in the hope that it will be useful, 
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
13 //  Lesser General Public License for more details. 
14 // 
15 //  You should have received a copy of the GNU Lesser General Public 
16 //  License along with this library; if not, write to the Free Software 
17 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
18 // 
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21 //
22 // File      : NETGENPlugin_NETGEN_2D.hxx
23 // Author    : Michael Sazonov (OCN)
24 // Date      : 20/03/2006
25 // Project   : SALOME
26 // $Header$
27 //=============================================================================
28
29 #ifndef _NETGENPlugin_NETGEN_2D_HXX_
30 #define _NETGENPlugin_NETGEN_2D_HXX_
31
32 #include "SMESH_2D_Algo.hxx"
33 #include "SMESH_Mesh.hxx"
34 #include "StdMeshers_MaxElementVolume.hxx"
35 #include "Utils_SALOME_Exception.hxx"
36
37 class NETGENPlugin_Hypothesis_2D;
38
39 class NETGENPlugin_NETGEN_2D: public SMESH_2D_Algo
40 {
41 public:
42   NETGENPlugin_NETGEN_2D(int hypId, int studyId, SMESH_Gen* gen);
43   virtual ~NETGENPlugin_NETGEN_2D();
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   ostream & SaveTo(ostream & save);
53   istream & LoadFrom(istream & load);
54   friend ostream & operator << (ostream & save, NETGENPlugin_NETGEN_2D & hyp);
55   friend istream & operator >> (istream & load, NETGENPlugin_NETGEN_2D & hyp);
56
57 protected:
58   const NETGENPlugin_Hypothesis_2D* _hypothesis;
59 };
60
61 #endif