X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_IAltitudeObject.sip;h=a99cc9cc5e31bfabfc3a639f7f4747e6452e3cee;hb=aef25fd825d5add8a8cc2cdf43db3f24e5d4a90f;hp=2e5fce946bfd8fa7bc847809589d224ea5e050f9;hpb=da79da4e63d66e7f2d0ff32cbaaec70e46ca2206;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_IAltitudeObject.sip b/src/HYDROPy/HYDROData_IAltitudeObject.sip index 2e5fce94..a99cc9cc 100644 --- a/src/HYDROPy/HYDROData_IAltitudeObject.sip +++ b/src/HYDROPy/HYDROData_IAltitudeObject.sip @@ -24,7 +24,7 @@ #include %End -class HYDROData_IAltitudeObject : HYDROData_Entity /Abstract/ +class HYDROData_IAltitudeObject : public HYDROData_Entity /Abstract/ { %ConvertToSubClassCode @@ -63,15 +63,28 @@ public: * Returns altitude points list. * \return points list */ - static double GetInvalidAltitude(); + static double GetInvalidAltitude(); /** * Returns altitude for given point. * \param thePoint the point to examine * \return altitude value */ - virtual double GetAltitudeForPoint( const gp_XY& thePoint ) const = 0; + virtual double GetAltitudeForPoint( const double theCoordX, + const double theCoordX ) const = 0 [double ( const gp_XY& )]; + %MethodCode + gp_XY aPnt( a0, a1 ); + + Py_BEGIN_ALLOW_THREADS + sipRes = sipCpp->GetAltitudeForPoint( aPnt ); + Py_END_ALLOW_THREADS + %End + %VirtualCatcherCode + PyObject *sipResObj = sipCallMethod(0, sipMethod, "dd",a0.X(),a0.Y()); + sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "d", &sipRes); + %End + protected: /**