QRenderSettings Class

( Qt3DRender::QRenderSettings )

The QRenderSettings class holds settings related to rendering process and host the active FrameGraph . 更多...

头: #include <QRenderSettings>
qmake: QT += 3drender
Since: Qt 5.7
实例化: RenderSettings
继承: Qt3DCore::QComponent

公共类型

enum RenderPolicy { OnDemand, Always }

特性

公共函数

QRenderSettings (Qt3DCore::QNode * parent = nullptr)
QFrameGraphNode * activeFrameGraph () const
QPickingSettings * pickingSettings ()
RenderPolicy renderPolicy () const

公共槽

void setActiveFrameGraph (QFrameGraphNode * activeFrameGraph )
void setRenderPolicy (RenderPolicy renderPolicy )

信号

void activeFrameGraphChanged (QFrameGraphNode * activeFrameGraph )
void renderPolicyChanged (RenderPolicy renderPolicy )

额外继承成员

详细描述

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 .

成员类型文档编制

enum QRenderSettings:: RenderPolicy

The render policy.

常量 描述
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.

特性文档编制

activeFrameGraph : Qt3DRender::QFrameGraphNode *

Holds the currently active FrameGraph .

访问函数:

QFrameGraphNode * activeFrameGraph () const
void setActiveFrameGraph (QFrameGraphNode * activeFrameGraph )

通知程序信号:

void activeFrameGraphChanged (QFrameGraphNode * activeFrameGraph )

pickingSettings : Qt3DRender::QPickingSettings * const

Holds the current pick settings for the FrameGraph .

访问函数:

QPickingSettings * pickingSettings ()

renderPolicy : RenderPolicy

Holds the current render policy.

访问函数:

RenderPolicy renderPolicy () const
void setRenderPolicy (RenderPolicy renderPolicy )

通知程序信号:

void renderPolicyChanged (RenderPolicy renderPolicy )

成员函数文档编制

QRenderSettings:: QRenderSettings ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QRenderSettings.