QString aLabel = atts.value("label-id");
QString anIcon = atts.value("icon-id");
bool isAux = atts.value("auxiliary") == "true";
+ bool isNeedGeom = true;
+ QString aNeedGeom = atts.value("need-geom");
+ if ( !aNeedGeom.isEmpty() )
+ isNeedGeom = (aNeedGeom == "true");
QString aDimStr = atts.value("dim");
aDimStr = aDimStr.remove( ' ' );
{
int aVal = (*anIter).toInt( &isOk );
if ( isOk )
- aDim.append( aVal - 1 );
+ aDim.append( aVal );
}
// for algo
}
}
- HypothesisData* aHypLibNames =
+ HypothesisData* aHypData =
new HypothesisData (aHypAlType, myPluginName, myServerLib, myClientLib,
aLabel, anIcon, aDim, isAux,
- attr[ HYPOS ], attr[ OPT_HYPOS ], attr[ INPUT ], attr[ OUTPUT ]);
+ attr[ HYPOS ], attr[ OPT_HYPOS ], attr[ INPUT ], attr[ OUTPUT ], isNeedGeom );
if (qName == "algorithm")
{
- myAlgorithmsMap[(char*)aHypAlType.latin1()] = aHypLibNames;
+ myAlgorithmsMap[(char*)aHypAlType.latin1()] = aHypData;
}
else
{
- myHypothesesMap[(char*)aHypAlType.latin1()] = aHypLibNames;
+ myHypothesesMap[(char*)aHypAlType.latin1()] = aHypData;
}
}
}