QRenderPassFilter Class

( Qt3DRender::QRenderPassFilter )

Provides storage for vectors of Filter Keys and Parameters. 更多...

头: #include <QRenderPassFilter>
qmake: QT += 3drender
Since: Qt 5.7
实例化: RenderPassFilter
继承: Qt3DRender::QFrameGraphNode

公共函数

QRenderPassFilter (Qt3DCore::QNode * parent = nullptr)
void addMatch (Qt3DRender::QFilterKey * filterKey )
void addParameter (Qt3DRender::QParameter * 参数 )
QVector<Qt3DRender::QFilterKey *> matchAny () const
QVector<Qt3DRender::QParameter *> 参数 () const
void removeMatch (Qt3DRender::QFilterKey * filterKey )
void removeParameter (Qt3DRender::QParameter * 参数 )

静态公共成员

const QMetaObject staticMetaObject

额外继承成员

详细描述

Provides storage for vectors of Filter Keys and Parameters.

A Qt3DRender::QRenderPassFilter FrameGraph node is used to select which Qt3DRender::QRenderPass objects are selected for drawing. QRenderPassFilter specifies a list of Qt3DRender::QFilterKey objects and Qt3DRender::QParameter objects. When QRenderPassFilter is present in the FrameGraph, only the QRenderPass objects, whose Qt3DRender::QFilterKey objects match the keys in QRenderPassFilter are selected for rendering. If no QRenderPassFilter is present, then all QRenderPass objects are selected for rendering. The parameters in the list can be used to set values for shader parameters. The parameters in QRenderPassFilter are overridden by parameters in QTechniqueFilter , QTechnique and QRenderPass .

成员函数文档编制

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

The constructor creates an instance with the specified parent .

void QRenderPassFilter:: addMatch ( Qt3DRender::QFilterKey * filterKey )

添加 filterKey to the match vector.

void QRenderPassFilter:: addParameter ( Qt3DRender::QParameter * 参数 )

Add the given 参数 to the parameter vector.

QVector < Qt3DRender::QFilterKey *> QRenderPassFilter:: matchAny () const

Returns a vector of the current keys for the filter.

QVector < Qt3DRender::QParameter *> QRenderPassFilter:: 参数 () const

Returns the current vector of parameters.

void QRenderPassFilter:: removeMatch ( Qt3DRender::QFilterKey * filterKey )

Remove the filterKey from the match vector.

void QRenderPassFilter:: removeParameter ( Qt3DRender::QParameter * 参数 )

Remove the given 参数 from the parameter vector.