return aCoeff;
}
+bool HYDROData_CalculationCase::GetStricklerCoefficientForPoints(const std::vector<gp_Pnt2d>& thePoints,
+ std::vector<double>& theCoeffs, double DefValue, bool UseMax )
+{
+
+ Handle( HYDROData_LandCoverMap ) aLCM = GetLandCoverMap();
+ Handle( HYDROData_StricklerTable ) aTable = GetStricklerTable();
+ if( aLCM.IsNull() || aTable.IsNull() )
+ return false;
+
+ aLCM->ClassifyPoints(thePoints, aTable, theCoeffs, DefValue, UseMax );
+
+ return true;
+}
+
Handle(HYDROData_Region) HYDROData_CalculationCase::GetRegionFromPoint( const gp_XY& thePoint ) const
{
Handle(HYDROData_Region) aResRegion;
#include <HYDROData_PriorityQueue.h>
#include <HYDROData_Zone.h>
#include <HYDROData_Warning.h>
+#include <vector>
#ifdef WIN32
#pragma warning ( disable: 4251 )
*/
HYDRODATA_EXPORT double GetStricklerCoefficientForPoint( const gp_XY& thePoint ) const;
+ HYDRODATA_EXPORT bool GetStricklerCoefficientForPoints(const std::vector<gp_Pnt2d>& thePoints,
+ std::vector<double>& theCoeffs, double DefValue,
+ bool UseMax );
+
/**
* Returns altitudes for given points on given region.
* \param thePoints the points to examine