QRenderSettings Class
(Qt3DRender::QRenderSettings)The QRenderSettings class holds settings related to rendering process and host the active FrameGraph. More...
Header: | #include <QRenderSettings> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
Instantiated By: | RenderSettings |
Inherits: | Qt3DCore::QComponent |
Public Types
enum | RenderPolicy { OnDemand, Always } |
Properties
- activeFrameGraph : Qt3DRender::QFrameGraphNode *
- pickingSettings : Qt3DRender::QPickingSettings * const
- renderPolicy : RenderPolicy
- 1 property inherited from Qt3DCore::QComponent
- 2 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QRenderSettings(Qt3DCore::QNode *parent = nullptr) | |
QFrameGraphNode * | activeFrameGraph() const |
QPickingSettings * | pickingSettings() |
RenderPolicy | renderPolicy() const |
- 2 public functions inherited from Qt3DCore::QComponent
- 6 public functions inherited from Qt3DCore::QNode
- 31 public functions inherited from QObject
Public Slots
void | setActiveFrameGraph(QFrameGraphNode *activeFrameGraph) |
void | setRenderPolicy(RenderPolicy renderPolicy) |
- 1 public slot inherited from Qt3DCore::QComponent
- 2 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | activeFrameGraphChanged(QFrameGraphNode *activeFrameGraph) |
void | renderPolicyChanged(RenderPolicy renderPolicy) |
- 1 signal inherited from Qt3DCore::QComponent
- 3 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Additional Inherited Members
- 11 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
The QRenderSettings class holds settings related to rendering process and host the active FrameGraph.
The QRenderSettings component must be set as a component of the scene root entity. It specifies render policy and picking settings, as well as hosts the active FrameGraph.
Member Type Documentation
enum QRenderSettings::RenderPolicy
The render policy.
Constant | Value | Description |
---|---|---|
Qt3DRender::QRenderSettings::OnDemand | 0 | The FrameGraph is rendered only when something changes. |
Qt3DRender::QRenderSettings::Always | 1 | The FrameGraph is rendered continuously, even if nothing has changed. |
Property Documentation
activeFrameGraph : Qt3DRender::QFrameGraphNode *
Holds the currently active FrameGraph.
Access functions:
QFrameGraphNode * | activeFrameGraph() const |
void | setActiveFrameGraph(QFrameGraphNode *activeFrameGraph) |
Notifier signal:
void | activeFrameGraphChanged(QFrameGraphNode *activeFrameGraph) |
pickingSettings : Qt3DRender::QPickingSettings * const
Holds the current pick settings for the FrameGraph.
Access functions:
QPickingSettings * | pickingSettings() |
renderPolicy : RenderPolicy
Holds the current render policy.
Access functions:
RenderPolicy | renderPolicy() const |
void | setRenderPolicy(RenderPolicy renderPolicy) |
Notifier signal:
void | renderPolicyChanged(RenderPolicy renderPolicy) |
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.