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