File indexing completed on 2024-10-06 03:35:52
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2016 Torsten Rahn <tackat@kde.org> 0004 // 0005 0006 #ifndef TILEPROCESSOR_H 0007 #define TILEPROCESSOR_H 0008 0009 #include <QObject> 0010 #include <QColor> 0011 #include <QImage> 0012 0013 0014 class TileProcessor : public QObject 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit TileProcessor(QObject *parent = nullptr); 0019 0020 public: 0021 0022 void parseFileList(const QString& fileListUrl); 0023 0024 void loadReferenceImages(const QString& maskPath, const QString& bathymetryPath); 0025 0026 void process(); 0027 0028 private: 0029 void colorForFile(const QString& filePath); 0030 0031 QStringList m_fileList; 0032 0033 QImage m_mask; 0034 QImage m_bathymetry; 0035 0036 int m_tileLevel; 0037 static int progress; 0038 0039 }; 0040 0041 #endif // TILEPROCESSOR_H