X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Bathymetry.sip;h=d1cb1eac83c332895b674bb4bdee3379dd302000;hb=3bece499e83cc9ca95536228c7f6740030e9d5d8;hp=2e6fd5ccba46a681c024c7d11198f9f828dc5edf;hpb=24fb5adcac723810ac120abf37ad191a092cbefe;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Bathymetry.sip b/src/HYDROPy/HYDROData_Bathymetry.sip index 2e6fd5cc..d1cb1eac 100644 --- a/src/HYDROPy/HYDROData_Bathymetry.sip +++ b/src/HYDROPy/HYDROData_Bathymetry.sip @@ -53,6 +53,33 @@ public: virtual void SetAltitudePoints( const HYDROData_Bathymetry::AltitudePoints& ); HYDROData_Bathymetry::AltitudePoints GetAltitudePoints() const; + NCollection_Sequence GetAltitudesForPoints( const NCollection_Sequence& theCoordsX, + const NCollection_Sequence& theCoordsY, + int theMethod = 0) const + [NCollection_Sequence ( const NCollection_Sequence&, int)]; + %MethodCode + + NCollection_Sequence 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 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( aRes ); + %End + + void RemoveAltitudePoints(); public: @@ -60,6 +87,7 @@ public: bool IsAltitudesInverted() const; bool ImportFromFiles( const QStringList& theFileNames ); + bool ImportFromFile( const QString& theFileName ); protected: HYDROData_Bathymetry();