1 // Copyright (C) 2007-2019 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, or (at your option) any later version.
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
21 // File : HexoticPlugin_Hypothesis_i.hxx
22 // Author : Lioka RAZAFINDRAZAKA (CEA)
25 #ifndef _HexoticPlugin_Hypothesis_i_HXX_
26 #define _HexoticPlugin_Hypothesis_i_HXX_
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(HexoticPlugin_Algorithm)
31 #include "SMESH_Hypothesis_i.hxx"
32 #include "HexoticPlugin_Hypothesis.hxx"
36 // HexoticPlugin parameters hypothesis
38 class HEXOTICPLUGIN_EXPORT HexoticPlugin_Hypothesis_i:
39 public virtual POA_HexoticPlugin::HexoticPlugin_Hypothesis,
40 public virtual SMESH_Hypothesis_i
44 HexoticPlugin_Hypothesis_i (PortableServer::POA_ptr thePOA,
45 ::SMESH_Gen* theGenImpl);
47 virtual ~HexoticPlugin_Hypothesis_i();
49 // Methods for setting and getting parameters values
50 void SetHexesMinLevel(CORBA::Long theVal);
51 CORBA::Long GetHexesMinLevel();
53 void SetHexesMaxLevel(CORBA::Long theVal);
54 CORBA::Long GetHexesMaxLevel();
56 void SetMinSize(CORBA::Double theVal);
57 CORBA::Double GetMinSize();
59 void SetMaxSize(CORBA::Double theVal);
60 CORBA::Double GetMaxSize();
62 void SetHexoticIgnoreRidges(CORBA::Boolean theVal);
63 CORBA::Boolean GetHexoticIgnoreRidges();
65 void SetHexoticInvalidElements(CORBA::Boolean theVal);
66 CORBA::Boolean GetHexoticInvalidElements();
68 void SetHexoticSharpAngleThreshold(CORBA::Double theVal);
69 CORBA::Double GetHexoticSharpAngleThreshold();
71 void SetHexoticNbProc(CORBA::Long theVal);
72 CORBA::Long GetHexoticNbProc();
74 void SetHexoticWorkingDirectory(const char* path) throw ( SALOME::SALOME_Exception );
75 char* GetHexoticWorkingDirectory();
77 void SetHexoticSdMode(CORBA::Long value);
78 CORBA::Long GetHexoticSdMode();
80 void SetHexoticVerbosity(CORBA::Long theVal);
81 CORBA::Long GetHexoticVerbosity();
83 void SetHexoticMaxMemory(CORBA::Long theVal);
84 CORBA::Long GetHexoticMaxMemory();
86 void SetAdvancedOption(const char* theOptions);
87 char* GetAdvancedOption();
88 void SetTextOptions(const char* theOptions); // obsolete
89 char* GetTextOptions();
91 void SetSizeMapEntry(const char* theEntry, CORBA::Double theSize);
92 void UnsetSizeMapEntry(const char* theEntry);
94 void SetSizeMap(GEOM::GEOM_Object_ptr theGeomObj, double theSize);
95 void UnsetSizeMap(GEOM::GEOM_Object_ptr theGeomObj);
96 HexoticPlugin::HexoticPluginSizeMapsList* GetSizeMaps ();
98 void SetNbLayers(CORBA::Long theVal);
99 CORBA::Long GetNbLayers();
101 void SetFirstLayerSize(CORBA::Double theVal);
102 CORBA::Double GetFirstLayerSize();
104 void SetDirection(CORBA::Boolean theVal);
105 CORBA::Boolean GetDirection();
107 void SetGrowth(CORBA::Double theVal);
108 CORBA::Double GetGrowth();
110 void SetFacesWithLayers(const SMESH::long_array& theVal);
111 SMESH::long_array* GetFacesWithLayers();
113 void SetImprintedFaces(const SMESH::long_array& theVal);
114 SMESH::long_array* GetImprintedFaces();
116 // Get implementation
117 ::HexoticPlugin_Hypothesis* GetImpl();
119 // Verify whether hypothesis supports given entity type
120 CORBA::Boolean IsDimSupported( SMESH::Dimension type );
122 // Methods for copying mesh definition to other geometry
124 // Return geometry this hypothesis depends on. Return false if there is no geometry parameter
125 virtual bool getObjectsDependOn( std::vector< std::string > & entryArray,
126 std::vector< int > & subIDArray ) const;
128 // Set new geometry instead of that returned by getObjectsDependOn()
129 virtual bool setObjectsDependOn( std::vector< std::string > & entryArray,
130 std::vector< int > & subIDArray );