QGIS API Documentation 3.43.0-Master (c67cf405802)
qgsabstractrenderview.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsabstractrenderview.h
3 --------------------------------------
4 Date : June 2024
5 Copyright : (C) 2024 by Benoit De Mezzo
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 QGSABSTRACTRENDERVIEW_H
17#define QGSABSTRACTRENDERVIEW_H
18
19#include "qgis_3d.h"
20
21#include <QObject>
22#include <QPointer>
23
24#define SIP_NO_FILE
25
26namespace Qt3DRender
27{
28 class QFrameGraphNode;
29 class QSubtreeEnabler;
30} // namespace Qt3DRender
31
44class _3D_EXPORT QgsAbstractRenderView
45{
46 public:
50 QgsAbstractRenderView( const QString &viewName );
51
56
58 virtual ~QgsAbstractRenderView();
59
64 virtual void updateWindowResize( int width, int height );
65
67 QPointer<Qt3DRender::QFrameGraphNode> topGraphNode() const;
68
70 virtual void setEnabled( bool enable );
71
73 virtual bool isEnabled() const;
74
75 protected:
76 QString mViewName;
77 QPointer<Qt3DRender::QFrameGraphNode> mRoot;
78 Qt3DRender::QSubtreeEnabler *mRendererEnabler = nullptr;
79};
80
81#endif // QGSABSTRACTRENDERVIEW_H
Base class for 3D render view.
QPointer< Qt3DRender::QFrameGraphNode > mRoot
QgsAbstractRenderView(const QgsAbstractRenderView &other)=delete
Disabled copy constructor.
QgsAbstractRenderView & operator=(const QgsAbstractRenderView &other)=delete
Disabled operator=.