Marble

SunLightBlending.h
1 // SPDX-FileCopyrightText: 2010 Jens-Michael Hoffmann <[email protected]>
2 //
3 // SPDX-License-Identifier: LGPL-2.1-or-later
4 
5 #ifndef MARBLE_SUN_LIGHT_BLENDING_H
6 #define MARBLE_SUN_LIGHT_BLENDING_H
7 
8 #include <QtGlobal>
9 
10 #include "Blending.h"
11 
12 namespace Marble
13 {
14 
15 class SunLocator;
16 
17 class SunLightBlending: public Blending
18 {
19  public:
20  explicit SunLightBlending( const SunLocator * sunLocator );
21  ~SunLightBlending() override;
22  void blend( QImage * const bottom, TextureTile const * const top ) const override;
23 
24  void setLevelZeroLayout( int levelZeroColumns, int levelZeroRows );
25 
26  private:
27  static int maxDivisor( int maximum, int fullLength );
28  const SunLocator * const m_sunLocator;
29  int m_levelZeroColumns;
30  int m_levelZeroRows;
31 };
32 
33 }
34 
35 #endif
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 Wed Oct 4 2023 04:09:43 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.