X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Zone.cxx;h=661e23c9b6a757a4ba1df0d1047fad084edf98c1;hb=4d4d74dd554819c30f1c8ded5520cc6c25aba56b;hp=4bceba9a7c69b895d35ea237643e06c6b2d69136;hpb=fdfbecc502e984321f7e660d64e6031df35e26c2;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Zone.cxx b/src/HYDROData/HYDROData_Zone.cxx index 4bceba9a..661e23c9 100644 --- a/src/HYDROData/HYDROData_Zone.cxx +++ b/src/HYDROData/HYDROData_Zone.cxx @@ -22,7 +22,6 @@ #include "HYDROData_IAltitudeObject.h" #include "HYDROData_Document.h" #include "HYDROData_NaturalObject.h" -#include "HYDROData_LandCover.h" #include #include #include @@ -104,30 +103,6 @@ bool HYDROData_Zone::IsMergingNeed() const return true; } - // Zones based on land cover objects (compare Strickler types) - QString aRefStricklerType; - - anObjsIter.Init( anObjects ); - for ( ; anObjsIter.More(); anObjsIter.Next() ) - { - Handle(HYDROData_LandCover) aRefLandCoverObj = - Handle(HYDROData_LandCover)::DownCast( anObjsIter.Value() ); - if ( aRefLandCoverObj.IsNull() ) - continue; - - QString aStricklerType = aRefLandCoverObj->GetStricklerType(); - - if ( aRefStricklerType.isNull() ) - { - aRefStricklerType = aStricklerType; - continue; - } - - if ( aRefStricklerType != aStricklerType ) - return true; - } - - return false; } @@ -183,8 +158,7 @@ bool HYDROData_Zone::AddObject( const Handle(HYDROData_Entity)& theObject ) return false; if ( !theObject->IsKind( STANDARD_TYPE(HYDROData_ArtificialObject) ) && - !theObject->IsKind( STANDARD_TYPE(HYDROData_NaturalObject) ) && - !theObject->IsKind( STANDARD_TYPE(HYDROData_LandCover) ) ) + !theObject->IsKind( STANDARD_TYPE(HYDROData_NaturalObject) ) ) return false; // Wrong type of object if ( HasReference( theObject, DataTag_Object ) )