Salome HOME
Revert "Synchronize adm files"
[plugins/hexoticplugin.git] / src / HexoticPlugin / HexoticPlugin_Hypothesis_i.hxx
1 // Copyright (C) 2007-2014  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, or (at your option) any later version.
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 // ---
21 // File   : HexoticPlugin_Hypothesis_i.hxx
22 // Author : Lioka RAZAFINDRAZAKA (CEA)
23 // ---
24 //
25 #ifndef _HexoticPlugin_Hypothesis_i_HXX_
26 #define _HexoticPlugin_Hypothesis_i_HXX_
27
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(HexoticPlugin_Algorithm)
30
31 #include "SMESH_Hypothesis_i.hxx"
32 #include "HexoticPlugin_Hypothesis.hxx"
33
34 class SMESH_Gen;
35
36 // HexoticPlugin parameters hypothesis
37
38 class HEXOTICPLUGIN_EXPORT HexoticPlugin_Hypothesis_i:
39   public virtual POA_HexoticPlugin::HexoticPlugin_Hypothesis,
40   public virtual SMESH_Hypothesis_i
41 {
42  public:
43   // Constructor
44   HexoticPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
45                              int                     theStudyId,
46                              ::SMESH_Gen*            theGenImpl);
47   // Destructor
48   virtual ~HexoticPlugin_Hypothesis_i();
49
50   // Methods for setting and getting parameters values
51   void SetHexesMinLevel(CORBA::Long theVal);
52   CORBA::Long GetHexesMinLevel();
53
54   void SetHexesMaxLevel(CORBA::Long theVal);
55   CORBA::Long GetHexesMaxLevel();
56
57   void SetMinSize(CORBA::Double theVal);
58   CORBA::Double GetMinSize();
59
60   void SetMaxSize(CORBA::Double theVal);
61   CORBA::Double GetMaxSize();
62
63   void SetHexoticIgnoreRidges(CORBA::Boolean theVal);
64   CORBA::Boolean GetHexoticIgnoreRidges();
65   
66   void SetHexoticInvalidElements(CORBA::Boolean theVal);
67   CORBA::Boolean GetHexoticInvalidElements();
68   
69   void SetHexoticSharpAngleThreshold(CORBA::Double theVal);
70   CORBA::Double GetHexoticSharpAngleThreshold();
71   
72   void SetHexoticNbProc(CORBA::Long theVal);
73   CORBA::Long GetHexoticNbProc();
74   
75   void SetHexoticWorkingDirectory(const char* path) throw ( SALOME::SALOME_Exception );
76   char* GetHexoticWorkingDirectory();
77
78   void SetHexoticSdMode(CORBA::Long value);
79   CORBA::Long GetHexoticSdMode();
80
81   void SetHexoticVerbosity(CORBA::Long theVal);
82   CORBA::Long GetHexoticVerbosity();
83
84   void SetHexoticMaxMemory(CORBA::Long theVal);
85   CORBA::Long GetHexoticMaxMemory();
86   
87   void SetSizeMapEntry(const char* theEntry, CORBA::Double theSize);
88   void UnsetSizeMapEntry(const char* theEntry);
89   
90   void SetSizeMap(GEOM::GEOM_Object_ptr theGeomObj, double theSize);
91   void UnsetSizeMap(GEOM::GEOM_Object_ptr theGeomObj);
92   HexoticPlugin::HexoticPluginSizeMapsList* GetSizeMaps ();
93
94   // Get implementation
95   ::HexoticPlugin_Hypothesis* GetImpl();
96   
97   // Verify whether hypothesis supports given entity type 
98   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
99 };
100
101 #endif