File indexing completed on 2024-04-21 03:43:33

0001 /*
0002     SPDX-FileCopyrightText: 2022 Jasem Mutlaq
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 #include <QGraphicsScene>
0011 
0012 class Projector;
0013 
0014 namespace Ekos
0015 {
0016 class MosaicTilesManager;
0017 class MosaicRenderer : public QObject
0018 {
0019         Q_OBJECT
0020     public:
0021         explicit MosaicRenderer();
0022         bool render(uint16_t w, uint16_t h, QImage *image, const Projector *m_proj);
0023 
0024     signals:
0025 
0026     public slots:
0027 
0028     private:
0029 
0030       Projector *m_Projecter {nullptr};
0031       MosaicTilesManager *m_TilesManager {nullptr};
0032 
0033       QGraphicsScene m_TilesScene;
0034 };
0035 }