File indexing completed on 2025-01-05 03:58:43
0001 // SPDX-FileCopyrightText: 2010 Jens-Michael Hoffmann <jmho@c-xx.com> 0002 // 0003 // SPDX-License-Identifier: LGPL-2.1-or-later 0004 0005 #ifndef MARBLE_BLENDING_FACTORY_H 0006 #define MARBLE_BLENDING_FACTORY_H 0007 0008 #include <QHash> 0009 0010 class QString; 0011 0012 namespace Marble 0013 { 0014 class Blending; 0015 class SunLightBlending; 0016 class SunLocator; 0017 0018 class BlendingFactory 0019 { 0020 public: 0021 explicit BlendingFactory( const SunLocator *sunLocator ); 0022 ~BlendingFactory(); 0023 0024 void setLevelZeroLayout( int levelZeroColumns, int levelZeroRows ); 0025 0026 Blending const * findBlending( QString const & name ) const; 0027 0028 private: 0029 Q_DISABLE_COPY(BlendingFactory) 0030 SunLightBlending *const m_sunLightBlending; 0031 QHash<QString, Blending const *> m_blendings; 0032 }; 0033 0034 } 0035 0036 #endif