Handle(HYDROData_CalculationCase) aCaseObj =
Handle(HYDROData_CalculationCase)::DownCast( aDataObj );
+ LightApp_DataObject* aCaseAOSect =
+ createObject( aGuiObj, tr( partitionName( KIND_ARTIFICIAL_OBJECT ).toAscii() ),
+ aGuiObj->entry() );
+ LightApp_DataObject* aCaseNOSect =
+ createObject( aGuiObj, tr( partitionName( KIND_NATURAL_OBJECT ).toAscii() ),
+ aGuiObj->entry() );
+
+ HYDROData_SequenceOfObjects aSeq = aCaseObj->GetGeometryObjects();
+ HYDROData_SequenceOfObjects::Iterator aGOIter( aSeq );
+ Handle(HYDROData_Entity) anEntity;
+ Handle(HYDROData_ArtificialObject) anAObject;
+ Handle(HYDROData_NaturalObject) aNObject;
+ for ( ; aGOIter.More(); aGOIter.Next() )
+ {
+ anEntity = aGOIter.Value();
+ if ( anEntity.IsNull() )
+ continue;
+ anAObject = Handle(HYDROData_ArtificialObject)::DownCast( anEntity );
+ if ( !anAObject.IsNull() )
+ createObject( aCaseAOSect, anAObject, aGuiObj->entry(), false );
+ else
+ {
+ aNObject = Handle(HYDROData_NaturalObject)::DownCast( anEntity );
+ if ( !aNObject.IsNull() )
+ createObject( aCaseNOSect, aNObject, aGuiObj->entry(), false );
+ }
+ }
LightApp_DataObject* aCaseRegionsSect =
createObject( aGuiObj, tr( "CASE_REGIONS" ), aGuiObj->entry() );