LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_Obstacle.cc)
SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_Obstacle.cc)
+ 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_PolylineXY.cc)
SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_PolylineXY.cc)
%Include HYDROData_PolylineXY.sip
%Include HYDROData_ArtificialObject.sip
%Include HYDROData_Obstacle.sip
-//Include HYDROData_Channel.sip
+%Include HYDROData_Channel.sip
//Include HYDROData_Digue.sip
%Include HYDROData_NaturalObject.sip
%Include HYDROData_River.sip
/**
* Sets reference guide line object for channel.
*/
- virtual bool SetGuideLine( const Handle(HYDROData_Polyline3D)& theGuideLine );
+ bool SetGuideLine( HYDROData_Polyline3D theGuideLine )
+ [bool ( const Handle_HYDROData_Polyline3D& )];
+ %MethodCode
+ Handle(HYDROData_Polyline3D) aRef =
+ Handle(HYDROData_Polyline3D)::DownCast( createHandle( a0 ) );
+ if ( !aRef.IsNull() )
+ {
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = sipSelfWasArg ? sipCpp->HYDROData_Channel::SetGuideLine( aRef ):
+ sipCpp->SetGuideLine( aRef );
+ Py_END_ALLOW_THREADS
+ }
+ %End
/**
* Returns reference guide line object of channel.
*/
- virtual Handle(HYDROData_Polyline3D) GetGuideLine() const;
+ HYDROData_Polyline3D GetGuideLine() const
+ [Handle_HYDROData_Polyline3D ()];
+ %MethodCode
+ Handle(HYDROData_Polyline3D) aRef;
+
+ Py_BEGIN_ALLOW_THREADS
+ aRef = sipSelfWasArg ? sipCpp->HYDROData_Channel::GetGuideLine() :
+ sipCpp->GetGuideLine();
+ Py_END_ALLOW_THREADS
+
+ sipRes = (HYDROData_Polyline3D*)createPointer( aRef );
+ %End
/**
* Remove reference guide line object from channel.
*/
- virtual void RemoveGuideLine();
+ void RemoveGuideLine();
/**
* Sets reference profile object for channel.
*/
- virtual bool SetProfile( const Handle(HYDROData_Profile)& theProfile );
+ bool SetProfile( HYDROData_Profile theProfile )
+ [bool ( const Handle_HYDROData_Profile& )];
+ %MethodCode
+ Handle(HYDROData_Profile) aRef =
+ Handle(HYDROData_Profile)::DownCast( createHandle( a0 ) );
+ if ( !aRef.IsNull() )
+ {
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = sipSelfWasArg ? sipCpp->HYDROData_Channel::SetProfile( aRef ):
+ sipCpp->SetProfile( aRef );
+ Py_END_ALLOW_THREADS
+ }
+ %End
/**
* Returns reference profile object of channel.
*/
- virtual Handle(HYDROData_Profile) GetProfile() const;
+ HYDROData_Profile GetProfile() const
+ [Handle_HYDROData_Profile ()];
+ %MethodCode
+ Handle(HYDROData_Profile) aRef;
+
+ Py_BEGIN_ALLOW_THREADS
+ aRef = sipSelfWasArg ? sipCpp->HYDROData_Channel::GetProfile() :
+ sipCpp->GetProfile();
+ Py_END_ALLOW_THREADS
+
+ sipRes = (HYDROData_Profile*)createPointer( aRef );
+ %End
/**
* Remove reference profile object from channel.
*/
- virtual void RemoveProfile();
+ void RemoveProfile();
protected: