X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_CalculationCase.sip;h=52c09e4f954aa47742ceb3502fa2b00ab380fc3f;hb=e3143f45b5b09e2ee43f2058fd23de2926fb4944;hp=a70e7f9bd7d824a2b870c82b94d12e69d3222a53;hpb=9d91b0eac6b735bc098e0d4fa50b8833534bd38c;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_CalculationCase.sip b/src/HYDROPy/HYDROData_CalculationCase.sip index a70e7f9b..52c09e4f 100644 --- a/src/HYDROPy/HYDROData_CalculationCase.sip +++ b/src/HYDROPy/HYDROData_CalculationCase.sip @@ -479,6 +479,26 @@ public: %End + std::vector GetStricklerTypeForPoints( const NCollection_Sequence& theCoordsX, + const NCollection_Sequence& theCoordsY ) const + [std::vector( const NCollection_Sequence& )]; + %MethodCode + std::vector 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.push_back( aPnt ); + } + std::vector aRes; + Py_BEGIN_ALLOW_THREADS + aRes = sipSelfWasArg ? sipCpp->HYDROData_CalculationCase::GetStricklerTypeForPoints( aPnts ) : + sipCpp->GetStricklerTypeForPoints( aPnts ); + Py_END_ALLOW_THREADS + sipRes = new std::vector( aRes ); + %End + + /** * Returns altitudes for given points on given zone. * \param thePoints the points to examine