X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_CalculationCase.cxx;h=fef44bd1741569f6fb7ffead13ba75e45e49d84e;hb=d398a8be8e0b0259b476b358d53d234ce4c82379;hp=2b2cb691e5bee23e8a99022e5ca121c982c91734;hpb=24fb5adcac723810ac120abf37ad191a092cbefe;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_CalculationCase.cxx b/src/HYDROData/HYDROData_CalculationCase.cxx index 2b2cb691..fef44bd1 100644 --- a/src/HYDROData/HYDROData_CalculationCase.cxx +++ b/src/HYDROData/HYDROData_CalculationCase.cxx @@ -905,18 +905,18 @@ double HYDROData_CalculationCase::GetStricklerCoefficientForPoint( const gp_XY& return aCoeff; } -bool HYDROData_CalculationCase::GetStricklerCoefficientForPoints(const std::vector& thePoints, - std::vector& theCoeffs, double DefValue, bool UseMax ) +std::vector HYDROData_CalculationCase::GetStricklerCoefficientForPoints(const std::vector& thePoints, + double DefValue, bool UseMax ) const { - Handle( HYDROData_LandCoverMap ) aLCM = GetLandCoverMap(); Handle( HYDROData_StricklerTable ) aTable = GetStricklerTable(); + std::vector theCoeffs; if( aLCM.IsNull() || aTable.IsNull() ) - return false; + return theCoeffs; aLCM->ClassifyPoints(thePoints, aTable, theCoeffs, DefValue, UseMax ); - return true; + return theCoeffs; } Handle(HYDROData_Region) HYDROData_CalculationCase::GetRegionFromPoint( const gp_XY& thePoint ) const