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 // Arbitrary defaults, as used in Marble
17 m_minimum( 900 ),
18 m_maximum( 2500 ),
19 m_discrete( false )
20{
21}
22
23int GeoSceneZoom::minimum() const
24{
25 return m_minimum;
26}
27
28void GeoSceneZoom::setMinimum( int minimum )
29{
30 m_minimum = minimum;
31}
32
33int GeoSceneZoom::maximum() const
34{
35 return m_maximum;
36}
37
38void GeoSceneZoom::setMaximum( int maximum )
39{
40 m_maximum = maximum;
41}
42
43bool GeoSceneZoom::discrete() const
44{
45 return m_discrete;
46}
47
48void GeoSceneZoom::setDiscrete( bool discrete )
49{
50 m_discrete = discrete;
51}
52
53const char *GeoSceneZoom::nodeType() const
54{
55 return GeoSceneTypes::GeoSceneZoomType;
56}
57
58}
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 Fri May 17 2024 11:49:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.