Marble

GeoSceneZoom.cpp
1/*
2 SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "GeoSceneZoom.h"
8
9#include "GeoSceneTypes.h"
10
11namespace Marble
12{
13
14GeoSceneZoom::GeoSceneZoom()
15 : GeoNode()
16 ,
17 // Arbitrary defaults, as used in Marble
18 m_minimum(900)
19 , m_maximum(2500)
20 , m_discrete(false)
21{
22}
23
24int GeoSceneZoom::minimum() const
25{
26 return m_minimum;
27}
28
29void GeoSceneZoom::setMinimum(int minimum)
30{
31 m_minimum = minimum;
32}
33
34int GeoSceneZoom::maximum() const
35{
36 return m_maximum;
37}
38
39void GeoSceneZoom::setMaximum(int maximum)
40{
41 m_maximum = maximum;
42}
43
44bool GeoSceneZoom::discrete() const
45{
46 return m_discrete;
47}
48
49void GeoSceneZoom::setDiscrete(bool discrete)
50{
51 m_discrete = discrete;
52}
53
54const char *GeoSceneZoom::nodeType() const
55{
56 return GeoSceneTypes::GeoSceneZoomType;
57}
58
59}
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.