File indexing completed on 2024-02-25 03:55:48

0001 #ifndef INTERPOLATIONMETHOD_H
0002 #define INTERPOLATIONMETHOD_H
0003 
0004 #include <QColor>
0005 
0006 class ReadOnlyMapImage;
0007 
0008 class InterpolationMethod
0009 {
0010 public:
0011     explicit InterpolationMethod( ReadOnlyMapImage * const mapImage );
0012     virtual ~InterpolationMethod();
0013 
0014     virtual QRgb interpolate( double const x, double const y ) = 0;
0015     void setMapImage( ReadOnlyMapImage * const mapImage );
0016 
0017 protected:
0018     ReadOnlyMapImage * m_mapImage;
0019 };
0020 
0021 
0022 inline void InterpolationMethod::setMapImage( ReadOnlyMapImage * const mapImage )
0023 {
0024     m_mapImage = mapImage;
0025 }
0026 
0027 #endif