Pose

Pose class

The pose is used to store transformation matrix when the geometry is skinned. The pose is a set of BonePose, each BonePose saves the concrete transformation information of the bone node.

Methods

constructor

NameDescription
constructor(name)Initializes a new instance of the Pose class.

Parameters:

NameTypeDescription
nameStringName

Result:


constructor_overload

NameDescription
constructor_overload()Initializes a new instance of the Pose class.

Result:


getPoseType

NameDescription
getPoseType()Gets or sets the type of the pose. The value of the property is PoseType integer constant.The type of the pose.

Result:


setPoseType

NameDescription
setPoseType(value)Gets or sets the type of the pose. The value of the property is PoseType integer constant.The type of the pose.

Result:


getBonePoses

NameDescription
getBonePoses()Gets all BonePose. The nodes.

Result:


getName

NameDescription
getName()Gets or sets the name. The name.

Result:


setName

NameDescription
setName(value)Gets or sets the name. The name.

Result:


getProperties

NameDescription
getProperties()Gets the collection of all properties.

Result:


addBonePose

NameDescription
addBonePose(node, matrix, localMatrix)Saves pose transformation matrix for the given bone node.

Parameters:

NameTypeDescription
nodeNodeBone Node.
matrixMatrix4Transformation matrix.
localMatrixbooleanIf set to

Result:


addBonePose

NameDescription
addBonePose(node, matrix)Saves pose transformation matrix for the given bone node. Global transformation matrix is implied.

Parameters:

NameTypeDescription
nodeNodeBone Node.
matrixMatrix4Transformation matrix.

Result:


removeProperty

NameDescription
removeProperty(property)Removes a dynamic property.

Parameters:

NameTypeDescription
propertyPropertyWhich property to remove

Result: boolean


removeProperty

NameDescription
removeProperty(property)Remove the specified property identified by name

Parameters:

NameTypeDescription
propertStringnull

Result: boolean


getProperty

NameDescription
getProperty(property)Get the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name

Result: Object


setProperty

NameDescription
setProperty(property, value)Sets the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name
valueObjectThe value of the property

Result: Object


findProperty

NameDescription
findProperty(propertyName)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

NameTypeDescription
propertyNameStringProperty name.

Result: Property