File indexing completed on 2025-01-05 03:59:11
0001 /* 0002 SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "GeoSceneZoom.h" 0008 0009 #include "GeoSceneTypes.h" 0010 0011 namespace Marble 0012 { 0013 0014 GeoSceneZoom::GeoSceneZoom() 0015 : GeoNode(), 0016 // Arbitrary defaults, as used in Marble 0017 m_minimum( 900 ), 0018 m_maximum( 2500 ), 0019 m_discrete( false ) 0020 { 0021 } 0022 0023 int GeoSceneZoom::minimum() const 0024 { 0025 return m_minimum; 0026 } 0027 0028 void GeoSceneZoom::setMinimum( int minimum ) 0029 { 0030 m_minimum = minimum; 0031 } 0032 0033 int GeoSceneZoom::maximum() const 0034 { 0035 return m_maximum; 0036 } 0037 0038 void GeoSceneZoom::setMaximum( int maximum ) 0039 { 0040 m_maximum = maximum; 0041 } 0042 0043 bool GeoSceneZoom::discrete() const 0044 { 0045 return m_discrete; 0046 } 0047 0048 void GeoSceneZoom::setDiscrete( bool discrete ) 0049 { 0050 m_discrete = discrete; 0051 } 0052 0053 const char *GeoSceneZoom::nodeType() const 0054 { 0055 return GeoSceneTypes::GeoSceneZoomType; 0056 } 0057 0058 }