diff options
author | Antti Määttä <antti.maatta@qt.io> | 2016-09-05 15:40:00 +0300 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2017-01-10 07:09:23 +0000 |
commit | 24373c8bd0f7c754f3e982132a7debd6a6b77ed6 (patch) | |
tree | 101a254e924e749a8cb45bd0060cad8bb08b7e56 | |
parent | d2215e0986395539ea5dcf63d8bd1bc1b41d3de7 (diff) |
Update QTechniqueFilter docs
Change-Id: I9d345e8cdc00e9178d2bda23d112f78b85c563ca
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r-- | src/render/framegraph/qtechniquefilter.cpp | 51 |
1 files changed, 43 insertions, 8 deletions
diff --git a/src/render/framegraph/qtechniquefilter.cpp b/src/render/framegraph/qtechniquefilter.cpp index 8cc6a28a7..639a6cd15 100644 --- a/src/render/framegraph/qtechniquefilter.cpp +++ b/src/render/framegraph/qtechniquefilter.cpp @@ -61,11 +61,46 @@ QTechniqueFilterPrivate::QTechniqueFilterPrivate() \class Qt3DRender::QTechniqueFilter \inmodule Qt3DRender \since 5.7 - \brief Provides storage for vectors of Filter Keys and Parameters + \brief 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. */ /*! - The constructor creates an instance with the specified \a parent. + \qmltype TechniqueFilter + \inmodule Qt3D.Render + \instantiates Qt3DRender::QTechniqueFilter + \inherits FrameGraphNode + \since 5.7 + \brief A FrameGraphNode used to select used Techniques + + A TechniqueFilter specifies which techniques are used by the FrameGraph + when rendering the entities. TechniqueFilter specifies + a list of FilterKey objects and Parameter objects. + When TechniqueFilter is present in the FrameGraph, only the techiques matching + the keys in list are used for rendering. The parameters in the list can be used + to set values for shader parameters. The parameters in TechniqueFilter are + overridden by parameters in Technique and RenderPass. +*/ + +/*! + \qmlproperty list<FilterKey> TechniqueFilter::matchAll + Holds the list of filterkeys used by the TechiqueFilter +*/ + +/*! + \qmlproperty list<Parameter> TechniqueFilter::parameters + Holds the list of parameters used by the TechiqueFilter +*/ + +/*! + The constructor creates an instance with the specified \a parent. */ QTechniqueFilter::QTechniqueFilter(QNode *parent) : QFrameGraphNode(*new QTechniqueFilterPrivate, parent) @@ -84,7 +119,7 @@ QTechniqueFilter::QTechniqueFilter(QTechniqueFilterPrivate &dd, QNode *parent) } /*! - Returns a vector of the current keys for the filter. + Returns a vector of the current keys for the filter. */ QVector<QFilterKey *> QTechniqueFilter::matchAll() const { @@ -93,7 +128,7 @@ QVector<QFilterKey *> QTechniqueFilter::matchAll() const } /*! - Add the filter key \a filterKey to the match vector. + Add the \a filterKey to the match vector. */ void QTechniqueFilter::addMatch(QFilterKey *filterKey) { @@ -121,7 +156,7 @@ void QTechniqueFilter::addMatch(QFilterKey *filterKey) } /*! - Remove the filter key \a filterKey from the match vector. + Remove the \a filterKey from the match vector. */ void QTechniqueFilter::removeMatch(QFilterKey *filterKey) { @@ -138,7 +173,7 @@ void QTechniqueFilter::removeMatch(QFilterKey *filterKey) } /*! - Add the parameter \a parameter to the parameter vector. + Add \a parameter to the vector of parameters that will be passed to the graphics pipeline. */ void QTechniqueFilter::addParameter(QParameter *parameter) { @@ -166,7 +201,7 @@ void QTechniqueFilter::addParameter(QParameter *parameter) } /*! - Remove the parameter \a parameter from the parameter vector. + Remove \a parameter from the vector of parameters passed to the graphics pipeline. */ void QTechniqueFilter::removeParameter(QParameter *parameter) { @@ -183,7 +218,7 @@ void QTechniqueFilter::removeParameter(QParameter *parameter) } /*! - Returns the current vector of parameters. + Returns the current vector of parameters. */ QVector<QParameter *> QTechniqueFilter::parameters() const { |