Pose
Inheritance: java.lang.Object, com.aspose.threed.A3DObject
public class Pose extends A3DObject
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.
Constructors
Constructor | Description |
---|---|
Pose(String name) | Initializes a new instance of the Pose class. |
Pose() | Initializes a new instance of the Pose class. |
Methods
Method | Description |
---|---|
addBonePose(Node node, Matrix4 matrix) | Saves pose transformation matrix for the given bone node. |
addBonePose(Node node, Matrix4 matrix, boolean localMatrix) | Saves pose transformation matrix for the given bone node. |
equals(Object arg0) | |
findProperty(String propertyName) | Finds the property. |
getBonePoses() | Gets all BonePose. |
getClass() | |
getName() | Gets the name. |
getPoseType() | Gets the type of the pose. |
getProperties() | Gets the collection of all properties. |
getProperty(String property) | Get the value of specified property |
hashCode() | |
notify() | |
notifyAll() | |
removeProperty(Property property) | Removes a dynamic property. |
removeProperty(String property) | Remove the specified property identified by name |
setName(String value) | Sets the name. |
setPoseType(PoseType value) | Sets the type of the pose. |
setProperty(String property, Object value) | Sets the value of specified property |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
Pose(String name)
public Pose(String name)
Initializes a new instance of the Pose class.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name |
Pose()
public Pose()
Initializes a new instance of the Pose class.
addBonePose(Node node, Matrix4 matrix)
public void addBonePose(Node node, Matrix4 matrix)
Saves pose transformation matrix for the given bone node. Global transformation matrix is implied.
Parameters:
Parameter | Type | Description |
---|---|---|
node | Node | Bone Node. |
matrix | Matrix4 | Transformation matrix. |
addBonePose(Node node, Matrix4 matrix, boolean localMatrix)
public void addBonePose(Node node, Matrix4 matrix, boolean localMatrix)
Saves pose transformation matrix for the given bone node.
Parameters:
Parameter | Type | Description |
---|---|---|
node | Node | Bone Node. |
matrix | Matrix4 | Transformation matrix. |
localMatrix | boolean | If set to true means to use local matrix otherwise means global matrix. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
findProperty(String propertyName)
public Property findProperty(String propertyName)
Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)
Parameters:
Parameter | Type | Description |
---|---|---|
propertyName | java.lang.String | Property name. |
Returns: Property - The property.
getBonePoses()
public List<BonePose> getBonePoses()
Gets all BonePose.
Returns: java.util.List<com.aspose.threed.BonePose>
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getName()
public String getName()
Gets the name.
Returns: java.lang.String
getPoseType()
public PoseType getPoseType()
Gets the type of the pose.
Returns: PoseType
getProperties()
public PropertyCollection getProperties()
Gets the collection of all properties.
Returns: PropertyCollection
getProperty(String property)
public Object getProperty(String property)
Get the value of specified property
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property name |
Returns: java.lang.Object - The value of the found property
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
removeProperty(Property property)
public boolean removeProperty(Property property)
Removes a dynamic property.
Parameters:
Parameter | Type | Description |
---|---|---|
property | Property | Which property to remove |
Returns: boolean - true if the property is successfully removed
removeProperty(String property)
public boolean removeProperty(String property)
Remove the specified property identified by name
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String |
Returns: boolean
setName(String value)
public void setName(String value)
Sets the name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setPoseType(PoseType value)
public void setPoseType(PoseType value)
Sets the type of the pose.
Parameters:
Parameter | Type | Description |
---|---|---|
value | PoseType | New value |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
Sets the value of specified property
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property name |
value | java.lang.Object | The value of the property |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |