From: asl Date: Tue, 28 Oct 2014 12:29:38 +0000 (+0000) Subject: stable order in the partition algorithm X-Git-Tag: BR_hydro_v_1_0_4~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e7b5c17fcef0fadb7d5792e38caaafffa5db6d4;p=modules%2Fhydro.git stable order in the partition algorithm --- diff --git a/src/HYDROData/HYDROData_CalculationCase.cxx b/src/HYDROData/HYDROData_CalculationCase.cxx index b9c17a89..5e0ce79e 100644 --- a/src/HYDROData/HYDROData_CalculationCase.cxx +++ b/src/HYDROData/HYDROData_CalculationCase.cxx @@ -879,6 +879,7 @@ Handle(HYDROData_Region) HYDROData_CalculationCase::addNewRegion( const Handle(H bool isPrefix ) { TDF_Label aNewLab = myLab.FindChild( DataTag_ChildRegion ).NewChild(); + int aTag = aNewLab.Tag(); Handle(HYDROData_Region) aNewRegion = Handle(HYDROData_Region)::DownCast( HYDROData_Iterator::CreateObject( aNewLab, KIND_REGION ) ); diff --git a/src/HYDROData/HYDROData_SplitToZonesTool.cxx b/src/HYDROData/HYDROData_SplitToZonesTool.cxx index fabf15d9..3df841ed 100644 --- a/src/HYDROData/HYDROData_SplitToZonesTool.cxx +++ b/src/HYDROData/HYDROData_SplitToZonesTool.cxx @@ -201,7 +201,7 @@ HYDROData_SplitToZonesTool::SplitDataList QStringList aListOfNames; for (int i=0;i < anInputGroupList.size() ;i++) { const TopoDS_Shape& aSh = anInputGroupList.at(i).Shape; - aDM3.Bind(aSh, anInputGroupList.at(i).ObjectNames); + aDM3.Add(aSh, anInputGroupList.at(i).ObjectNames); } } @@ -214,7 +214,7 @@ HYDROData_SplitToZonesTool::SplitDataList aBB.MakeCompound(aCmp); for (int i=0;i < anInputSplitDataList.size() ;i++) { const TopoDS_Shape& aSh = anInputSplitDataList.at(i).Shape; - aDM3.Bind(aSh, anInputSplitDataList.at(i).ObjectNames); + aDM3.Add(aSh, anInputSplitDataList.at(i).ObjectNames); aLS.Append(aSh); aBB.Add(aCmp,aSh); #ifdef DEB_SPLIT_TO_ZONES @@ -277,7 +277,7 @@ HYDROData_SplitToZonesTool::SplitDataList ********************************************************************* */ if(!foundF) // face is not modified aList.Append (anIt.Value()); - aDM1.Bind(anIt.Value(), aList); + aDM1.Add(anIt.Value(), aList); #ifdef DEB_SPLIT_TO_ZONES TCollection_AsciiString aName; #endif @@ -313,7 +313,7 @@ HYDROData_SplitToZonesTool::SplitDataList cout << aName.ToCString()<< " = " << exp.Current().TShape() < #include #include -#include -#include +#include +#include #include #include @@ -54,11 +54,11 @@ public: typedef QList SplitDataList; typedef QListIterator SplitDataListIterator; - typedef NCollection_Map HYDROData_MapOfShape; + typedef NCollection_IndexedMap HYDROData_MapOfShape; typedef HYDROData_MapOfShape::Iterator HYDROData_MapIteratorOfMapOfShape; - typedef NCollection_DataMap HYDROData_DataMapOfShapeListOfShape; + typedef NCollection_IndexedDataMap HYDROData_DataMapOfShapeListOfShape; typedef HYDROData_DataMapOfShapeListOfShape::Iterator HYDROData_DataMapIteratorOfDataMapOfShapeListOfShape; - typedef NCollection_DataMap HYDROData_DataMapOfShapeListOfString; + typedef NCollection_IndexedDataMap HYDROData_DataMapOfShapeListOfString; typedef HYDROData_DataMapOfShapeListOfString::Iterator HYDROData_DataMapIteratorOfDataMapOfShapeListOfString; #undef _NCollection_MapHasher