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 : HexoticPlugin_Hexotic.hxx
21 // Author : Lioka RAZAFINDRAZAKA (CEA)
24 #ifndef _HexoticPlugin_Hexotic_HXX_
25 #define _HexoticPlugin_Hexotic_HXX_
27 #include "SMESH_3D_Algo.hxx"
28 #include "SMESH_Mesh.hxx"
29 #include "Utils_SALOME_Exception.hxx"
32 class HexoticPlugin_Hypothesis;
34 class HexoticPlugin_Hexotic: public SMESH_3D_Algo
37 HexoticPlugin_Hexotic(int hypId, int studyId, SMESH_Gen* gen);
38 virtual ~HexoticPlugin_Hexotic();
40 virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
41 const TopoDS_Shape& aShape,
42 SMESH_Hypothesis::Hypothesis_Status& aStatus);
44 void SetParameters(const HexoticPlugin_Hypothesis* hyp);
46 virtual bool Compute(SMESH_Mesh& aMesh,
47 const TopoDS_Shape& aShape);
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);
55 const HexoticPlugin_Hypothesis* _hypothesis;
62 bool _hexoticQuadrangles;
63 bool _hexoticIgnoreRidges;
64 bool _hexoticInvalidElements;
65 bool _hexoticFilesKept;
66 int _hexoticSharpAngleThreshold;
67 SMDS_MeshNode** _tabNode;