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
20 // File : BLSURFPlugin_BLSURF.hxx
21 // Authors : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
22 // & Aurelien ALLEAUME (DISTENE)
25 #ifndef _BLSURFPlugin_BLSURF_HXX_
26 #define _BLSURFPlugin_BLSURF_HXX_
28 #include "SMESH_2D_Algo.hxx"
29 #include "SMESH_Mesh.hxx"
30 #include "Utils_SALOME_Exception.hxx"
32 #include "distene/api.h"
35 class BLSURFPlugin_Hypothesis;
37 class BLSURFPlugin_BLSURF: public SMESH_2D_Algo {
39 BLSURFPlugin_BLSURF(int hypId, int studyId, SMESH_Gen* gen);
41 virtual ~BLSURFPlugin_BLSURF();
43 virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
44 const TopoDS_Shape& aShape,
45 SMESH_Hypothesis::Hypothesis_Status& aStatus);
47 void SetParameters(const BLSURFPlugin_Hypothesis* hyp, blsurf_session_t *bls);
49 virtual bool Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape);
51 ostream & SaveTo(ostream & save);
52 istream & LoadFrom(istream & load);
53 friend ostream & operator << (ostream & save, BLSURFPlugin_BLSURF & hyp);
54 friend istream & operator >> (istream & load, BLSURFPlugin_BLSURF & hyp);
57 const BLSURFPlugin_Hypothesis* _hypothesis;