QLayerFilter Class

(Qt3DRender::QLayerFilter)

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

头文件: #include <QLayerFilter>
qmake: QT += 3drender
开始支持版本: Qt 5.5
Instantiated By: 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)

Add layer to the current list of layers

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

Returns the current list of layers

void QLayerFilter::removeLayer(QLayer *layer)

Remove layer from the current list of layers