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

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
TileCreator.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-2008 Inge Wallin <ingwa@kde.org>
10 //
11 
12 #ifndef MARBLE_TILECREATOR_H
13 #define MARBLE_TILECREATOR_H
14 
15 
16 #include <QString>
17 #include <QThread>
18 #include <QSize>
19 #include <QImage>
20 
21 #include "marble_export.h"
22 
23 namespace Marble
24 {
25 
26 class TileCreatorPrivate;
27 
35 class MARBLE_EXPORT TileCreatorSource
36 {
37 public:
38  virtual ~TileCreatorSource() {}
39 
43  virtual QSize fullImageSize() const = 0;
44 
50  virtual QImage tile( int n, int m, int tileLevel ) = 0;
51 };
52 
53 class MARBLE_EXPORT TileCreator : public QThread
54 {
55  Q_OBJECT
56 
57  public:
61  TileCreator( const QString& sourceDir, const QString& installMap,
62  const QString& dem, const QString& targetDir=QString() );
63 
69  TileCreator( TileCreatorSource *source, const QString& dem, const QString& targetDir );
70 
71  virtual ~TileCreator();
72 
73  void cancelTileCreation();
74 
75  void setTileFormat( const QString &format );
76  void setTileQuality( int quality );
77  void setResume( bool resume );
78  void setVerifyExactResult( bool verify );
79  QString tileFormat() const;
80  int tileQuality() const;
81  bool resume() const;
82  bool verifyExactResult() const;
83 
84  protected:
85  virtual void run();
86 
87  Q_SIGNALS:
88  void progress( int value );
89 
90 
91  private:
92  Q_DISABLE_COPY( TileCreator )
93  TileCreatorPrivate * const d;
94 };
95 
96 }
97 
98 #endif
Marble::TileCreatorSource
Base Class for custom tile source.
Definition: TileCreator.h:35
Marble::TileCreatorSource::~TileCreatorSource
virtual ~TileCreatorSource()
Definition: TileCreator.h:38
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::TileCreator
Definition: TileCreator.h:53
marble_export.h
QThread
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:53 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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