X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Polyline3D.sip;h=299d3df49b57fb4d414c993af3d46a96d63a7092;hb=6450e251d00e2beaa02e0de026b0f1af2b948a0e;hp=a690c3bb9f64eec7c5548d8837bfd387e5d9b46c;hpb=1ec37f9d5e793698adfc0c1897d097ce14d287f1;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Polyline3D.sip b/src/HYDROPy/HYDROData_Polyline3D.sip index a690c3bb..299d3df4 100644 --- a/src/HYDROPy/HYDROData_Polyline3D.sip +++ b/src/HYDROPy/HYDROData_Polyline3D.sip @@ -48,29 +48,76 @@ public: /** * Sets reference x,y polyline object for 3D polyline. */ - virtual bool SetPolylineXY( const Handle(HYDROData_PolylineXY)& thePolyline, - const bool theIsUpdateProfile = true ); + bool SetPolylineXY( HYDROData_PolylineXY thePolyline, + const bool theIsUpdateProfile = true ) + [bool ( const Handle_HYDROData_PolylineXY&, + const bool = true )]; + %MethodCode + Handle(HYDROData_PolylineXY) aRef = + Handle(HYDROData_PolylineXY)::DownCast( createHandle( a0 ) ); + if ( !aRef.IsNull() ) + { + Py_BEGIN_ALLOW_THREADS + sipRes = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::SetPolylineXY( aRef, a1 ): + sipCpp->SetPolylineXY( aRef, a1 ); + Py_END_ALLOW_THREADS + } + %End /** * Returns reference x,y polyline object of 3D polyline. */ - virtual Handle(HYDROData_PolylineXY) GetPolylineXY() const; + HYDROData_PolylineXY GetPolylineXY() const + [Handle_HYDROData_PolylineXY ()]; + %MethodCode + Handle(HYDROData_PolylineXY) aRef; + + Py_BEGIN_ALLOW_THREADS + aRef = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::GetPolylineXY() : + sipCpp->GetPolylineXY(); + Py_END_ALLOW_THREADS + + sipRes = (HYDROData_PolylineXY*)createPointer( aRef ); + %End /** * Remove reference x,y polyline object from 3D polyline. */ - virtual void RemovePolylineXY(); + void RemovePolylineXY(); /** * Sets reference u,z profile object for 3D polyline. */ - virtual bool SetProfileUZ( const Handle(HYDROData_ProfileUZ)& theProfile ); + bool SetProfileUZ( HYDROData_ProfileUZ theProfile ) + [bool ( const Handle_HYDROData_ProfileUZ& )]; + %MethodCode + Handle(HYDROData_ProfileUZ) aRef = + Handle(HYDROData_ProfileUZ)::DownCast( createHandle( a0 ) ); + if ( !aRef.IsNull() ) + { + Py_BEGIN_ALLOW_THREADS + sipRes = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::SetProfileUZ( aRef ): + sipCpp->SetProfileUZ( aRef ); + Py_END_ALLOW_THREADS + } + %End /** * Returns reference u,z profile object of 3D polyline. */ - virtual Handle(HYDROData_ProfileUZ) GetProfileUZ() const; + HYDROData_ProfileUZ GetProfileUZ() const + [Handle_HYDROData_ProfileUZ ()]; + %MethodCode + Handle(HYDROData_ProfileUZ) aRef; + + Py_BEGIN_ALLOW_THREADS + aRef = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::GetProfileUZ() : + sipCpp->GetProfileUZ(); + Py_END_ALLOW_THREADS + + sipRes = (HYDROData_ProfileUZ*)createPointer( aRef ); + %End /** * Remove reference u,z profile object from 3D polyline. @@ -82,21 +129,60 @@ public: * Set reference bathymetry object for geometry object. * Reimplemented to remove reference u,z profile. */ - virtual bool SetAltitudeObject( const Handle(HYDROData_IAltitudeObject)& theAltitude ); + bool SetAltitudeObject( HYDROData_IAltitudeObject theAltitude ) + [bool ( const Handle_HYDROData_IAltitudeObject& )]; + %MethodCode + Handle(HYDROData_IAltitudeObject) aRef = + Handle(HYDROData_IAltitudeObject)::DownCast( createHandle( a0 ) ); + if ( !aRef.IsNull() ) + { + Py_BEGIN_ALLOW_THREADS + sipRes = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::SetAltitudeObject( aRef ): + sipCpp->SetAltitudeObject( aRef ); + Py_END_ALLOW_THREADS + } + %End /** * Clear the reference bathymetry object for geometry object. * Reimplemented to remove child u,z profile. */ - virtual void RemoveAltitudeObject(); + void RemoveAltitudeObject(); /** * Returns the child u,z profile which has been generated from bathymetry. */ - Handle(HYDROData_ProfileUZ) GetChildProfileUZ( const bool theIsCreate = true ) const; + HYDROData_ProfileUZ GetChildProfileUZ( const bool theIsCreate = true ) const + [Handle_HYDROData_ProfileUZ ( const bool = true )]; + %MethodCode + Handle(HYDROData_ProfileUZ) aRef; + + Py_BEGIN_ALLOW_THREADS + aRef = sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::GetChildProfileUZ( a0 ) : + sipCpp->GetChildProfileUZ( a0 ); + Py_END_ALLOW_THREADS + + sipRes = (HYDROData_ProfileUZ*)createPointer( aRef ); + %End + /** + * Sets the child u,z profile for polyline. + */ + void SetChildProfileUZ( HYDROData_ProfileUZ theProfile ) [void ( const Handle_HYDROData_ProfileUZ& )]; + %MethodCode + Handle(HYDROData_ProfileUZ) aRef = + Handle(HYDROData_ProfileUZ)::DownCast( createHandle( a0 ) ); + if ( !aRef.IsNull() ) + { + Py_BEGIN_ALLOW_THREADS + sipSelfWasArg ? sipCpp->HYDROData_Polyline3D::SetChildProfileUZ( aRef ): + sipCpp->SetChildProfileUZ( aRef ); + Py_END_ALLOW_THREADS + } + %End + protected: /**