#include <HYDROData_Zone.h>
#include <HYDROData_Object.h>
#include <HYDROData_IAltitudeObject.h>
-#include <HYDROData_LandCover.h>
#include <SUIT_DataObject.h>
#include <QSet>
HYDROData_SequenceOfObjects::Iterator anIter( aSeq );
for ( ; anIter.More(); anIter.Next() )
{
- Handle(HYDROData_Entity) aRefGeomObj =
- Handle(HYDROData_Entity)::DownCast( anIter.Value() );
+ Handle(HYDROData_Entity) aRefGeomObj = anIter.Value();
if ( !aRefGeomObj.IsNull() )
{
// Get Ref.Object name
}
}
}
- else
- {
- Handle(HYDROData_LandCover) aRefLandCoverObj =
- Handle(HYDROData_LandCover)::DownCast( anIter.Value() );
- if ( !aRefLandCoverObj.IsNull() )
- {
- // Get name of land cover object
- aName = aRefLandCoverObj->GetName();
- if ( !isMergingNeed )
- {
- // Get the first land cover object's altitude name and go out
- aRes = aName;
- break;
- }
- }
- }
if ( !aName.isEmpty() && !aNamesSet.contains( aName ) )
{
{
// Get altitude object
aMergeObject = aRefGeomObj->GetAltitudeObject();
- } else {
- aMergeObject = Handle(HYDROData_LandCover)::DownCast( anIter.Value() );
}
if ( !aMergeObject.IsNull() && theMergeObjectName == aMergeObject->GetName() )