• 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
TextureColorizer.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2004-2007 Torsten Rahn <tackat@kde.org>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 //
11 
12 //
13 // The TextureColorizer maps the Elevationvalues to Legend Colors.
14 //
15 
16 #ifndef MARBLE_TEXTURECOLORIZER_H
17 #define MARBLE_TEXTURECOLORIZER_H
18 
19 #include "MarbleGlobal.h"
20 #include "GeoDataDocument.h"
21 #include "GeoPainter.h"
22 
23 #include <QString>
24 #include <QImage>
25 #include <QPen>
26 #include <QBrush>
27 
28 namespace Marble
29 {
30 
31 class ViewportParams;
32 
33 class TextureColorizer
34 {
35  public:
36  TextureColorizer( const QString &seafile,
37  const QString &landfile );
38 
39  virtual ~TextureColorizer(){}
40 
41  void addSeaDocument( const GeoDataDocument *seaDocument );
42 
43  void addLandDocument( const GeoDataDocument *landDocument );
44 
45  void setShowRelief( bool show );
46 
47  static void drawIndividualDocument( GeoPainter *painter, const GeoDataDocument *document );
48 
49  void drawTextureMap( GeoPainter *painter );
50 
51  void colorize( QImage *origimg, const ViewportParams *viewport, MapQuality mapQuality );
52 
53  void setPixel( const QRgb *coastData, QRgb *writeData, int bump, uchar grey );
54 
55  private:
56  QString m_seafile;
57  QString m_landfile;
58  QList<const GeoDataDocument*> m_seaDocuments;
59  QList<const GeoDataDocument*> m_landDocuments;
60  QImage m_coastImage;
61  uint texturepalette[16][512];
62  bool m_showRelief;
63  QRgb m_landColor;
64  QRgb m_seaColor;
65 };
66 
67 }
68 
69 #endif
GeoDataDocument.h
Marble::TextureColorizer::drawIndividualDocument
static void drawIndividualDocument(GeoPainter *painter, const GeoDataDocument *document)
Definition: TextureColorizer.cpp:182
Marble::GeoDataDocument
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
Marble::TextureColorizer::TextureColorizer
TextureColorizer(const QString &seafile, const QString &landfile)
Definition: TextureColorizer.cpp:70
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::TextureColorizer::setShowRelief
void setShowRelief(bool show)
Definition: TextureColorizer.cpp:160
Marble::TextureColorizer::colorize
void colorize(QImage *origimg, const ViewportParams *viewport, MapQuality mapQuality)
Definition: TextureColorizer.cpp:228
Marble::TextureColorizer::addLandDocument
void addLandDocument(const GeoDataDocument *landDocument)
Definition: TextureColorizer.cpp:155
Marble::MapQuality
MapQuality
This enum is used to choose the map quality shown in the view.
Definition: MarbleGlobal.h:82
Marble::TextureColorizer::addSeaDocument
void addSeaDocument(const GeoDataDocument *seaDocument)
Definition: TextureColorizer.cpp:150
Marble::TextureColorizer::~TextureColorizer
virtual ~TextureColorizer()
Definition: TextureColorizer.h:39
QString
QList
GeoPainter.h
MarbleGlobal.h
Marble::TextureColorizer::drawTextureMap
void drawTextureMap(GeoPainter *painter)
Definition: TextureColorizer.cpp:211
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
Marble::TextureColorizer
Definition: TextureColorizer.h:33
QImage
Marble::TextureColorizer::setPixel
void setPixel(const QRgb *coastData, QRgb *writeData, int bump, uchar grey)
Definition: TextureColorizer.cpp:355
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