Skip to content

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

Name
void weight0Changed(float weight0)
void weight1Changed(float weight1)
void weight2Changed(float weight2)
void weight3Changed(float weight3)
void weight4Changed(float weight4)
void weight5Changed(float weight5)
void weight6Changed(float weight6)
void weight7Changed(float weight7)
void countChanged(int count)
void morphWeightsChanged()

Public Functions

Name
MorphController(Qt3DCore::QNode * parent =nullptr)
~MorphController()
float weight0() const
float weight1() const
float weight2() const
float weight3() const
float weight4() const
float weight5() const
float weight6() const
float weight7() const
int count() const
QVariantList morphWeights() const
void setWeight0(float weight0)
void setWeight1(float weight1)
void setWeight2(float weight2)
void setWeight3(float weight3)
void setWeight4(float weight4)
void setWeight5(float weight5)
void setWeight6(float weight6)
void setWeight7(float weight7)
void setCount(int count)
void setMorphWeights(const QVariantList & weights)

Public Properties

Name
int count
float weight0
float weight1
float weight2
float weight3
float weight4
float weight5
float weight6
float weight7
QVariantList morphWeights

Detailed Description

1
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

1
2
3
void weight0Changed(
    float weight0
)

signal weight1Changed

1
2
3
void weight1Changed(
    float weight1
)

signal weight2Changed

1
2
3
void weight2Changed(
    float weight2
)

signal weight3Changed

1
2
3
void weight3Changed(
    float weight3
)

signal weight4Changed

1
2
3
void weight4Changed(
    float weight4
)

signal weight5Changed

1
2
3
void weight5Changed(
    float weight5
)

signal weight6Changed

1
2
3
void weight6Changed(
    float weight6
)

signal weight7Changed

1
2
3
void weight7Changed(
    float weight7
)

signal countChanged

1
2
3
void countChanged(
    int count
)

signal morphWeightsChanged

1
void morphWeightsChanged()

Public Functions Documentation

function MorphController

1
2
3
explicit MorphController(
    Qt3DCore::QNode * parent =nullptr
)

function ~MorphController

1
~MorphController()

function weight0

1
float weight0() const

function weight1

1
float weight1() const

function weight2

1
float weight2() const

function weight3

1
float weight3() const

function weight4

1
float weight4() const

function weight5

1
float weight5() const

function weight6

1
float weight6() const

function weight7

1
float weight7() const

function count

1
int count() const

function morphWeights

1
QVariantList morphWeights() const

function setWeight0

1
2
3
void setWeight0(
    float weight0
)

function setWeight1

1
2
3
void setWeight1(
    float weight1
)

function setWeight2

1
2
3
void setWeight2(
    float weight2
)

function setWeight3

1
2
3
void setWeight3(
    float weight3
)

function setWeight4

1
2
3
void setWeight4(
    float weight4
)

function setWeight5

1
2
3
void setWeight5(
    float weight5
)

function setWeight6

1
2
3
void setWeight6(
    float weight6
)

function setWeight7

1
2
3
void setWeight7(
    float weight7
)

function setCount

1
2
3
void setCount(
    int count
)

function setMorphWeights

1
2
3
void setMorphWeights(
    const QVariantList & weights
)

Public Property Documentation

property count

1
int count;

Holds the actual number of weights being handled by the MorphController.

property weight0

1
float weight0;

Specifies the weight value at index 0.

property weight1

1
float weight1;

Specifies the weight value at index 1.

property weight2

1
float weight2;

Specifies the weight value at index 2.

property weight3

1
float weight3;

Specifies the weight value at index 3.

property weight4

1
float weight4;

Specifies the weight value at index 4.

property weight5

1
float weight5;

Specifies the weight value at index 5.

property weight6

1
float weight6;

Specifies the weight value at index 6.

property weight7

1
float weight7;

Specifies the weight value at index 7.

property morphWeights

1
QVariantList morphWeights;

Updated on 2023-07-03 at 11:02:09 +0000