#define CALCULATION_REGIONS_PREF GetName() + "_Reg"
#define CALCULATION_ZONES_PREF GetName() + "_Zone"
+#define CALCULATION_GROUPS_PREF GetName() + "_"
#define PYTHON_CALCULATION_ID "KIND_CALCULATION"
}
}
}
+
+ HYDROData_SequenceOfObjects aGroups = GetGeometryGroups();
+
+ anIter.Init( aGroups );
+ for ( ; anIter.More(); anIter.Next() )
+ {
+ Handle(HYDROData_SplittedEdgesGroup) aGroup =
+ Handle(HYDROData_SplittedEdgesGroup)::DownCast( anIter.Value() );
+ if ( aGroup.IsNull() )
+ continue;
+
+ QString aGroupName = aGroup->GetName();
+ if ( aGroupName.startsWith( anOldCaseName ) )
+ {
+ aGroupName.replace( anOldCaseName, theName );
+ aGroup->SetName( aGroupName );
+ }
+ }
}
HYDROData_Entity::SetName( theName );
{
aSplittedGroup = addNewSplittedGroup();
- QString aCalcGroupName = GetName() + "_" + anObjName;
+ QString aCalcGroupName = CALCULATION_GROUPS_PREF + anObjName;
aSplittedGroup->SetName( aCalcGroupName );
aSplittedEdgesGroupsMap.insert( anObjName, aSplittedGroup );