/usr/include/marble/TileCreator.h is in libmarble-dev 4:4.8.2-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | //
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2004-2007 Torsten Rahn <tackat@kde.org>
// Copyright 2007-2008 Inge Wallin <ingwa@kde.org>
//
#ifndef MARBLE_TILECREATOR_H
#define MARBLE_TILECREATOR_H
#include <QtCore/QString>
#include <QtCore/QThread>
#include <QtCore/QSize>
#include <QtGui/QImage>
#include "marble_export.h"
namespace Marble
{
class TileCreatorPrivate;
/**
* Base Class for custom tile source
*
* Implement this class to have more control over the tile creating process. This
* is needed when creating with a high tileLevel where the whole source image can't
* be loaded at once.
**/
class MARBLE_EXPORT TileCreatorSource
{
public:
virtual ~TileCreatorSource() {}
/**
* Must return the full size of the source image
*/
virtual QSize fullImageSize() const = 0;
/**
* Must return one specific tile
*
* tileLevel can be used to calculate the number of tiles in a row or column
*/
virtual QImage tile( int n, int m, int tileLevel ) = 0;
};
class MARBLE_EXPORT TileCreator : public QThread
{
Q_OBJECT
public:
/**
* Constructor for standard Image source
*/
TileCreator( const QString& sourceDir, const QString& installMap,
const QString& dem, const QString& targetDir=QString() );
/**
* Constructor for own, custom source class
*
* Ownership of source is taken by TileCreator
*/
TileCreator( TileCreatorSource *source, const QString& dem, const QString& targetDir );
virtual ~TileCreator();
void cancelTileCreation();
void setTileFormat( const QString &format );
void setTileQuality( int quality );
void setResume( bool resume );
void setVerifyExactResult( bool verify );
QString tileFormat() const;
int tileQuality() const;
bool resume() const;
bool verifyExactResult() const;
protected:
virtual void run();
Q_SIGNALS:
void progress( int value );
private:
Q_DISABLE_COPY( TileCreator )
TileCreatorPrivate * const d;
};
}
#endif
|