Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[plugins/netgenplugin.git] / src / NETGENPlugin / NETGENPlugin_Mesher.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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
20 //
21 //
22 // File      : NETGENPlugin_Mesher.hxx
23 // Author    : Michael Sazonov (OCN)
24 // Date      : 31/03/2006
25 // Project   : SALOME
26 // $Header$
27 //=============================================================================
28
29 #ifndef _NETGENPlugin_Mesher_HXX_
30 #define _NETGENPlugin_Mesher_HXX_
31
32 class SMESHDS_Mesh;
33 class TopoDS_Shape;
34 class NETGENPlugin_Hypothesis;
35
36 /*!
37  * \brief This class calls the NETGEN mesher of OCC geometry
38  */
39
40 class NETGENPlugin_Mesher 
41 {
42  public:
43   // ---------- PUBLIC METHODS ----------
44
45   NETGENPlugin_Mesher (SMESHDS_Mesh* meshDS, const TopoDS_Shape& aShape,
46                        const bool isVolume);
47
48   void SetParameters(const NETGENPlugin_Hypothesis* hyp);
49
50   bool Compute();
51
52  private:
53   SMESHDS_Mesh*        _meshDS;
54   const TopoDS_Shape&  _shape;
55   bool                 _isVolume;
56   bool                 _optimize;
57 };
58
59 #endif