Marble

GeoSceneZoom.cpp
1 /*
2  SPDX-FileCopyrightText: 2008 Torsten Rahn <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "GeoSceneZoom.h"
8 
9 #include "GeoSceneTypes.h"
10 
11 namespace Marble
12 {
13 
14 GeoSceneZoom::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 
23 int GeoSceneZoom::minimum() const
24 {
25  return m_minimum;
26 }
27 
28 void GeoSceneZoom::setMinimum( int minimum )
29 {
30  m_minimum = minimum;
31 }
32 
33 int GeoSceneZoom::maximum() const
34 {
35  return m_maximum;
36 }
37 
38 void GeoSceneZoom::setMaximum( int maximum )
39 {
40  m_maximum = maximum;
41 }
42 
43 bool GeoSceneZoom::discrete() const
44 {
45  return m_discrete;
46 }
47 
48 void GeoSceneZoom::setDiscrete( bool discrete )
49 {
50  m_discrete = discrete;
51 }
52 
53 const char *GeoSceneZoom::nodeType() const
54 {
55  return GeoSceneTypes::GeoSceneZoomType;
56 }
57 
58 }
const char * nodeType() const override
Provides type information for downcasting a GeoNode.
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.