+ /**
+ * Returns altitudes for given points on given region.
+ * \param thePoints the points to examine
+ * \param theZone reference region to check
+ * \return result altitude value
+ */
+ NCollection_Sequence<double> GetAltitudesForPoints( const NCollection_Sequence<double>& theCoordsX,
+ const NCollection_Sequence<double>& theCoordsY,
+ HYDROData_Region theRegion ) const
+ [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, const Handle_HYDROData_Region& )];
+ %MethodCode
+
+ NCollection_Sequence<gp_XY> aPnts;
+
+ int aLen = qMin( a0->Length(), a1->Length() );
+ for ( int i = 1; i <= aLen; ++i )
+ {
+ gp_XY aPnt( a0->Value( i ), a1->Value( i ) );
+ aPnts.Append( aPnt );
+ }
+
+ Handle(HYDROData_Region) aRefRegion =
+ Handle(HYDROData_Region)::DownCast( createHandle( a2 ) );
+
+ NCollection_Sequence<double> aRes;
+ Py_BEGIN_ALLOW_THREADS
+ aRes = sipSelfWasArg ? sipCpp->HYDROData_CalculationCase::GetAltitudesForPoints( aPnts, aRefRegion ) :
+ sipCpp->GetAltitudesForPoints( aPnts, aRefRegion );
+ Py_END_ALLOW_THREADS
+
+ sipRes = new NCollection_Sequence<double>( aRes );
+ %End
+