%ExportedHeaderCode
#include <HYDROData_Bathymetry.h>
+#include <gp_XY.hxx>
#include <gp_XYZ.hxx>
%End
sipRes = convertToPythonAltitudeList( aPoints );
%End
+
/**
* Remove all altitude points.
*/
* \return altitude value
*/
double GetAltitudeForPoint( const QPointF& thePoint ) const;
+ %MethodCode
+
+ // The C++ API gets the gp_XY object, we convert it from QPointF.
+ gp_XY aPoint( a0->x(), a0->y() );
+
+ Py_BEGIN_ALLOW_THREADS
+ sipRes = sipSelfWasArg ? sipCpp->HYDROData_Bathymetry::GetAltitudeForPoint( aPoint ) :
+ sipCpp->GetAltitudeForPoint( aPoint );
+ Py_END_ALLOW_THREADS
+ %End
public: