- // Public methods to work with Bathymetry altitudes.
-
- /**
- * Returns altitude points list.
- * \return points list
- */
- static double GetInvalidAltitude();
-
- /**
- * Replace current altitude points by new one.
- * \param thePoints the altitude points list
- */
- virtual void SetAltitudePoints( SIP_PYLIST ) [void (const HYDROData_Bathymetry::AltitudePoints&)] ;
- %MethodCode
-
- // The C++ API takes a list of gp_XYZ objects,
- // but we pass a list of python tuples.
-
- HYDROData_Bathymetry::AltitudePoints aPoints =
- convertFromPythonAltitudeList( a0 );
-
- Py_BEGIN_ALLOW_THREADS
- sipSelfWasArg ? sipCpp->HYDROData_Bathymetry::SetAltitudePoints( aPoints ) :
- sipCpp->SetAltitudePoints( aPoints );
- Py_END_ALLOW_THREADS
-
- %End
- %VirtualCatcherCode
-
- PyObject* aPythonList = convertToPythonAltitudeList( a0 );
- if ( aPythonList != NULL )
- {
- sipCallMethod( &sipIsErr, sipMethod, "O", aPythonList );
- Py_DECREF( aPythonList );
- }
-
- %End
-
- /**
- * Returns altitude points list.
- * \return points list
- */
- SIP_PYLIST GetAltitudePoints() const [HYDROData_Bathymetry::AltitudePoints ()] ;
- %MethodCode
-
- // The C++ API returns a list of gp_XYZ objects,
- // we convert it to list of python tuples.
-
- HYDROData_Bathymetry::AltitudePoints aPoints;
-
- Py_BEGIN_ALLOW_THREADS
- aPoints = sipSelfWasArg ? sipCpp->HYDROData_Bathymetry::GetAltitudePoints() : sipCpp->GetAltitudePoints();
- Py_END_ALLOW_THREADS
-
- sipRes = convertToPythonAltitudeList( aPoints );
-
- %End
- /**
- * Remove all altitude points.
- */
- void RemoveAltitudePoints();
-
- /**
- * Returns altitude for given point.
- * \param thePoint the point to examine
- * \return altitude value
- */
- double GetAltitudeForPoint( const QPointF& thePoint ) const;