+ else if (qName == "hypotheses-set-group") // group of sets of hypotheses
+ {
+ }
+ else if (qName == "hypotheses-set") // a set of hypotheses
+ {
+ if (atts.value("name") != "")
+ {
+ bool useCommonSize = ( atts.value("use-common-size") == "true" );
+ bool isQuadDominated = ( atts.value("quad-dominated") == "true" );
+ QString hypos = atts.value("hypos");
+ QString algos = atts.value("algos");
+ QString altHypos = atts.value("alt-hypos");
+ QString altAlgos = atts.value("alt-algos");
+ QString intHypos = atts.value("intern-edge-hypos");
+ QString intAlgos = atts.value("intern-edge-algos");
+ bool badSet = hypos.contains( BAD_HYP_FLAG ) || algos.contains( BAD_HYP_FLAG );
+
+ if ( !badSet )
+ myListOfHypothesesSets.append
+ ( new HypothesesSet ( atts.value("name"),
+ useCommonSize, isQuadDominated,
+ hypos.split ( ',', QString::SkipEmptyParts ),
+ algos.split ( ',', QString::SkipEmptyParts ),
+ altHypos.split( ',', QString::SkipEmptyParts ),
+ altAlgos.split( ',', QString::SkipEmptyParts ),
+ intHypos.split( ',', QString::SkipEmptyParts ),
+ intAlgos.split( ',', QString::SkipEmptyParts )));
+ }
+ }
+ else if ( qName == "python-wrap" ||
+ qName == "algo" ||
+ qName == "hypo" ||
+ qName == "accumulative-methods")
+ {
+ // elements used in SMESH_2smeshpy
+ return true;
+ }