2 #ifndef HYDROData_IInterpolator_HeaderFile
3 #define HYDROData_IInterpolator_HeaderFile
5 #include "HYDROData_IAltitudeObject.h"
9 /**\class HYDROData_IInterpolator
10 * \brief The base class to provide interface for interpolation.
12 class HYDROData_IInterpolator
17 * Public empty constructor.
19 HYDRODATA_EXPORT HYDROData_IInterpolator();
22 * Public virtual destructor.
24 virtual HYDRODATA_EXPORT ~HYDROData_IInterpolator();
29 * Returns the altitude value for given point.
30 * Reimplement this method in order to change the interpolation algorithm.
32 virtual HYDRODATA_EXPORT double GetAltitudeForPoint(
33 const double theCoordX, const double theCoordY ) const;
36 * Returns the altitude value for given point.
38 HYDRODATA_EXPORT double GetAltitudeForPoint( const gp_XY& thePoint ) const;
44 * Sets the altitude object for interpolation.
46 HYDRODATA_EXPORT void SetAltitudeObject(
47 const Handle(HYDROData_IAltitudeObject)& theAltitude );
50 * Returns the altitude object for interpolation.
52 HYDRODATA_EXPORT Handle(HYDROData_IAltitudeObject) GetAltitudeObject() const;
55 Handle(HYDROData_IAltitudeObject) myAltitudeObject;