QTechniqueFilter Class

( Qt3DRender::QTechniqueFilter )

A QFrameGraphNode used to select QTechniques to use. 更多...

头: #include <QTechniqueFilter>
qmake: QT += 3drender
Since: Qt 5.7
实例化: TechniqueFilter
继承: Qt3DRender::QFrameGraphNode
继承者: Qt3DExtras::QForwardRenderer

公共函数

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

静态公共成员

const QMetaObject staticMetaObject

额外继承成员

详细描述

A QFrameGraphNode used to select QTechniques to use.

A Qt3DRender::QTechniqueFilter specifies which techniques are used by the FrameGraph when rendering the entities. QTechniqueFilter specifies a list of Qt3DRender::QFilterKey objects and Qt3DRender::QParameter objects. When QTechniqueFilter is present in the FrameGraph, only the techiques matching the keys in the list are used for rendering. The parameters in the list can be used to set values for shader parameters. The parameters in QTechniqueFilter are overridden by parameters in QTechnique and QRenderPass .

成员函数文档编制

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

The constructor creates an instance with the specified parent .

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

添加 filterKey to the match vector.

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

Add 参数 to the vector of parameters that will be passed to the graphics pipeline.

QVector < Qt3DRender::QFilterKey *> QTechniqueFilter:: matchAll () const

Returns a vector of the current keys for the filter.

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

Returns the current vector of parameters.

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

Remove the filterKey from the match vector.

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

移除 参数 from the vector of parameters passed to the graphics pipeline.