]> SALOME platform Git repositories - plugins/hexoticplugin.git/blob - src/HexoticPlugin/HexoticPlugin_Hexotic.hxx
Salome HOME
Merge from BR_V5_DEV 17Feb09
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPlugin_Hexotic.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 // ---
20 // File   : HexoticPlugin_Hexotic.hxx
21 // Author : Lioka RAZAFINDRAZAKA (CEA)
22 // ---
23 //
24 #ifndef _HexoticPlugin_Hexotic_HXX_
25 #define _HexoticPlugin_Hexotic_HXX_
26
27 #include "SMESH_3D_Algo.hxx"
28 #include "SMESH_Mesh.hxx"
29 #include "Utils_SALOME_Exception.hxx"
30
31 class SMESH_Mesh;
32 class HexoticPlugin_Hypothesis;
33
34 class HexoticPlugin_Hexotic: public SMESH_3D_Algo
35 {
36 public:
37   HexoticPlugin_Hexotic(int hypId, int studyId, SMESH_Gen* gen);
38   virtual ~HexoticPlugin_Hexotic();
39
40   virtual bool CheckHypothesis(SMESH_Mesh&                          aMesh,
41                                const TopoDS_Shape&                  aShape,
42                                SMESH_Hypothesis::Hypothesis_Status& aStatus);
43
44   void SetParameters(const HexoticPlugin_Hypothesis* hyp);
45
46   virtual bool Compute(SMESH_Mesh&         aMesh,
47                        const TopoDS_Shape& aShape);
48
49   std::ostream& SaveTo(std::ostream& save);
50   std::istream& LoadFrom(std::istream& load);
51   friend std::ostream& operator << (std::ostream& save, HexoticPlugin_Hexotic& hyp);
52   friend std::istream& operator >> (std::istream& load, HexoticPlugin_Hexotic& hyp);
53
54 protected:
55   const HexoticPlugin_Hypothesis* _hypothesis;
56
57 private:
58   int  _iShape;
59   int  _nbShape;
60   int  _hexesMinLevel;
61   int  _hexesMaxLevel;
62   bool _hexoticQuadrangles;
63   bool _hexoticIgnoreRidges;
64   bool _hexoticInvalidElements;
65   bool _hexoticFilesKept;
66   int  _hexoticSharpAngleThreshold;
67   SMDS_MeshNode** _tabNode;
68 };
69
70 #endif