[SALOME platform 0013410]: SubMesh not taken into account with Netgen 1D-2D et 1D-2D-3D

Read a new aglo attribute "support-submeshes":

+      QString suppSub = atts.value("support-submeshes");
+      if ( !suppSub.isEmpty() )
+        isSupportSubmeshes = (suppSub == "true");
+
This commit is contained in:
eap 2008-09-16 08:56:38 +00:00
parent c9179d6bde
commit f9900de370

View File

@ -122,10 +122,13 @@ bool SMESHGUI_XmlHandler::startElement (const QString&, const QString&,
QString aLabel = atts.value("label-id"); QString aLabel = atts.value("label-id");
QString anIcon = atts.value("icon-id"); QString anIcon = atts.value("icon-id");
bool isAux = atts.value("auxiliary") == "true"; bool isAux = atts.value("auxiliary") == "true";
bool isNeedGeom = true; bool isNeedGeom = true, isSupportSubmeshes = false;
QString aNeedGeom = atts.value("need-geom"); QString aNeedGeom = atts.value("need-geom");
if ( !aNeedGeom.isEmpty() ) if ( !aNeedGeom.isEmpty() )
isNeedGeom = (aNeedGeom == "true"); isNeedGeom = (aNeedGeom == "true");
QString suppSub = atts.value("support-submeshes");
if ( !suppSub.isEmpty() )
isSupportSubmeshes = (suppSub == "true");
QString aDimStr = atts.value("dim"); QString aDimStr = atts.value("dim");
aDimStr = aDimStr.remove( ' ' ); aDimStr = aDimStr.remove( ' ' );
@ -155,7 +158,8 @@ bool SMESHGUI_XmlHandler::startElement (const QString&, const QString&,
HypothesisData* aHypData = HypothesisData* aHypData =
new HypothesisData (aHypAlType, myPluginName, myServerLib, myClientLib, new HypothesisData (aHypAlType, myPluginName, myServerLib, myClientLib,
aLabel, anIcon, aDim, isAux, aLabel, anIcon, aDim, isAux,
attr[ HYPOS ], attr[ OPT_HYPOS ], attr[ INPUT ], attr[ OUTPUT ], isNeedGeom ); attr[ HYPOS ], attr[ OPT_HYPOS ], attr[ INPUT ], attr[ OUTPUT ],
isNeedGeom, isSupportSubmeshes );
if (qName == "algorithm") if (qName == "algorithm")
{ {