QTechniqueFilter Class
(Qt3DRender::QTechniqueFilter)A QFrameGraphNode used to select QTechniques to use. More...
Header: | #include <QTechniqueFilter> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
Instantiated By: | TechniqueFilter |
Inherits: | Qt3DRender::QFrameGraphNode |
Inherited By: |
Public Functions
QTechniqueFilter(Qt3DCore::QNode *parent = nullptr) | |
void | addMatch(Qt3DRender::QFilterKey *filterKey) |
void | addParameter(Qt3DRender::QParameter *parameter) |
QVector<Qt3DRender::QFilterKey *> | matchAll() const |
QVector<Qt3DRender::QParameter *> | parameters() const |
void | removeMatch(Qt3DRender::QFilterKey *filterKey) |
void | removeParameter(Qt3DRender::QParameter *parameter) |
- 1 public function inherited from Qt3DRender::QFrameGraphNode
- 13 public functions inherited from Qt3DCore::QNode
- 31 public functions inherited from QObject
Static Public Members
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Additional Inherited Members
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
- 1 protected function inherited from Qt3DRender::QFrameGraphNode
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
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.
Member Function Documentation
QTechniqueFilter::QTechniqueFilter(Qt3DCore::QNode *parent = nullptr)
The constructor creates an instance with the specified parent.
void QTechniqueFilter::addMatch(Qt3DRender::QFilterKey *filterKey)
Add the filterKey to the match vector.
void QTechniqueFilter::addParameter(Qt3DRender::QParameter *parameter)
Add parameter 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::parameters() 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 *parameter)
Remove parameter from the vector of parameters passed to the graphics pipeline.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.12/qt3drender-qtechniquefilter.html