AnimationNode

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

public class AnimationNode extends A3DObject

Aspose.3D’s supports animation hierarchy, each animation can be composed by several animations and animation’s key-frame definition. AnimationNode defines the transformation of a property value over time, for example, animation node can be used to control a node’s transformation or other A3DObject object’s numerical properties.

Constructors

ConstructorDescription
AnimationNode(String name)Initializes a new instance of the AnimationNode class.
AnimationNode()Initializes a new instance of the AnimationNode class.

Methods

MethodDescription
createBindPoint(A3DObject obj, String propName)Creates a BindPoint based on the property data type.
equals(Object arg0)
findBindPoint(A3DObject target, String name)Finds the bind point by target and name.
findBindPoint(String name)Finds the bind point by name.
findProperty(String propertyName)Finds the property.
getBindPoint(A3DObject target, String propName, boolean create)Gets the animation bind point on given property.
getBindPoints()Gets the current property bind points
getClass()
getKeyframeSequence(A3DObject target, String propName, boolean create)Gets the keyframe sequence on given property.
getKeyframeSequence(A3DObject target, String propName, String channelName, boolean create)Gets the keyframe sequence on given property and channel.
getName()Gets the name.
getProperties()Gets the collection of all properties.
getProperty(String property)Get the value of specified property
getSubAnimations()Gets the sub-animation nodes under current animations
hashCode()
notify()
notifyAll()
removeProperty(Property property)Removes a dynamic property.
removeProperty(String property)Remove the specified property identified by name
setName(String value)Sets the name.
setProperty(String property, Object value)Sets the value of specified property
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

AnimationNode(String name)

public AnimationNode(String name)

Initializes a new instance of the AnimationNode class.

Parameters:

ParameterTypeDescription
namejava.lang.StringName

AnimationNode()

public AnimationNode()

Initializes a new instance of the AnimationNode class.

createBindPoint(A3DObject obj, String propName)

public BindPoint createBindPoint(A3DObject obj, String propName)

Creates a BindPoint based on the property data type.

Parameters:

ParameterTypeDescription
objA3DObjectObject.
propNamejava.lang.StringProperty name.

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

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

findBindPoint(A3DObject target, String name)

public BindPoint findBindPoint(A3DObject target, String name)

Finds the bind point by target and name.

Parameters:

ParameterTypeDescription
targetA3DObjectBind point’s target to find.
namejava.lang.StringBind point’s name to find.

Returns: BindPoint - The bind point.

findBindPoint(String name)

public BindPoint findBindPoint(String name)

Finds the bind point by name.

Parameters:

ParameterTypeDescription
namejava.lang.StringBind point’s name to find.

Returns: BindPoint - The bind point.

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:

ParameterTypeDescription
propertyNamejava.lang.StringProperty name.

Returns: Property - The property.

getBindPoint(A3DObject target, String propName, boolean create)

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

Gets the animation bind point on given property.

Parameters:

ParameterTypeDescription
targetA3DObjectOn which object to create the bind point.
propNamejava.lang.StringThe property’s name.
createbooleanIf set to true create the bind point if it’s not existing.

Returns: BindPoint - The bind point.

getBindPoints()

public List<BindPoint> getBindPoints()

Gets the current property bind points

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)

Gets the keyframe sequence on given property.

Parameters:

ParameterTypeDescription
targetA3DObjectOn which instance to create the keyframe sequence.
propNamejava.lang.StringThe property’s name.
createbooleanIf set to true , create the sequence if it’s not existing.

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)

Gets the keyframe sequence on given property and channel.

Parameters:

ParameterTypeDescription
targetA3DObjectOn which instance to create the keyframe sequence.
propNamejava.lang.StringThe property’s name.
channelNamejava.lang.StringThe channel name.
createbooleanIf set to true create the animation sequence if it’s not existing.

Returns: KeyframeSequence - The keyframe sequence.

getName()

public String getName()

Gets the name.

Returns: java.lang.String

getProperties()

public PropertyCollection getProperties()

Gets the collection of all properties.

Returns: PropertyCollection

getProperty(String property)

public Object getProperty(String property)

Get the value of specified property

Parameters:

ParameterTypeDescription
propertyjava.lang.StringProperty name

Returns: java.lang.Object - The value of the found property

getSubAnimations()

public List<AnimationNode> getSubAnimations()

Gets the sub-animation nodes under current animations

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)

Removes a dynamic property.

Parameters:

ParameterTypeDescription
propertyPropertyWhich 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:

ParameterTypeDescription
propertyjava.lang.String

Returns: boolean

setName(String value)

public void setName(String value)

Sets the name.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setProperty(String property, Object value)

public void setProperty(String property, Object value)

Sets the value of specified property

Parameters:

ParameterTypeDescription
propertyjava.lang.StringProperty name
valuejava.lang.ObjectThe value of the property

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int