%End
-class HYDROData_Bathymetry : HYDROData_Entity
+class HYDROData_Bathymetry : HYDROData_IAltitudeObject
{
%ConvertToSubClassCode
// Public methods to work with Bathymetry altitudes.
/**
- * Returns altitude points list.
- * \return points list
+ * Returns altitude for given point.
+ * \param thePoint the point to examine
+ * \return altitude value
*/
- static double GetInvalidAltitude();
+ double GetAltitudeForPoint( const QPointF& thePoint ) const [double (const gp_XY&)];
+ %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
+
+
/**
* Replace current altitude points by new one.
*/
void RemoveAltitudePoints();
- /**
- * Returns altitude for given point.
- * \param thePoint the point to examine
- * \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:
// Public methods to work with files.