#include <HYDROData_Image.h>
#include <HYDROData_ImmersibleZone.h>
#include <HYDROData_Iterator.h>
+#include <HYDROData_Polyline3D.h>
#include <HYDROData_PolylineXY.h>
#include <HYDROData_Profile.h>
#include <HYDROData_VisualState.h>
// POLYLINES
LightApp_DataObject* aPolylineRootObj = createObject( aRootObj, tr( partitionName( KIND_POLYLINEXY ).toAscii() ) );
+ // POLYLINES
+ LightApp_DataObject* aPolyline3DRootObj = createObject( aRootObj, tr( partitionName( KIND_POLYLINE ).toAscii() ) );
+
// PROFILES
LightApp_DataObject* aProfileRootObj = createObject( aRootObj, tr( partitionName( KIND_PROFILE ).toAscii() ) );
break;
}
+ case KIND_POLYLINE:
+ {
+ Handle(HYDROData_Polyline3D) aPolylineObj =
+ Handle(HYDROData_Polyline3D)::DownCast( anObj );
+ if( !aPolylineObj.IsNull() ) {
+ createObject( aPolyline3DRootObj, aPolylineObj );
+ }
+
+ break;
+ }
case KIND_PROFILE:
{
Handle(HYDROData_Profile) aProfileObj =
switch( theObjectKind )
{
case KIND_IMAGE: return "IMAGES";
+ case KIND_POLYLINE: return "POLYLINES_3D";
case KIND_POLYLINEXY: return "POLYLINES";
case KIND_PROFILE: return "PROFILES";
case KIND_VISUAL_STATE: return "VISUAL_STATES";
createZone( aGuiObj, aRegionZone, "", true );
}
}
+ else if ( anObjectKind == KIND_PROFILE )
+ {
+ Handle(HYDROData_Profile) aProfileObj =
+ Handle(HYDROData_Profile)::DownCast( aDataObj );
+
+ aGuiObj->setIsValid( aProfileObj->IsValid() );
+ }
}
void HYDROGUI_DataModel::buildCaseTree( SUIT_DataObject* theParent, Handle(HYDROData_CalculationCase) theCase )