LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_Channel.cc)
SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_Channel.cc)
+
+ LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_Digue.cc)
+ SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_Digue.cc)
LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_PolylineXY.cc)
SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_PolylineXY.cc)
HYDROData_ArtificialObject.sip
HYDROData_Obstacle.sip
HYDROData_Channel.sip
+ HYDROData_Digue.sip
HYDROData_NaturalObject.sip
HYDROData_River.sip
HYDROData_Image.sip
%Include HYDROData_ArtificialObject.sip
%Include HYDROData_Obstacle.sip
%Include HYDROData_Channel.sip
-//Include HYDROData_Digue.sip
+%Include HYDROData_Digue.sip
%Include HYDROData_NaturalObject.sip
%Include HYDROData_River.sip
//Include HYDROData_Stream.sip
sipClass = sipClass_HYDROData_Obstacle;
break;
+ case KIND_DIGUE:
+ sipClass = sipClass_HYDROData_Digue;
+ break;
+
case KIND_CHANNEL:
- {
sipClass = sipClass_HYDROData_Channel;
break;
- }
case KIND_UNKNOWN:
sipClass = sipClass_HYDROData_ArtificialObject;
#include "HYDROData_Channel.h"
%End
+%ConvertToSubClassCode
+ // HYDROData_Channel sub-classes provide a unique kind ID.
+ switch ( sipCpp->GetKind() )
+ {
+ case KIND_DIGUE:
+ sipClass = sipClass_HYDROData_Digue;
+ break;
+
+ case KIND_UNKNOWN:
+ sipClass = sipClass_HYDROData_ArtificialObject;
+ break;
+
+ default:
+ // We don't recognise the type.
+ sipClass = NULL;
+ }
+%End
+
public:
/**
* Returns default filling color for new channel.
aRes = new HYDROData_Zone( *dynamic_cast<HYDROData_Zone*>( theObject ) );
break;
}
+ case KIND_DIGUE:
+ {
+ aRes = new HYDROData_Digue( *dynamic_cast<HYDROData_Digue*>( theObject ) );
+ break;
+ }
case KIND_CHANNEL:
{
aRes = new HYDROData_Channel( *dynamic_cast<HYDROData_Channel*>( theObject ) );
sipClass = sipClass_HYDROData_ImmersibleZone;
break;
+ case KIND_DIGUE:
+ sipClass = sipClass_HYDROData_Digue;
+ break;
+
case KIND_CHANNEL:
sipClass = sipClass_HYDROData_Channel;
break;
sipClass = sipClass_HYDROData_ImmersibleZone;
break;
+ case KIND_DIGUE:
+ sipClass = sipClass_HYDROData_Digue;
+ break;
+
case KIND_CHANNEL:
sipClass = sipClass_HYDROData_Channel;
break;