Pose
Inheritance: java.lang.Object, com.aspose.threed.A3DObject
public class Pose extends A3DObject
当几何体进行蒙皮时,姿势用于存储变换矩阵。姿势是一组 BonePose,每个 BonePose 保存骨骼节点的具体变换信息。
构造函数
| 构造函数 | 描述 |
|---|---|
| Pose(String name) | 初始化 Pose 类的新实例。 |
| Pose() | 初始化 Pose 类的新实例。 |
方法
Pose(String name)
public Pose(String name)
初始化 Pose 类的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | java.lang.String | 名称 |
Pose()
public Pose()
初始化 Pose 类的新实例。
addBonePose(Node node, Matrix4 matrix)
public void addBonePose(Node node, Matrix4 matrix)
为给定的骨骼节点保存姿势变换矩阵。默认使用全局变换矩阵。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| node | Node | 骨骼节点。 |
| matrix | Matrix4 | 变换矩阵。 |
addBonePose(Node node, Matrix4 matrix, boolean localMatrix)
public void addBonePose(Node node, Matrix4 matrix, boolean localMatrix)
为给定的骨骼节点保存姿势变换矩阵。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| node | Node | 骨骼节点。 |
| matrix | Matrix4 | 变换矩阵。 |
localMatrix | 布尔 | 如果设置为 true 则表示使用局部矩阵,否则表示使用全局矩阵。 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: 布尔
findProperty(String propertyName)
public Property findProperty(String propertyName)
查找属性。它可以是动态属性(由 CreateDynamicProperty/SetProperty 创建)或本机属性(通过其名称标识)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| propertyName | java.lang.String | 属性名称。 |
Returns: Property - The property.
getBonePoses()
public List<BonePose> getBonePoses()
获取所有 BonePose。
Returns: java.util.List<com.aspose.threed.BonePose> - 全部 BonePose。
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getName()
public String getName()
获取名称。
Returns: java.lang.String - 名称。
getPoseType()
public PoseType getPoseType()
获取姿势的类型。
Returns: PoseType - the type of the pose.
getProperties()
public PropertyCollection getProperties()
获取所有属性的集合。
Returns: PropertyCollection - the collection of all properties.
getProperty(String property)
public Object getProperty(String property)
获取指定属性的值
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 属性 | java.lang.String | 属性名称 |
Returns: java.lang.Object - 找到的属性的值
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)
移除动态属性。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| property | Property | 要删除哪个属性 |
Returns: boolean - 如果属性成功删除则为 true
removeProperty(String property)
public boolean removeProperty(String property)
移除通过名称标识的指定属性
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 属性 | java.lang.String | 要删除哪个属性 |
Returns: boolean - 如果属性成功删除则为 true
setName(String value)
public void setName(String value)
设置名称。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | java.lang.String | 新值 |
setPoseType(PoseType value)
public void setPoseType(PoseType value)
设置姿势的类型。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | PoseType | 新值 |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
设置指定属性的值
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 属性 | java.lang.String | 属性名称 |
| 值 | java.lang.Object | 属性的值 |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |