1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D
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.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // BLSURFPlugin : C++ implementation
20 // File : BLSURFPlugin_BLSURF.hxx
21 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
22 // & Aurelien ALLEAUME (DISTENE)
25 //=============================================================================
27 #ifndef _BLSURFPlugin_BLSURF_HXX_
28 #define _BLSURFPlugin_BLSURF_HXX_
30 #include "SMESH_2D_Algo.hxx"
31 #include "SMESH_Mesh.hxx"
32 #include "Utils_SALOME_Exception.hxx"
34 #include "distene/api.h"
37 class BLSURFPlugin_Hypothesis;
39 class BLSURFPlugin_BLSURF: public SMESH_2D_Algo {
41 BLSURFPlugin_BLSURF(int hypId, int studyId, SMESH_Gen* gen);
43 virtual ~BLSURFPlugin_BLSURF();
45 virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
46 const TopoDS_Shape& aShape,
47 SMESH_Hypothesis::Hypothesis_Status& aStatus);
49 void SetParameters(const BLSURFPlugin_Hypothesis* hyp, blsurf_session_t *bls);
51 virtual bool Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape);
53 ostream & SaveTo(ostream & save);
54 istream & LoadFrom(istream & load);
55 friend ostream & operator << (ostream & save, BLSURFPlugin_BLSURF & hyp);
56 friend istream & operator >> (istream & load, BLSURFPlugin_BLSURF & hyp);
59 const BLSURFPlugin_Hypothesis* _hypothesis;
65 // int _geometricMesh;
66 // double _angleMeshS;