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)
23 // Size maps developement: Nicolas GEIMER (OCC) & Gilles DAVID (EURIWARE)
26 #ifndef _BLSURFPlugin_BLSURF_HXX_
27 #define _BLSURFPlugin_BLSURF_HXX_
30 #include "SMESH_2D_Algo.hxx"
31 #include "SMESH_Mesh.hxx"
32 #include <SMESH_Gen_i.hxx>
33 #include <SALOMEconfig.h>
34 #include CORBA_CLIENT_HEADER(SALOMEDS)
35 #include CORBA_CLIENT_HEADER(GEOM_Gen)
36 #include "Utils_SALOME_Exception.hxx"
38 #include "distene/api.h"
41 class BLSURFPlugin_Hypothesis;
44 class BLSURFPlugin_BLSURF: public SMESH_2D_Algo {
46 BLSURFPlugin_BLSURF(int hypId, int studyId, SMESH_Gen* gen);
48 TopoDS_Shape entryToShape(std::string entry);
50 virtual ~BLSURFPlugin_BLSURF();
52 virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
53 const TopoDS_Shape& aShape,
54 SMESH_Hypothesis::Hypothesis_Status& aStatus);
56 void SetParameters(const BLSURFPlugin_Hypothesis* hyp, blsurf_session_t *bls);
58 virtual bool Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape);
60 ostream & SaveTo(ostream & save);
61 istream & LoadFrom(istream & load);
62 friend ostream & operator << (ostream & save, BLSURFPlugin_BLSURF & hyp);
63 friend istream & operator >> (istream & load, BLSURFPlugin_BLSURF & hyp);
66 const BLSURFPlugin_Hypothesis* _hypothesis;
71 SALOMEDS::Study_var myStudy;
72 SMESH_Gen_i* smeshGen_i;