11 return std::log(std::pow(2.0, zoomLevelForTileSize) *
tileSize / 256.0) * (1.0 / std::log(2.0));
43 return ((supportsBearing_ == rhs.supportsBearing_)
44 && (supportsRolling_ == rhs.supportsRolling_)
45 && (supportsTilting_ == rhs.supportsTilting_)
46 && (valid_ == rhs.valid_)
47 && (minZoom_ == rhs.minZoom_)
48 && (maxZoom_ == rhs.maxZoom_)
49 && (minTilt_ == rhs.minTilt_)
50 && (maxTilt_ == rhs.maxTilt_)
51 && (tileSize_ == rhs.tileSize_)
52 && (minimumFieldOfView_ == rhs.minimumFieldOfView_)
53 && (maximumFieldOfView_ == rhs.maximumFieldOfView_)
54 && (overzoomEnabled_ == rhs.overzoomEnabled_));
391#include "moc_qgeocameracapabilities_p.cpp"
double maximumFieldOfView_
bool operator==(const QGeoCameraCapabilitiesPrivate &rhs) const noexcept
double minimumFieldOfView_
void setSupportsBearing(bool supportsBearing)
Sets whether the associated plugin can render a map when the camera has an arbitrary bearing to suppo...
qreal maximumTilt
\qmlproperty qreal cameraCapabilities::maximumTilt
void setMaximumZoomLevel(double maximumZoomLevel)
bool overzoomEnabled() const
Returns whether overzooming is supported by the associated plugin.
bool supportsBearing() const
Returns whether the associated plugin can render a map when the camera has an arbitrary bearing.
qreal minimumZoomLevel
\qmlproperty qreal cameraCapabilities::minimumZoomLevel
QGeoCameraCapabilities & operator=(const QGeoCameraCapabilities &other) noexcept
Assigns the contents of other to this camera capabilities object and returns a reference to this came...
void setMaximumTilt(double maximumTilt)
double minimumZoomLevelAt256() const
QGeoCameraCapabilities()
\qmlvaluetype cameraCapabilities \inqmlmodule QtLocation
qreal maximumZoomLevel
\qmlproperty qreal cameraCapabilities::maximumZoomLevel
void setSupportsRolling(bool supportsRolling)
Sets whether the associated plugin can render a map when the camera is rolled to supportsRolling.
~QGeoCameraCapabilities()
Destroys this camera capabilities object.
void setMaximumFieldOfView(double maximumFieldOfView)
void setMinimumFieldOfView(double minimumFieldOfView)
void setTileSize(int tileSize)
void setOverzoomEnabled(bool overzoomEnabled)
Sets whether overzooming is supported by the associated plugin.
void setMinimumTilt(double minimumTilt)
bool supportsRolling() const
Returns whether the associated plugin can render a map when the camera is rolled.
void setMinimumZoomLevel(double minimumZoomLevel)
qreal maximumFieldOfView
\qmlproperty qreal cameraCapabilities::maximumFieldOfView
double maximumZoomLevelAt256() const
qreal minimumTilt
\qmlproperty qreal cameraCapabilities::minimumTilt
bool supportsTilting() const
Returns whether the associated plugin can render a map when the camera is tilted.
void setSupportsTilting(bool supportsTilting)
Sets whether the associated plugin can render a map when the camera is tilted to supportsTilting.
qreal minimumFieldOfView
\qmlproperty qreal cameraCapabilities::minimumFieldOfView
bool isValid() const
Returns whether this instance of the class is considered "valid".
const T * constData() const noexcept
Returns a const pointer to the shared data object.
Combined button and popup list for selecting options.
static double zoomLevelTo256(double zoomLevelForTileSize, double tileSize)
static QT_BEGIN_NAMESPACE const int tileSize
constexpr const T & qBound(const T &min, const T &val, const T &max)
#define QT_DEFINE_QSDP_SPECIALIZATION_DTOR(Class)