Salome HOME
Imported using TkCVS
[plugins/ghs3dprlplugin.git] / src / GHS3DPRLPlugin / GHS3DPRLPlugin_GHS3DPRL.hxx
1 //  GHS3DPRLPlugin : 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    : GHS3DPRLPlugin_GHS3DPRL.hxx
23 // Author  : Christian VAN WAMBEKE (CEA) (from Hexotic plugin Lioka RAZAFINDRAZAKA)
24 // Date    : 2007/02/01
25 // Project : SALOME
26 //=============================================================================
27
28 #ifndef _GHS3DPRLPlugin_GHS3DPRL_HXX_
29 #define _GHS3DPRLPlugin_GHS3DPRL_HXX_
30
31 #include "SMESH_3D_Algo.hxx"
32 #include "SMESH_Mesh.hxx"
33 #include "Utils_SALOME_Exception.hxx"
34
35 class SMESH_Mesh;
36 class GHS3DPRLPlugin_Hypothesis;
37
38 class GHS3DPRLPlugin_GHS3DPRL: public SMESH_3D_Algo
39 {
40 public:
41   GHS3DPRLPlugin_GHS3DPRL(int hypId, int studyId, SMESH_Gen* gen);
42   virtual ~GHS3DPRLPlugin_GHS3DPRL();
43
44   virtual bool CheckHypothesis(SMESH_Mesh&                          aMesh,
45                                const TopoDS_Shape&                  aShape,
46                                SMESH_Hypothesis::Hypothesis_Status& aStatus);
47
48   void SetParameters(const GHS3DPRLPlugin_Hypothesis* hyp);
49
50   virtual bool Compute(SMESH_Mesh&         aMesh,
51                        const TopoDS_Shape& aShape);
52
53   ostream & SaveTo(ostream & save);
54   istream & LoadFrom(istream & load);
55   friend ostream & operator << (ostream & save, GHS3DPRLPlugin_GHS3DPRL & hyp);
56   friend istream & operator >> (istream & load, GHS3DPRLPlugin_GHS3DPRL & hyp);
57
58 protected:
59   const GHS3DPRLPlugin_Hypothesis* _hypothesis;
60 private:
61   int   _countSubMesh;
62   int   _countTotal;
63   int   _nodeRefNumber;
64
65   string _MEDName;    //number of partitions
66   int   _NbPart;      //number of partitions
67   bool  _KeepFiles;   //tepal file .noboite binary or not
68 };
69
70 #endif