QTechniqueFilter¶
A
QFrameGraphNode
used to select QTechniques to use. More…
Inherited by: QForwardRenderer
Synopsis¶
Functions¶
def
addMatch
(filterKey)def
addParameter
(p)def
matchAll
()def
parameters
()def
removeMatch
(filterKey)def
removeParameter
(p)
Detailed Description¶
A
QTechniqueFilter
specifies which techniques are used by the FrameGraph when rendering the entities.QTechniqueFilter
specifies a list ofQFilterKey
objects andQParameter
objects. WhenQTechniqueFilter
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 inQTechniqueFilter
override parameters inQMaterial
,QEffect
,QTechnique
andQRenderPass
, but are overridden by parameters inQRenderPassFilter
.
- class PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter([parent=None])¶
- param parent:
The constructor creates an instance with the specified
parent
.
- PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.addMatch(filterKey)¶
- Parameters:
filterKey –
PySide2.Qt3DRender.Qt3DRender.QFilterKey
Add the
filterKey
to the match vector.
- PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.addParameter(p)¶
- Parameters:
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:
filterKey –
PySide2.Qt3DRender.Qt3DRender.QFilterKey
Remove the
filterKey
from the match vector.
- PySide2.Qt3DRender.Qt3DRender.QTechniqueFilter.removeParameter(p)¶
- Parameters:
Remove
parameter
from the vector of parameters passed to the graphics pipeline.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.