Kuesa::Qt3D::MorphController
Module: Kuesa Qt 3D API
Kuesa::Qt3D::MorphController allows to control the morph target weights of an entity. Though the glTF 2.0 specifications do not impose a limit on the number of weights, we have limited it to 8. More...
#include <Kuesa/Qt3D/api/morphcontroller.h>
Inherits from Qt3DRender::QShaderData
Public Signals
Public Functions
Public Properties
Detailed Description
| class Kuesa::Qt3D::MorphController;
|
Kuesa::Qt3D::MorphController allows to control the morph target weights of an entity. Though the glTF 2.0 specifications do not impose a limit on the number of weights, we have limited it to 8.
Since: Kuesa 2.0
Note: Given this class subclasses Qt3DRender::QShaderData, its properties can be exposed as uniforms to a material.
The weight values are set to 0.0f by default.
Public Signals Documentation
signal weight0Changed
| void weight0Changed(
float weight0
)
|
signal weight1Changed
| void weight1Changed(
float weight1
)
|
signal weight2Changed
| void weight2Changed(
float weight2
)
|
signal weight3Changed
| void weight3Changed(
float weight3
)
|
signal weight4Changed
| void weight4Changed(
float weight4
)
|
signal weight5Changed
| void weight5Changed(
float weight5
)
|
signal weight6Changed
| void weight6Changed(
float weight6
)
|
signal weight7Changed
| void weight7Changed(
float weight7
)
|
signal countChanged
| void countChanged(
int count
)
|
signal morphWeightsChanged
| void morphWeightsChanged()
|
Public Functions Documentation
function MorphController
| explicit MorphController(
Qt3DCore::QNode * parent =nullptr
)
|
function ~MorphController
function weight0
function weight1
function weight2
function weight3
function weight4
function weight5
function weight6
function weight7
function count
function morphWeights
| QVariantList morphWeights() const
|
function setWeight0
| void setWeight0(
float weight0
)
|
function setWeight1
| void setWeight1(
float weight1
)
|
function setWeight2
| void setWeight2(
float weight2
)
|
function setWeight3
| void setWeight3(
float weight3
)
|
function setWeight4
| void setWeight4(
float weight4
)
|
function setWeight5
| void setWeight5(
float weight5
)
|
function setWeight6
| void setWeight6(
float weight6
)
|
function setWeight7
| void setWeight7(
float weight7
)
|
function setCount
| void setCount(
int count
)
|
function setMorphWeights
| void setMorphWeights(
const QVariantList & weights
)
|
Public Property Documentation
property count
Holds the actual number of weights being handled by the MorphController.
property weight0
Specifies the weight value at index 0.
property weight1
Specifies the weight value at index 1.
property weight2
Specifies the weight value at index 2.
property weight3
Specifies the weight value at index 3.
property weight4
Specifies the weight value at index 4.
property weight5
Specifies the weight value at index 5.
property weight6
Specifies the weight value at index 6.
property weight7
Specifies the weight value at index 7.
property morphWeights
| QVariantList morphWeights;
|
Updated on 2023-07-03 at 11:02:09 +0000