A class implementing blend-shape morphing animation. 更多 …
def
addMorphTarget
(target)
def
easing
()
def
getWeights
(positionIndex)
def
interpolator
()
def
方法
()
def
morphTargetList
()
def
removeMorphTarget
(target)
def
setMorphTargets
(targets)
def
setWeights
(positionIndex, weights)
def
target
()
def
targetName
()
def
targetPositions
()
def
setEasing
(easing)
def
setMethod
(method)
def
setTarget
(target)
def
setTargetName
(name)
def
setTargetPositions
(targetPositions)
def
easingChanged
(easing)
def
interpolatorChanged
(interpolator)
def
methodChanged
(method)
def
targetChanged
(target)
def
targetNameChanged
(name)
def
targetPositionsChanged
(targetPositions)
A
QMorphingAnimationclass implements blend-shape morphing animation to a targetQGeometryRenderer。QMorphingAnimationsets the correctQAttributes从morph targetsto the targetgeometryand calculates interpolator for the current position. The actual blending between the attributes must be implemented in the material. Qt3DAnimation::QMorphPhongMaterial implements material with morphing support for phong lighting model. The blending happens between 2 attributes - ‘base’ and ‘target’. The names for the base and target attributes are taken from the morph target names, where the base attribute retains the name it already has and the target attribute name gets ‘Target’ appended to the name. The interpolator can be set as aQParameterto the used material. All morph targets in the animation should contain the attributes with same names as those in the base geometry.
PySide2.Qt3DAnimation.Qt3DAnimation.
QMorphingAnimation
(
[
parent=None
]
)
¶
- param parent
QObject
Construct a new
QMorphingAnimation
with
parent
.
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
方法
¶
This enumeration specifies the morphing method.
|
常量 |
描述 |
|---|---|
|
Qt3DAnimation.QMorphingAnimation.Normalized |
The blending should use the normalized formula; V’ = Vbase * (1.0 - sum(Wi)) + sum[Vi * Wi] |
|
Qt3DAnimation.QMorphingAnimation.Relative |
The blending should use the relative formula; V’ = Vbase + sum[Vi * Wi] |
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
addMorphTarget
(
target
)
¶
target
–
QMorphTarget
Add new morph
target
at the end of the animation.
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
easing
(
)
¶
QEasingCurve
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
easingChanged
(
easing
)
¶
easing
–
QEasingCurve
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
getWeights
(
positionIndex
)
¶
positionIndex
–
int
Return morph weights at
positionIndex
.
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
interpolator
(
)
¶
float
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
interpolatorChanged
(
interpolator
)
¶
interpolator
–
float
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
方法
(
)
¶
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
morphTargetList
(
)
¶
Return morph target list.
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
removeMorphTarget
(
target
)
¶
target
–
QMorphTarget
Remove morph
target
from the animation.
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
setEasing
(
easing
)
¶
easing
–
QEasingCurve
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
setMorphTargets
(
targets
)
¶
targets –
Set morph
targets
to animation. Old targets are cleared.
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
setTarget
(
target
)
¶
target
–
QGeometryRenderer
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
setTargetName
(
name
)
¶
name – unicode
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
setTargetPositions
(
targetPositions
)
¶
targetPositions –
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
setWeights
(
positionIndex
,
weights
)
¶
positionIndex
–
int
weights –
Sets morph
weights
at
positionIndex
.
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
target
(
)
¶
QGeometryRenderer
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
targetChanged
(
target
)
¶
target
–
QGeometryRenderer
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
targetName
(
)
¶
unicode
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
targetNameChanged
(
name
)
¶
name – unicode
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
targetPositions
(
)
¶
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QMorphingAnimation.
targetPositionsChanged
(
targetPositions
)
¶
targetPositions –