marble
NwwMapImage.cpp
Go to the documentation of this file.
152 double const lowerMidRed = ( 1.0 - fractionX ) * qRed( lowerLeftPixel ) + fractionX * qRed( lowerRightPixel );
153 double const lowerMidGreen = ( 1.0 - fractionX ) * qGreen( lowerLeftPixel ) + fractionX * qGreen( lowerRightPixel );
154 double const lowerMidBlue = ( 1.0 - fractionX ) * qBlue( lowerLeftPixel ) + fractionX * qBlue( lowerRightPixel );
155 double const lowerMidAlpha = ( 1.0 - fractionX ) * qAlpha( lowerLeftPixel ) + fractionX * qAlpha( lowerRightPixel );
157 double const upperMidRed = ( 1.0 - fractionX ) * qRed( upperLeftPixel ) + fractionX * qRed( upperRightPixel );
158 double const upperMidGreen = ( 1.0 - fractionX ) * qGreen( upperLeftPixel ) + fractionX * qGreen( upperRightPixel );
159 double const upperMidBlue = ( 1.0 - fractionX ) * qBlue( upperLeftPixel ) + fractionX * qBlue( upperRightPixel );
160 double const upperMidAlpha = ( 1.0 - fractionX ) * qAlpha( upperLeftPixel ) + fractionX * qAlpha( upperRightPixel );
std::string toStdString() const
bool load(QIODevice *device, const char *format)
T * object(const Key &key) const
void setMaxCost(int cost)
NwwMapImage(QDir const &baseDirectory, int const tileLevel)
Definition: NwwMapImage.cpp:8
const_iterator insert(const T &value)
Definition: InterpolationMethod.h:8
bool exists() const
void setCacheSizeBytes(int const cacheSizeBytes)
Definition: NwwMapImage.cpp:60
QString path() const
virtual QRgb interpolate(double const x, double const y)=0
virtual QRgb pixel(double const lonRad, double const latRad)
Definition: NwwMapImage.cpp:30
bool insert(const Key &key, T *object, int cost)
void setBaseDirectory(QDir const &baseDirectory)
Definition: NwwMapImage.cpp:55
bool contains(const T &value) const
void setInterpolationMethod(InterpolationMethod *const method)
Definition: NwwMapImage.cpp:65
void setMapImage(ReadOnlyMapImage *const mapImage)
Definition: InterpolationMethod.h:22
int byteCount() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.