12class ViewParamsPrivate
30 bool m_showAtmosphere;
35ViewParamsPrivate::ViewParamsPrivate()
38 , m_viewContext(
Still)
39 , m_mapQuality(m_stillQuality)
42 m_showAtmosphere(true)
47ViewParamsPrivate::~ViewParamsPrivate() =
default;
49ViewParams::ViewParams()
50 : d(new ViewParamsPrivate)
54ViewParams::~ViewParams()
59MapQuality ViewParams::mapQuality(ViewContext viewContext)
const
61 if (viewContext == Still)
62 return d->m_stillQuality;
64 Q_ASSERT(viewContext == Animation);
65 return d->m_animationQuality;
68MapQuality ViewParams::mapQuality()
const
70 return d->m_mapQuality;
73void ViewParams::setMapQualityForViewContext(MapQuality quality, ViewContext viewContext)
75 if (viewContext == Still) {
76 d->m_stillQuality = quality;
77 }
else if (viewContext == Animation) {
78 d->m_animationQuality = quality;
81 if (d->m_viewContext == viewContext) {
82 d->m_mapQuality = quality;
86ViewContext ViewParams::viewContext()
const
88 return d->m_viewContext;
91void ViewParams::setViewContext(ViewContext viewContext)
93 d->m_viewContext = viewContext;
95 if (viewContext == Still)
96 d->m_mapQuality = d->m_stillQuality;
97 if (viewContext == Animation)
98 d->m_mapQuality = d->m_animationQuality;
101bool ViewParams::showAtmosphere()
const
103 return d->m_showAtmosphere;
106void ViewParams::setShowAtmosphere(
bool showAtmosphere)
108 d->m_showAtmosphere = showAtmosphere;
111bool ViewParams::showClouds()
const
113 return d->m_showClouds;
116void ViewParams::setShowClouds(
bool const showClouds)
118 d->m_showClouds = showClouds;
This file contains the headers for ViewParameters.
Binds a QML item to a specific geodetic location in screen coordinates.
ViewContext
This enum is used to choose context in which map quality gets used.
MapQuality
This enum is used to choose the map quality shown in the view.
@ HighQuality
High quality (e.g. antialiasing for lines)
@ LowQuality
Low resolution (e.g. interlaced)