QGIS API Documentation 4.1.0-Master (9af12b5a203)
Loading...
Searching...
No Matches
qgslayerstylewatcher.h
Go to the documentation of this file.
1/***************************************************************************
2 qgslayerstylewatcher.h
3 --------------------------------------
4 Date : May 2026
5 Copyright : (C) 2026 by Oslandia
6 Email : benoit dot de dot mezzo at oslandia dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSLAYERSTYLEWATCHER_H
17#define QGSLAYERSTYLEWATCHER_H
18
20
21//
22// W A R N I N G
23// -------------
24//
25// This file is not part of the QGIS API. It exists purely as an
26// implementation detail. This header file may change from version to
27// version without notice, or even be removed.
28//
29
30#include "qgs3dmapsceneentity.h"
31#include "qgsraycasthit.h"
32
33#include <QMatrix4x4>
34#include <QTime>
35
36#define SIP_NO_FILE
37
48class QgsLayerStyleWatcher : public QObject
49{
50 Q_OBJECT
51
52 public:
57 QgsLayerStyleWatcher( Qgs3DMapSettings *mapSettings );
58
59 signals:
67 void styleChanged();
68
69 private slots:
70 void onLayersChanged();
71 void onLayer3DRendererChanged();
72 void onLayerRepaintRequested();
73 void onLayerDestroyed();
74
75 protected:
76 Qgs3DMapSettings *mMapSettings = nullptr;
78 QHash<QgsMapLayer *, bool> mLayers;
79};
80
82
83#endif // QGSLAYERSTYLEWATCHER_H