double HYDROData_CalculationCase::GetStricklerCoefficientForPoint( const gp_XY& thePoint ) const
{
- //TODO: #652
- return 0.0;
+ Handle( HYDROData_LandCoverMap ) aMap = GetLandCoverMap();
+ Handle( HYDROData_StricklerTable ) aTable = GetStricklerTable();
+ if( aMap.IsNull() )
+ return 0.0;
+
+ QString aType;
+ aMap->FindByPoint( thePoint, aType );
+ double aCoeff = aTable->Get( aType, 0.0 );
+ return aCoeff;
}
Handle(HYDROData_Region) HYDROData_CalculationCase::GetRegionFromPoint( const gp_XY& thePoint ) const
if( aColorScale.IsNull() )
return aColorScale;
- Standard_Real anXPos = 0.05; //TODO
- Standard_Real anYPos = 0.1; //TODO
- Standard_Real aWidth = 0.2; //TODO
- Standard_Real aHeight = 0.5; //TODO
- Standard_Integer aTextHeight = 14; //TODO
- Standard_Integer aNbIntervals = 30; //TODO
+ Standard_Real anXPos = 0.05;
+ Standard_Real anYPos = 0.1;
+ Standard_Real aWidth = 0.2;
+ Standard_Real aHeight = 0.5;
+ Standard_Integer aTextHeight = 14;
+ Standard_Integer aNbIntervals = 30;
aColorScale->SetXPosition( anXPos );
aColorScale->SetYPosition( anYPos );