• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • lib
  • marble
TextureTile.h
Go to the documentation of this file.
1 /*
2 Copyright 2010 Jens-Michael Hoffmann <jmho@c-xx.com>
3 
4 Copyright 2012 Ander Pijoan <ander.pijoan@deusto.es>
5 
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
10 
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
15 
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef MARBLE_TEXTURETILE_H
21 #define MARBLE_TEXTURETILE_H
22 
23 #include <QDateTime>
24 #include <QImage>
25 
26 #include "Tile.h"
27 #include "TileId.h"
28 
29 class QImage;
30 
31 namespace Marble
32 {
33 class Blending;
34 
60 class TextureTile : public Tile
61 {
62  public:
63  TextureTile(TileId const & tileId, QImage const & image, const Blending * blending );
64  ~TextureTile();
65 
70  QImage const * image() const;
71 
78  Blending const * blending() const;
79 
80  int byteCount() const;
81 
82  private:
83  Q_DISABLE_COPY( TextureTile )
84 
85  QImage const m_image;
86  Blending const * const m_blending;
87 
88 };
89 
90 inline QImage const * TextureTile::image() const
91 {
92  return &m_image;
93 }
94 
95 inline Blending const * TextureTile::blending() const
96 {
97  return m_blending;
98 }
99 
100 inline int TextureTile::byteCount() const
101 {
102  return m_image.byteCount();
103 }
104 
105 }
106 
107 #endif // MARBLE_TEXTURETILE_H
TileId.h
Marble::Blending
Definition: Blending.h:25
Marble::TextureTile
A class that resembles an image tile (extends Tile).
Definition: TextureTile.h:60
Marble::TextureTile::blending
Blending const * blending() const
Returns the kind of blending used for the texture tile.
Definition: TextureTile.h:95
Marble::TextureTile::byteCount
int byteCount() const
Definition: TextureTile.h:100
Marble::TextureTile::image
QImage const * image() const
Returns the QImage that describes the look of the Tile.
Definition: TextureTile.h:90
Tile.h
QImage
Marble::TileId
Definition: TileId.h:27
Marble::TextureTile::TextureTile
TextureTile(TileId const &tileId, QImage const &image, const Blending *blending)
Definition: TextureTile.cpp:30
Marble::TextureTile::~TextureTile
~TextureTile()
Definition: TextureTile.cpp:38
QImage::byteCount
int byteCount() const
Marble::Tile
A class that resembles a tile (then it is extended to TextureTile or Vectortile). ...
Definition: Tile.h:53
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal