]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
Added method GetHypType()
authorgdd <gdd>
Wed, 15 Feb 2012 14:12:20 +0000 (14:12 +0000)
committergdd <gdd>
Wed, 15 Feb 2012 14:12:20 +0000 (14:12 +0000)
src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx

index 933363c5aa7b22f7c2c47d028cd464bf6cbff111..c14eef81713db43693d374186bfd9079a71cae00 100644 (file)
@@ -140,7 +140,7 @@ GHS3DPlugin_GHS3D::GHS3DPlugin_GHS3D(int hypId, int studyId, SMESH_Gen* gen)
   _onlyUnaryInput = false; // Compute() will be called on a compound of solids
   _iShape=0;
   _nbShape=0;
-  _compatibleHypothesis.push_back("GHS3D_Parameters");
+  _compatibleHypothesis.push_back( GHS3DPlugin_Hypothesis::GetHypType());
   _compatibleHypothesis.push_back( StdMeshers_ViscousLayers::GetHypType() );
   _requireShape = false; // can work without shape_studyId
 
index 43cc1f6ba32e25b351036c33083c43cac4ae1de6..0a85c661b389fb1eaa2973f38c2b4fb628a157dc 100644 (file)
@@ -112,7 +112,8 @@ public:
   typedef std::map<const SMDS_MeshElement*, std::string, TIDCompare > TIDSortedElemGroupMap;
   typedef std::map<const SMDS_MeshNode*, std::string, TIDCompare > TIDSortedNodeGroupMap;
   typedef std::set<std::string> TSetStrings;
-  
+
+  static const char* GetHypType() { return "GHS3D_Parameters"; }
   /*!
    * To mesh "holes" in a solid or not. Default is to mesh.
    */