2 #include "HYDROData_IInterpolator.h"
6 HYDROData_IInterpolator::HYDROData_IInterpolator()
10 HYDROData_IInterpolator::~HYDROData_IInterpolator()
14 void HYDROData_IInterpolator::SetAltitudeObject(
15 const Handle(HYDROData_IAltitudeObject)& theAltitude )
17 myAltitudeObject = theAltitude;
20 Handle(HYDROData_IAltitudeObject) HYDROData_IInterpolator::GetAltitudeObject() const
22 return myAltitudeObject;
25 double HYDROData_IInterpolator::GetAltitudeForPoint(
26 const double theCoordX, const double theCoordY ) const
28 return myAltitudeObject.IsNull() ? HYDROData_IAltitudeObject::GetInvalidAltitude() :
29 myAltitudeObject->GetAltitudeForPoint( gp_XY( theCoordX, theCoordY ) );
32 double HYDROData_IInterpolator::GetAltitudeForPoint( const gp_XY& thePoint ) const
34 return GetAltitudeForPoint( thePoint.X(), thePoint.Y() );