SubtreeEnabler QML Type

Enables or disables entire subtrees of frame graph nodes. More...

Import Statement: import Qt3D.Render 2.9
In C++: QSubtreeEnabler
Inherits:

FrameGraphNode

Status: Deprecated

Properties

Methods

Detailed Description

While FrameGraphNodes can be individually enabled and disabled via the enabled property, this can become tedious when an entire path needs to be turned on or off. SubtreeEnabler is a convenience node that makes this use case trivial, allowing all of its children to be controlled by a single switch.

For example, the following simplified frame graph includes a subtree for debug rendering that can easily be enabled only when debugging.

SubtreeEnabler is enabled by default.

Property Documentation

enablement : enumeration

Controls whether subtree enablement is persistent or transient.

ConstantDescription
PersistentThe value of enabled is persistent. This is the default.
SingleShotThe value of enabled will last for a single frame and then be reset to false. This might be used for a subtree drawing to an FBO, for example, to only update the FBO when the relevant portions of the scene changed.

Method Documentation

void requestUpdate()

Requests that the subtree be enabled.

A conveninence method intended to be used with SingleShot enablement.


© 2024 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.