From: gdd Date: Wed, 15 Feb 2012 14:12:20 +0000 (+0000) Subject: Added method GetHypType() X-Git-Tag: V6_5_0a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=036acaf36a39161aa897ff904ae386fd5553e035;p=plugins%2Fhybridplugin.git Added method GetHypType() --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index 933363c..c14eef8 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -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 diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx index 43cc1f6..0a85c66 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.hxx @@ -112,7 +112,8 @@ public: typedef std::map TIDSortedElemGroupMap; typedef std::map TIDSortedNodeGroupMap; typedef std::set TSetStrings; - + + static const char* GetHypType() { return "GHS3D_Parameters"; } /*! * To mesh "holes" in a solid or not. Default is to mesh. */