Qt3DRender.QTechniqueFilter

A QFrameGraphNode used to select QTechniques to use. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter

Inherited by: Qt3DExtras.QForwardRenderer

Synopsis

Functions

Detailed Description

A QTechniqueFilter specifies which techniques are used by the FrameGraph when rendering the entities. QTechniqueFilter specifies a list of QFilterKey objects and 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 .

class PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter([parent=None])
param parent

QNode

The constructor creates an instance with the specified parent .

PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.addMatch(filterKey)
Parameters

filterKeyQFilterKey

Add the filterKey to the match vector.

PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.addParameter(p)
Parameters

pQParameter

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

PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.matchAll()
Return type

Returns a vector of the current keys for the filter.

PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.parameters()
Return type

Returns the current vector of parameters.

PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.removeMatch(filterKey)
Parameters

filterKeyQFilterKey

Remove the filterKey from the match vector.

PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.removeParameter(p)
Parameters

pQParameter

Remove parameter from the vector of parameters passed to the graphics pipeline.