AnimationNode

Inheritance: java.lang.Object, com.aspose.threed.A3DObject

public class AnimationNode extends A3DObject

Aspose.3D 支持动画层次结构,每个动画可以由多个动画以及动画关键帧定义组成。 AnimationNode 定义属性值随时间的变换,例如,动画节点可用于控制节点的变换或其他 A3DObject 对象的数值属性。

构造函数

构造函数描述
AnimationNode(String name)初始化 AnimationNode 类的新实例。
AnimationNode()初始化 AnimationNode 类的新实例。

方法

方法描述
createBindPoint(A3DObject obj, String propName)根据属性数据类型创建 BindPoint。
equals(Object arg0)
findBindPoint(A3DObject target, String name)通过目标和名称查找绑定点。
findProperty(String propertyName)查找属性。
getBindPoint(A3DObject target, String propName, boolean create)获取给定属性上的动画绑定点。
getBindPoints()获取当前属性的绑定点
getClass()
getKeyframeSequence(A3DObject target, String propName, boolean create)获取给定属性的关键帧序列。
getKeyframeSequence(A3DObject target, String propName, String channelName, boolean create)获取给定属性和通道上的关键帧序列。
getName()获取名称。
getProperties()获取所有属性的集合。
getProperty(String property)获取指定属性的值
getSubAnimations()获取当前动画下的子动画节点。
hashCode()
notify()
notifyAll()
removeProperty(Property property)移除动态属性。
removeProperty(String property)移除通过名称标识的指定属性
setName(String value)设置名称。
setProperty(String property, Object value)设置指定属性的值
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

AnimationNode(String name)

public AnimationNode(String name)

初始化 AnimationNode 类的新实例。

Parameters:

参数类型描述
名称java.lang.String名称

AnimationNode()

public AnimationNode()

初始化 AnimationNode 类的新实例。

createBindPoint(A3DObject obj, String propName)

public BindPoint createBindPoint(A3DObject obj, String propName)

根据属性数据类型创建 BindPoint。

Parameters:

参数类型描述
objA3DObject对象。
propNamejava.lang.String属性名称。

Returns: BindPoint - The bind point instance or null if the property is not defined.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: 布尔

findBindPoint(A3DObject target, String name)

public BindPoint findBindPoint(A3DObject target, String name)

通过目标和名称查找绑定点。

Parameters:

参数类型描述
targetA3DObject要查找的绑定点目标。
名称java.lang.String要查找的绑定点名称。

Returns: BindPoint - The bind point.

findProperty(String propertyName)

public Property findProperty(String propertyName)

查找属性。它可以是动态属性(由 CreateDynamicProperty/SetProperty 创建)或本机属性(通过其名称标识)

Parameters:

参数类型描述
propertyNamejava.lang.String属性名称。

Returns: Property - The property.

getBindPoint(A3DObject target, String propName, boolean create)

public BindPoint getBindPoint(A3DObject target, String propName, boolean create)

获取给定属性上的动画绑定点。

Parameters:

参数类型描述
targetA3DObject在何对象上创建绑定点。
propNamejava.lang.String属性的名称。
创建布尔如果设置为 true 且绑定点不存在,则创建绑定点。

Returns: BindPoint - The bind point.

getBindPoints()

public List<BindPoint> getBindPoints()

获取当前属性的绑定点

Returns: java.util.List<com.aspose.threed.BindPoint> - 当前属性的绑定点列表

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getKeyframeSequence(A3DObject target, String propName, boolean create)

public KeyframeSequence getKeyframeSequence(A3DObject target, String propName, boolean create)

获取给定属性的关键帧序列。

Parameters:

参数类型描述
targetA3DObject在何实例上创建关键帧序列。
propNamejava.lang.String属性的名称。
创建布尔如果设置为 true , 且序列不存在,则创建序列。

Returns: KeyframeSequence - The keyframe sequence.

getKeyframeSequence(A3DObject target, String propName, String channelName, boolean create)

public KeyframeSequence getKeyframeSequence(A3DObject target, String propName, String channelName, boolean create)

获取给定属性和通道上的关键帧序列。

Parameters:

参数类型描述
targetA3DObject在何实例上创建关键帧序列。
propNamejava.lang.String属性的名称。
channelNamejava.lang.String通道名称。
创建布尔如果设置为 true 且动画序列不存在,则创建动画序列。

Returns: KeyframeSequence - The keyframe sequence.

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 - 找到的属性的值

getSubAnimations()

public List<AnimationNode> getSubAnimations()

获取当前动画下的子动画节点。

Returns: java.util.List<com.aspose.threed.AnimationNode> - 当前动画下的子动画节点列表

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:

参数类型描述
propertyProperty要删除哪个属性

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新值

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:

参数类型描述
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

参数类型描述
arg0long
arg1int