Salome HOME
Update copyright information
[plugins/blsurfplugin.git] / src / BLSURFPlugin / BLSURFPlugin_BLSURF.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D
2 //
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.
7 //
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.
12 //
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
16 //
17 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 //  BLSURFPlugin : C++ implementation
20 // File      : BLSURFPlugin_BLSURF.hxx
21 // Authors   : Francis KLOSS (OCC) & Patrick LAUG (INRIA) & Lioka RAZAFINDRAZAKA (CEA)
22 //             & Aurelien ALLEAUME (DISTENE)
23 // Date      : 20/03/2006
24 // Project   : SALOME
25 //=============================================================================
26 //
27 #ifndef _BLSURFPlugin_BLSURF_HXX_
28 #define _BLSURFPlugin_BLSURF_HXX_
29
30 #include "SMESH_2D_Algo.hxx"
31 #include "SMESH_Mesh.hxx"
32 #include "Utils_SALOME_Exception.hxx"
33 extern "C"{
34 #include "distene/api.h"
35 }
36
37 class BLSURFPlugin_Hypothesis;
38
39 class BLSURFPlugin_BLSURF: public SMESH_2D_Algo {
40   public:
41     BLSURFPlugin_BLSURF(int hypId, int studyId, SMESH_Gen* gen);
42
43     virtual ~BLSURFPlugin_BLSURF();
44
45     virtual bool CheckHypothesis(SMESH_Mesh&                          aMesh,
46                                  const TopoDS_Shape&                  aShape,
47                                  SMESH_Hypothesis::Hypothesis_Status& aStatus);
48
49     void SetParameters(const BLSURFPlugin_Hypothesis* hyp, blsurf_session_t *bls);
50
51     virtual bool Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape);
52
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);
57
58   protected:
59     const BLSURFPlugin_Hypothesis* _hypothesis;
60
61 //   private:
62 //     int    _topology;
63 //     int    _physicalMesh;
64 //     double _phySize;
65 //     int    _geometricMesh;
66 //     double _angleMeshS;
67 //     double _gradation;
68 //     bool   _quadAllowed;
69 //     bool   _decimesh;
70 };
71
72 #endif