}
#endif
+
+NCollection_Sequence<double> HYDROData_Bathymetry::GetAltitudesForPoints( const NCollection_Sequence<gp_XY>& thePoints, int theMethod) const
+{
+ DEBTRACE("HYDROData_Bathymetry::GetAltitudesForPoints " << GetName().toStdString());
+ NCollection_Sequence<double> aResSeq;
+ for ( int i = 1, n = thePoints.Length(); i <= n; ++i )
+ {
+ const gp_XY& thePnt = thePoints.Value(i);
+ double anAltitude = GetAltitudeForPoint( thePnt, theMethod );
+ aResSeq.Append( anAltitude );
+ }
+ return aResSeq;
+}
+
double HYDROData_Bathymetry::GetAltitudeForPoint(const gp_XY& thePoint, int theMethod) const
{
DEBTRACE("GetAltitudeForPoint p(" << thePoint.X() << ", " << thePoint.Y() << "), interpolation method: " << theMethod);
HYDRODATA_EXPORT virtual HYDROData_QuadtreeNode* GetQuadtreeNodes() const;
HYDRODATA_EXPORT virtual HYDROData_QuadtreeNode* ComputeQuadtreeNodes( int key) const;
+ HYDRODATA_EXPORT virtual NCollection_Sequence<double> GetAltitudesForPoints( const NCollection_Sequence<gp_XY>& thePoints, int theMethod = 0) const;
+
#ifndef LIGHT_MODE
HYDRODATA_EXPORT virtual vtkPolyData* GetVtkDelaunay2D() const;
HYDRODATA_EXPORT virtual vtkPolyData* ComputeVtkDelaunay2D(int key) const;
virtual void SetAltitudePoints( const HYDROData_Bathymetry::AltitudePoints& );
HYDROData_Bathymetry::AltitudePoints GetAltitudePoints() const;
+ NCollection_Sequence<double> GetAltitudesForPoints( const NCollection_Sequence<double>& theCoordsX,
+ const NCollection_Sequence<double>& theCoordsY,
+ int theMethod = 0) const
+ [NCollection_Sequence<double> ( const NCollection_Sequence<gp_XY>&, int)];
+ %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 );
+ }
+
+ int aMethod = a2;
+
+ NCollection_Sequence<double> aRes;
+ Py_BEGIN_ALLOW_THREADS
+ aRes = sipSelfWasArg ? sipCpp->HYDROData_Bathymetry::GetAltitudesForPoints( aPnts, aMethod ) :
+ sipCpp->GetAltitudesForPoints( aPnts, aMethod );
+ Py_END_ALLOW_THREADS
+
+ sipRes = new NCollection_Sequence<double>( aRes );
+ %End
+
+
void RemoveAltitudePoints();
public: