A class implementing vertex-blend morphing animation. 更多 …
def
addMorphTarget
(target)
def
interpolator
()
def
morphTargetList
()
def
removeMorphTarget
(target)
def
setMorphTargets
(targets)
def
target
()
def
targetName
()
def
targetPositions
()
def
setTarget
(target)
def
setTargetName
(name)
def
setTargetPositions
(targetPositions)
def
interpolatorChanged
(interpolator)
def
targetChanged
(target)
def
targetNameChanged
(name)
def
targetPositionsChanged
(targetPositions)
A
QVertexBlendAnimationclass implements vertex-blend morphing animation to a targetQGeometryRenderer。QVertexBlendAnimationsets the correctQAttributes从morph targetsto the targetgeometryand calculates interpolator for the current position. Unlike withQMorphingAnimation, where the blending is controller with blend weights, the blending occurs between sequential morph targets. 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.
QVertexBlendAnimation
(
[
parent=None
]
)
¶
- param parent
QObject
Construct a new
QVertexBlendAnimation
with
parent
.
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
addMorphTarget
(
target
)
¶
target
–
QMorphTarget
Add new morph
target
at the end of the animation.
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
interpolator
(
)
¶
float
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
interpolatorChanged
(
interpolator
)
¶
interpolator
–
float
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
morphTargetList
(
)
¶
Return morph target list.
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
removeMorphTarget
(
target
)
¶
target
–
QMorphTarget
Remove morph
target
from the animation.
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
setMorphTargets
(
targets
)
¶
targets –
Set morph
targets
to animation. Old targets are cleared.
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
setTarget
(
target
)
¶
target
–
QGeometryRenderer
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
setTargetName
(
name
)
¶
name – unicode
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
setTargetPositions
(
targetPositions
)
¶
targetPositions –
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
target
(
)
¶
QGeometryRenderer
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
targetChanged
(
target
)
¶
target
–
QGeometryRenderer
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
targetName
(
)
¶
unicode
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
targetNameChanged
(
name
)
¶
name – unicode
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
targetPositions
(
)
¶
另请参阅
PySide2.Qt3DAnimation.Qt3DAnimation.QVertexBlendAnimation.
targetPositionsChanged
(
targetPositions
)
¶
targetPositions –