AnimationChannel

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

public class AnimationChannel extends KeyframeSequence

通道将属性的组件字段映射到一组关键帧序列

方法

方法描述
add(double time, float value)使用指定的值创建新的关键帧
add(double time, float value, Interpolation interpolation)使用指定的值创建新的关键帧
equals(Object arg0)
findProperty(String propertyName)查找属性。
getBindPoint()获取拥有此曲线的属性绑定点
getClass()
getComponentType()获取组件字段的类型
getDefaultValue()获取通道的默认值。
getKeyFrames()获取此曲线的关键帧。
getKeyframeSequence()获取此通道内关联的关键帧序列
getName()获取名称。
getPostBehavior()获取后置行为,指示在最后一个关键帧之后采样值应为何。
getPreBehavior()获取前置行为,指示在第一个关键帧之前采样值应为何。
getProperties()获取所有属性的集合。
getProperty(String property)获取指定属性的值
hashCode()
iterator()获取枚举器以遍历所有关键帧。
notify()
notifyAll()
removeProperty(Property property)移除动态属性。
removeProperty(String property)移除通过名称标识的指定属性
reset()移除所有关键帧并重置后置/前置行为。
setDefaultValue(Object value)设置通道的默认值。
setKeyframeSequence(KeyframeSequence value)获取此通道内关联的关键帧序列
setName(String value)设置名称。
setProperty(String property, Object value)设置指定属性的值
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

add(double time, float value)

public void add(double time, float value)

使用指定的值创建新的关键帧

Parameters:

参数类型描述
时间double时间位置(以秒为单位)
float此时间位置的值

add(double time, float value, Interpolation interpolation)

public void add(double time, float value, Interpolation interpolation)

使用指定的值创建新的关键帧

Parameters:

参数类型描述
时间double时间位置(以秒为单位)
float此时间位置的值
interpolationInterpolation此关键帧的插值类型

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

参数类型描述
arg0java.lang.Object

Returns: 布尔

findProperty(String propertyName)

public Property findProperty(String propertyName)

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

Parameters:

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

Returns: Property - The property.

getBindPoint()

public BindPoint getBindPoint()

获取拥有此曲线的属性绑定点

Returns: BindPoint - the property bind point which owns this curve

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getComponentType()

public Class<?> getComponentType()

获取组件字段的类型

Returns: java.lang.Class - 组件字段的类型

getDefaultValue()

public Object getDefaultValue()

获取通道的默认值。如果通道没有连接任何关键帧序列,则在动画评估期间将使用默认值。实际场景:动画仅对节点的 x 坐标进行动画,而 y 和 z 未改变,则在完整平移评估期间将使用默认值。

Returns: java.lang.Object - 通道的默认值。如果通道没有连接任何关键帧序列,则在动画评估期间将使用默认值。实际场景:动画仅对节点的 x 坐标进行动画,而 y 和 z 未改变,则在完整平移评估期间将使用默认值。

getKeyFrames()

public List<KeyFrame> getKeyFrames()

获取此曲线的关键帧。

Returns: java.util.List<com.aspose.threed.KeyFrame> - 此曲线的关键帧。

getKeyframeSequence()

public KeyframeSequence getKeyframeSequence()

获取此通道内关联的关键帧序列

Returns: KeyframeSequence - associated keyframe sequence inside this channel

getName()

public String getName()

获取名称。

Returns: java.lang.String - 名称。

getPostBehavior()

public Extrapolation getPostBehavior()

获取后置行为,指示在最后一个关键帧之后采样值应为何。

Returns: Extrapolation - the post behavior indicates what the sampled value should be after the last key frame.

getPreBehavior()

public Extrapolation getPreBehavior()

获取前置行为,指示在第一个关键帧之前采样值应为何。

Returns: Extrapolation - the pre behavior indicates what the sampled value should be before the first key.

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

iterator()

public Iterator<KeyFrame> iterator()

获取枚举器以遍历所有关键帧。

Returns: java.util.Iterator<com.aspose.threed.KeyFrame>

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

reset()

public void reset()

移除所有关键帧并重置后置/前置行为。

setDefaultValue(Object value)

public void setDefaultValue(Object value)

设置通道的默认值。如果通道没有连接任何关键帧序列,则在动画评估期间将使用默认值。实际场景:动画仅对节点的 x 坐标进行动画,而 y 和 z 未改变,则在完整平移评估期间将使用默认值。

Parameters:

参数类型描述
java.lang.Object新值

setKeyframeSequence(KeyframeSequence value)

public void setKeyframeSequence(KeyframeSequence value)

获取此通道内关联的关键帧序列

Parameters:

参数类型描述
valueKeyframeSequence新值

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