QLayerFilter Class

( Qt3DRender::QLayerFilter )

Controls layers Drawn in a frame graph branch. 更多...

頭: #include <QLayerFilter>
qmake: QT += 3drender
Since: Qt 5.5
實例化: LayerFilter
繼承: Qt3DRender::QFrameGraphNode

公共函數

QLayerFilter (Qt3DCore::QNode * parent = nullptr)
void addLayer (QLayer * layer )
QVector<QLayer *> layers () const
void removeLayer (QLayer * layer )

保護函數

QLayerFilter (QLayerFilterPrivate & dd , Qt3DCore::QNode * parent = nullptr)

額外繼承成員

詳細描述

Controls layers Drawn in a frame graph branch.

A Qt3DRender::QLayerFilter can be used to instruct the renderer as to which layer(s) to draw in that branch of the frame graph. The Qt3DRender::QLayerFilter selects which entities to draw based on the Qt3DRender::QLayer instances added to the QLayerFilter and as components to the Qt3DCore::QEntity .

成員函數文檔編製

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

Default constructs an instance of QLayerFilter.

[protected] QLayerFilter:: QLayerFilter ( QLayerFilterPrivate & dd , Qt3DCore::QNode * parent = nullptr)

Copy constructor.

void QLayerFilter:: addLayer ( QLayer * layer )

添加 layer to the current list of layers

QVector < QLayer *> QLayerFilter:: layers () const

Returns the current list of layers

void QLayerFilter:: removeLayer ( QLayer * layer )

移除 layer from the current list of layers