QGIS API Documentation 4.3.0-Master (1930e81c918)
Loading...
Searching...
No Matches
qgsrubberbandrenderview.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsrubberbandrenderview.h
3 --------------------------------------
4 Date : June 2026
5 Copyright : (C) 2026 by Benoit De Mezzo and (C) 2020 by Belgacem Nedjima
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 QGSRUBBERBANDRENDERVIEW_H
17#define QGSRUBBERBANDRENDERVIEW_H
18
20
21#define SIP_NO_FILE
22
23namespace Qt3DRender
24{
25 class QLayer;
26 class QCamera;
27 class QTexture2D;
28 class QRenderTargetSelector;
29 class QRenderTarget;
30} // namespace Qt3DRender
31
32namespace Qt3DCore
33{
34 class QEntity;
35} // namespace Qt3DCore
36
50{
51 public:
53 QgsRubberBandRenderView( const QString &viewName, Qt3DRender::QCamera *mainCamera, Qt3DCore::QEntity *rootSceneEntity, Qt3DRender::QRenderTarget *fwdRenderTarget );
54
56 Qt3DCore::QEntity *rubberBandEntity() const;
57
59 Qt3DRender::QRenderTargetSelector *renderTargetSelector() const;
60
61 private:
62 Qt3DRender::QLayer *mLayer = nullptr;
63 Qt3DRender::QCamera *mMainCamera = nullptr;
64 Qt3DRender::QRenderTargetSelector *mRenderTargetSelector = nullptr;
65 Qt3DCore::QEntity *mRootEntity = nullptr;
66
67 void constructRenderPass( Qt3DRender::QRenderTarget *fwdRenderTarget ); //#spellok
68};
69
70#endif // QGSRUBBERBANDRENDERVIEW_H
QgsAbstractRenderView(const QString &viewName)
Constructor for QgsAbstractRenderView with the specified parent object.
Qt3DRender::QRenderTargetSelector * renderTargetSelector() const
Returns rubberband tard selector.
QgsRubberBandRenderView(const QString &viewName, Qt3DRender::QCamera *mainCamera, Qt3DCore::QEntity *rootSceneEntity, Qt3DRender::QRenderTarget *fwdRenderTarget)
Default constructor.
Qt3DCore::QEntity * rubberBandEntity() const
Returns entity for all rubber bands (to show them always on top).