QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
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:
47
51 QgsAbstractRenderView( const QString &viewName );
52
57
59 virtual ~QgsAbstractRenderView();
60
65 virtual void updateWindowResize( int width, int height );
66
68 QPointer<Qt3DRender::QFrameGraphNode> topGraphNode() const;
69
71 virtual void setEnabled( bool enable );
72
74 virtual bool isEnabled() const;
75
76 protected:
77 QString mViewName;
78 QPointer<Qt3DRender::QFrameGraphNode> mRoot;
79 Qt3DRender::QSubtreeEnabler *mRendererEnabler = nullptr;
80};
81
82#endif // QGSABSTRACTRENDERVIEW_H
QPointer< Qt3DRender::QFrameGraphNode > mRoot
Qt3DRender::QSubtreeEnabler * mRendererEnabler
QPointer< Qt3DRender::QFrameGraphNode > topGraphNode() const
Returns the top node of this render view branch. Will be used to register the render view.
virtual void setEnabled(bool enable)
Enable or disable via enable the render view sub tree.
virtual bool isEnabled() const
Returns true if render view is enabled.
QgsAbstractRenderView(const QgsAbstractRenderView &other)=delete
Disabled copy constructor.
virtual void updateWindowResize(int width, int height)
Called when 3D window is resized.
QgsAbstractRenderView(const QString &viewName)
Constructor for QgsAbstractRenderView with the specified parent object.
QgsAbstractRenderView & operator=(const QgsAbstractRenderView &other)=delete
Disabled operator=.