BindPoint
Inheritance: java.lang.Object, com.aspose.threed.A3DObject
public class BindPoint extends A3DObject
A BindPoint is usually created on an object’s property, some property types contains multiple component fields(like a Vector3 field), BindPoint will generate channel for each component field and connects the field to one or more keyframe sequence instance(s) through the channels.
Constructors
Constructor | Description |
---|---|
BindPoint(Scene scene, Property prop) | Initializes a new instance of the BindPoint class. |
Methods
Method | Description |
---|---|
addChannel(String name, Class type, Object value) | Adds the specified channel property. |
addChannel(String name, Object value) | Adds the specified channel property. |
bindKeyframeSequence(String channelName, KeyframeSequence sequence) | Bind the keyframe sequence to specified channel |
createKeyframeSequence(String name) | Creates a new curve and connects it to the first channel of the curve mapping |
equals(Object arg0) | |
findProperty(String propertyName) | Finds the property. |
get(String channelName) | Gets channel by given name |
getChannel(String channelName) | Gets channel by given name |
getChannelsCount() | Gets the total number of property channels defined in this animation curve mapping. |
getClass() | |
getKeyframeSequence(String channelName) | Gets the first keyframe sequence in specified channel |
getKeyframeSequences(String channelName) | Gets all keyframe sequences in specified channel |
getName() | Gets the name. |
getProperties() | Gets the collection of all properties. |
getProperty() | Gets the property associated with the CurveMapping |
getProperty(String property) | Get the value of specified property |
hashCode() | |
notify() | |
notifyAll() | |
removeProperty(Property property) | Removes a dynamic property. |
removeProperty(String property) | Remove the specified property identified by name |
resetChannels() | Empties the property channels of this animation curve mapping. |
setName(String value) | Sets the name. |
setProperty(Property value) | Gets the property associated with the CurveMapping |
setProperty(String property, Object value) | Sets the value of specified property |
toString() | Formats object to string |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
BindPoint(Scene scene, Property prop)
public BindPoint(Scene scene, Property prop)
Initializes a new instance of the BindPoint class.
Parameters:
Parameter | Type | Description |
---|---|---|
scene | Scene | The scene that contains the animation. |
prop | Property | Property. |
addChannel(String name, Class type, Object value)
public boolean addChannel(String name, Class<?> type, Object value)
Adds the specified channel property.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name. |
type | java.lang.Class | Type. |
value | java.lang.Object | Value. |
Returns: boolean - true, if channel was added, false otherwise.
addChannel(String name, Object value)
public boolean addChannel(String name, Object value)
Adds the specified channel property.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name. |
value | java.lang.Object | Value. |
Returns: boolean - true, if channel was added, false otherwise.
bindKeyframeSequence(String channelName, KeyframeSequence sequence)
public void bindKeyframeSequence(String channelName, KeyframeSequence sequence)
Bind the keyframe sequence to specified channel
Parameters:
Parameter | Type | Description |
---|---|---|
channelName | java.lang.String | Which channel the keyframe sequence will be bound to |
sequence | KeyframeSequence | The keyframe sequence to bind |
createKeyframeSequence(String name)
public KeyframeSequence createKeyframeSequence(String name)
Creates a new curve and connects it to the first channel of the curve mapping
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | The new sequence’s name. |
Returns: KeyframeSequence - The keyframe sequence.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
findProperty(String propertyName)
public Property findProperty(String propertyName)
Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)
Parameters:
Parameter | Type | Description |
---|---|---|
propertyName | java.lang.String | Property name. |
Returns: Property - The property.
get(String channelName)
public AnimationChannel get(String channelName)
Gets channel by given name
Parameters:
Parameter | Type | Description |
---|---|---|
channelName | java.lang.String | Channel name |
Returns: AnimationChannel - Animation channel
getChannel(String channelName)
public AnimationChannel getChannel(String channelName)
Gets channel by given name
Parameters:
Parameter | Type | Description |
---|---|---|
channelName | java.lang.String | The channel name to find |
Returns: AnimationChannel - Channel with the name
getChannelsCount()
public int getChannelsCount()
Gets the total number of property channels defined in this animation curve mapping.
Returns: int - The channels count.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getKeyframeSequence(String channelName)
public KeyframeSequence getKeyframeSequence(String channelName)
Gets the first keyframe sequence in specified channel
Parameters:
Parameter | Type | Description |
---|---|---|
channelName | java.lang.String | The channel name to find |
Returns: KeyframeSequence - First keyframe sequence with the channel name
getKeyframeSequences(String channelName)
public List<KeyframeSequence> getKeyframeSequences(String channelName)
Gets all keyframe sequences in specified channel
Parameters:
Parameter | Type | Description |
---|---|---|
channelName | java.lang.String | The channel name to find |
Returns: java.util.List<com.aspose.threed.KeyframeSequence> - Keyframe sequence list with the channel name
getName()
public String getName()
Gets the name.
Returns: java.lang.String
getProperties()
public PropertyCollection getProperties()
Gets the collection of all properties.
Returns: PropertyCollection
getProperty()
public Property getProperty()
Gets the property associated with the CurveMapping
Returns: Property
getProperty(String property)
public Object getProperty(String property)
Get the value of specified property
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property name |
Returns: java.lang.Object - The value of the found property
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)
Removes a dynamic property.
Parameters:
Parameter | Type | Description |
---|---|---|
property | Property | Which property to remove |
Returns: boolean - true if the property is successfully removed
removeProperty(String property)
public boolean removeProperty(String property)
Remove the specified property identified by name
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String |
Returns: boolean
resetChannels()
public void resetChannels()
Empties the property channels of this animation curve mapping.
setName(String value)
public void setName(String value)
Sets the name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New value |
setProperty(Property value)
public void setProperty(Property value)
Gets the property associated with the CurveMapping
Parameters:
Parameter | Type | Description |
---|---|---|
value | Property | New value |
setProperty(String property, Object value)
public void setProperty(String property, Object value)
Sets the value of specified property
Parameters:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property name |
value | java.lang.Object | The value of the property |
toString()
public String toString()
Formats object to string
Returns: java.lang.String - Object string
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |