File indexing completed on 2024-04-21 03:50:03
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2007 Inge Wallin <ingwa@kde.org> 0004 // SPDX-FileCopyrightText: 2008 Jens-Michael Hoffmann <jensmh@gmx.de> 0005 // 0006 0007 #ifndef MARBLE_VIEWPARAMS_H 0008 #define MARBLE_VIEWPARAMS_H 0009 0010 0011 /** @file 0012 * This file contains the headers for ViewParameters. 0013 * 0014 * @author Inge Wallin <inge@lysator.liu.se> 0015 */ 0016 0017 #include "MarbleGlobal.h" 0018 0019 0020 namespace Marble 0021 { 0022 0023 class ViewParamsPrivate; 0024 0025 /** 0026 * @short A public class that controls the painting of a MarbleWidget 0027 * 0028 */ 0029 0030 class ViewParams 0031 { 0032 public: 0033 ViewParams(); 0034 ~ViewParams(); 0035 0036 MapQuality mapQuality( ViewContext viewContext ) const; 0037 MapQuality mapQuality() const; 0038 void setMapQualityForViewContext( MapQuality quality, ViewContext viewContext ); 0039 0040 ViewContext viewContext() const; 0041 void setViewContext( ViewContext viewContext ); 0042 0043 bool showAtmosphere() const; 0044 void setShowAtmosphere( bool ); 0045 0046 bool showClouds() const; 0047 void setShowClouds( bool const ); 0048 0049 private: 0050 Q_DISABLE_COPY( ViewParams ) 0051 ViewParamsPrivate * const d; 0052 }; 0053 0054 } 0055 0056 #endif