BindPoint
Inheritance: java.lang.Object, com.aspose.threed.A3DObject
public class BindPoint extends A3DObject
通常在对象的属性上创建 BindPoint,某些属性类型包含多个组件字段(如 Vector3 字段),BindPoint 将为每个组件字段生成通道,并通过这些通道将字段连接到一个或多个关键帧序列实例。
构造函数
| 构造函数 | 描述 |
|---|---|
| BindPoint(Scene scene, Property prop) | 初始化 BindPoint 类的新实例。 |
方法
| 方法 | 描述 |
|---|---|
| addChannel(String name, Class type, Object value) | 添加指定的通道属性。 |
| addChannel(String name, Object value) | 添加指定的通道属性。 |
| bindKeyframeSequence(String channelName, KeyframeSequence sequence) | 将关键帧序列绑定到指定通道 |
| createKeyframeSequence(String name) | 创建新曲线并将其连接到曲线映射的第一个通道 |
| equals(Object arg0) | |
| findProperty(String propertyName) | 查找属性。 |
| get(String channelName) | 根据给定名称获取通道 |
| getChannel(String channelName) | 根据给定名称获取通道 |
| getChannelsCount() | 获取此动画曲线映射中定义的属性通道总数。 |
| getClass() | |
| getKeyframeSequence(String channelName) | 获取指定通道中的第一个关键帧序列 |
| getName() | 获取名称。 |
| getProperties() | 获取所有属性的集合。 |
| getProperty() | 获取与 CurveMapping 关联的属性 |
| getProperty(String property) | 获取指定属性的值 |
| hashCode() | |
| notify() | |
| notifyAll() | |
| removeProperty(Property property) | 移除动态属性。 |
| removeProperty(String property) | 移除通过名称标识的指定属性 |
| resetChannels() | 清空此动画曲线映射的属性通道。 |
| setName(String value) | 设置名称。 |
| setProperty(Property value) | 获取与 CurveMapping 关联的属性 |
| setProperty(String property, Object value) | 设置指定属性的值 |
| toString() | 将对象格式化为字符串 |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
BindPoint(Scene scene, Property prop)
public BindPoint(Scene scene, Property prop)
初始化 BindPoint 类的新实例。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| scene | Scene | 包含动画的场景。 |
| prop | Property | 属性。 |
addChannel(String name, Class type, Object value)
public boolean addChannel(String name, Class<?> type, Object value)
添加指定的通道属性。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | java.lang.String | 名称。 |
| type | java.lang.Class | 类型。 |
| 值 | java.lang.Object | 值。 |
Returns: 布尔型 - 如果通道已添加则为 true,否则为 false。
addChannel(String name, Object value)
public boolean addChannel(String name, Object value)
添加指定的通道属性。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | java.lang.String | 名称。 |
| 值 | java.lang.Object | 值。 |
Returns: 布尔型 - 如果通道已添加则为 true,否则为 false。
bindKeyframeSequence(String channelName, KeyframeSequence sequence)
public void bindKeyframeSequence(String channelName, KeyframeSequence sequence)
将关键帧序列绑定到指定通道
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| channelName | java.lang.String | 关键帧序列将绑定到的通道 |
| sequence | KeyframeSequence | 要绑定的关键帧序列 |
createKeyframeSequence(String name)
public KeyframeSequence createKeyframeSequence(String name)
创建新曲线并将其连接到曲线映射的第一个通道
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | java.lang.String | 新序列的名称。 |
Returns: KeyframeSequence - The keyframe sequence.
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.
get(String channelName)
public AnimationChannel get(String channelName)
根据给定名称获取通道
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| channelName | java.lang.String | 通道名称 |
Returns: AnimationChannel - Animation channel
getChannel(String channelName)
public AnimationChannel getChannel(String channelName)
根据给定名称获取通道
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| channelName | java.lang.String | 要查找的通道名称 |
Returns: AnimationChannel - Channel with the name
getChannelsCount()
public int getChannelsCount()
获取此动画曲线映射中定义的属性通道总数。
Returns: int - 通道计数。
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getKeyframeSequence(String channelName)
public KeyframeSequence getKeyframeSequence(String channelName)
获取指定通道中的第一个关键帧序列
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| channelName | java.lang.String | 要查找的通道名称 |
Returns: KeyframeSequence - First keyframe sequence with the channel name
getName()
public String getName()
获取名称。
Returns: java.lang.String - 名称。
getProperties()
public PropertyCollection getProperties()
获取所有属性的集合。
Returns: PropertyCollection - the collection of all properties.
getProperty()
public Property getProperty()
获取与 CurveMapping 关联的属性
Returns: Property - the property associated with the CurveMapping
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
resetChannels()
public void resetChannels()
清空此动画曲线映射的属性通道。
setName(String value)
public void setName(String value)
设置名称。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | java.lang.String | 新值 |
setProperty(Property value)
public void setProperty(Property value)
获取与 CurveMapping 关联的属性
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| value | Property | 新值 |
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 |