From: rkv Date: Mon, 13 Jan 2014 11:21:16 +0000 (+0000) Subject: SIP: HYDROData_ProfileUZ is completed. X-Git-Tag: BR_hydro_v_1_0~108 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74c349623c1fc536161c7ab555c2cdb878f61644;p=modules%2Fhydro.git SIP: HYDROData_ProfileUZ is completed. --- diff --git a/src/HYDROPy/HYDROData_PolylineXY.sip b/src/HYDROPy/HYDROData_PolylineXY.sip index 082269e8..6408ae63 100644 --- a/src/HYDROPy/HYDROData_PolylineXY.sip +++ b/src/HYDROPy/HYDROData_PolylineXY.sip @@ -97,7 +97,7 @@ public: * \param thePoints new points */ void SetPoints( const int theSectionIndex, - const PointsList& thePoints ); + const HYDROData_IPolyline::PointsList& thePoints ); /** * Returns the painter path. diff --git a/src/HYDROPy/HYDROData_Profile.sip b/src/HYDROPy/HYDROData_Profile.sip index d94a1c9d..41ec2f78 100644 --- a/src/HYDROPy/HYDROData_Profile.sip +++ b/src/HYDROPy/HYDROData_Profile.sip @@ -129,13 +129,13 @@ public: * Replace current profile parametric points by new one. * \param thePoints the list with new points in parametric form */ - void SetParametricPoints( const HYDROData_ProfileUZ::PointsList& thePoints ); + void SetParametricPoints( const HYDROData_IPolyline::PointsList& thePoints ); /** * Returns profile points in parametric form. * \return points list */ - HYDROData_ProfileUZ::PointsList GetParametricPoints() const; + HYDROData_IPolyline::PointsList GetParametricPoints() const; /** diff --git a/src/HYDROPy/HYDROData_ProfileUZ.sip b/src/HYDROPy/HYDROData_ProfileUZ.sip index f46209bd..2e6f244e 100644 --- a/src/HYDROPy/HYDROData_ProfileUZ.sip +++ b/src/HYDROPy/HYDROData_ProfileUZ.sip @@ -24,12 +24,9 @@ #include %End -class HYDROData_ProfileUZ : HYDROData_IPolyline +class HYDROData_ProfileUZ : public HYDROData_IPolyline { - typedef gp_XY Point; - typedef NCollection_Sequence PointsList; - %TypeHeaderCode #include %End @@ -49,6 +46,13 @@ class HYDROData_ProfileUZ : HYDROData_IPolyline public: + /** + * Returns the depth for given distance. + */ + static double GetDepthFromDistance( const HYDROData_IPolyline::PointsList& thePoints, + const double& theDistance ); + + protected: /**