/**
* 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.
* 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
protected: