AnimationClip
Inheritance: java.lang.Object, com.aspose.threed.A3DObject, com.aspose.threed.SceneObject
public class AnimationClip extends SceneObject
动画剪辑是动画的集合。场景可以包含一个或多个动画剪辑。
构造函数
| 构造函数 | 描述 |
|---|---|
| AnimationClip() | 初始化 AnimationClip 类的新实例。 |
| AnimationClip(String name) | 初始化 AnimationClip 类的新实例。 |
方法
| 方法 | 描述 |
|---|---|
| createAnimationNode(String nodeName) | 在当前剪辑上创建并注册动画节点的简写函数。 |
| equals(Object arg0) | |
| findProperty(String propertyName) | 查找属性。 |
| getAnimations() | 获取剪辑中包含的动画。 |
| getClass() | |
| getDescription() | 获取此动画剪辑的描述 |
| getName() | 获取名称。 |
| getProperties() | 获取所有属性的集合。 |
| getProperty(String property) | 获取指定属性的值 |
| getScene() | 获取此对象所属的场景 |
| getStart() | 获取剪辑开始的时间(秒)。 |
| getStop() | 获取剪辑结束的时间(秒)。 |
| hashCode() | |
| notify() | |
| notifyAll() | |
| removeProperty(Property property) | 移除动态属性。 |
| removeProperty(String property) | 移除通过名称标识的指定属性 |
| setDescription(String value) | 设置此动画剪辑的描述 |
| setName(String value) | 设置名称。 |
| setProperty(String property, Object value) | 设置指定属性的值 |
| setStart(double value) | 设置剪辑开始时间(秒)。 |
| setStop(double value) | 设置剪辑结束时间(秒)。 |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
AnimationClip()
public AnimationClip()
初始化 AnimationClip 类的新实例。
AnimationClip(String name)
public AnimationClip(String name)
初始化 AnimationClip 类的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | java.lang.String | 名称 |
createAnimationNode(String nodeName)
public AnimationNode createAnimationNode(String nodeName)
在当前剪辑上创建并注册动画节点的简写函数。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| nodeName | java.lang.String | 新动画节点的名称 |
Returns: AnimationNode - A new instance of AnimationNode with given name.
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.
getAnimations()
public List<AnimationNode> getAnimations()
获取剪辑中包含的动画。
Returns: java.util.List<com.aspose.threed.AnimationNode> - 包含在剪辑中的动画。
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDescription()
public String getDescription()
获取此动画剪辑的描述
Returns: java.lang.String - 此动画剪辑的描述
getName()
public String getName()
获取名称。
Returns: java.lang.String - 名称。
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 - 找到的属性的值
getScene()
public Scene getScene()
获取此对象所属的场景
Returns: Scene - the scene that this object belongs to
getStart()
public double getStart()
获取剪辑开始的时间(秒)。
Returns: double - 剪辑开始时间(秒)。
getStop()
public double getStop()
获取剪辑结束的时间(秒)。
Returns: double - 剪辑结束时间(秒)。
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
setDescription(String value)
public void setDescription(String value)
设置此动画剪辑的描述
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | java.lang.String | 新值 |
setName(String value)
public void setName(String value)
设置名称。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | java.lang.String | 新值 |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
设置指定属性的值
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 属性 | java.lang.String | 属性名称 |
| 值 | java.lang.Object | 属性的值 |
setStart(double value)
public void setStart(double value)
设置剪辑开始时间(秒)。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | double | 新值 |
setStop(double value)
public void setStop(double value)
设置剪辑结束时间(秒)。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | double | 新值 |
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 |