Bone

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

public class Bone extends A3DObject

A bone defines the subset of the geometry’s control point, and defined blend weight for each control point. The Bone object cannot be used directly, a SkinDeformer instance is used to deform the geometry, and SkinDeformer comes with a set of bones, each bone linked to a node. NOTE: A control point of a geometry can be bounded to more than one Bones.

Constructors

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

Methods

MethodDescription
equals(Object arg0)
findProperty(String propertyName)Finds the property.
get(int index)Gets the blend weight of specified control point
getBoneTransform()Gets the transform matrix of the bone.
getClass()
getLinkMode()A bone’s link mode refers to the way in which a bone is connected or linked to its parent bone within a hierarchical structure.
getName()Gets the name.
getNode()Gets the node.
getProperties()Gets the collection of all properties.
getProperty(String property)Get the value of specified property
getTransform()Gets the transform matrix of the node containing the bone.
getWeight(int index)Gets the weight for control point specified by index
getWeightCount()Gets the count of weight, this is automatically extended by setWeight
hashCode()
notify()
notifyAll()
removeProperty(Property property)Removes a dynamic property.
removeProperty(String property)Remove the specified property identified by name
set(int index, double value)Sets the blend weight of specified control point
setBoneTransform(Matrix4 value)Sets the transform matrix of the bone.
setLinkMode(BoneLinkMode value)A bone’s link mode refers to the way in which a bone is connected or linked to its parent bone within a hierarchical structure.
setName(String value)Sets the name.
setNode(Node value)Sets the node.
setProperty(String property, Object value)Sets the value of specified property
setTransform(Matrix4 value)Sets the transform matrix of the node containing the bone.
setWeight(int index, double weight)Sets the weight for control point specified by index
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Bone(String name)

public Bone(String name)

Initializes a new instance of the Bone class.

Parameters:

ParameterTypeDescription
namejava.lang.StringName.

Bone()

public Bone()

Initializes a new instance of the Bone class.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
propertyNamejava.lang.StringProperty name.

Returns: Property - The property.

get(int index)

public double get(int index)

Gets the blend weight of specified control point

Parameters:

ParameterTypeDescription
indexint

Returns: double - The weight

getBoneTransform()

public Matrix4 getBoneTransform()

Gets the transform matrix of the bone.

Returns: Matrix4

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getLinkMode()

public BoneLinkMode getLinkMode()

A bone’s link mode refers to the way in which a bone is connected or linked to its parent bone within a hierarchical structure.

Returns: BoneLinkMode

getName()

public String getName()

Gets the name.

Returns: java.lang.String

getNode()

public Node getNode()

Gets the node. The bone node is the bone which skin attached to, the SkinDeformer will use bone node to influence the displacement of the control points. Bone node usually has a Skeleton attached, but it’s not required. Attached Skeleton is usually used by DCC software to show skeleton to user.

Returns: Node

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

getTransform()

public Matrix4 getTransform()

Gets the transform matrix of the node containing the bone.

Returns: Matrix4

getWeight(int index)

public double getWeight(int index)

Gets the weight for control point specified by index

Parameters:

ParameterTypeDescription
indexintControl point’s index

Returns: double - the weight at specified index, or 0 if the index is invalid

getWeightCount()

public int getWeightCount()

Gets the count of weight, this is automatically extended by setWeight

Returns: int

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

set(int index, double value)

public void set(int index, double value)

Sets the blend weight of specified control point

Parameters:

ParameterTypeDescription
indexint
valuedoubleNew value

setBoneTransform(Matrix4 value)

public void setBoneTransform(Matrix4 value)

Sets the transform matrix of the bone.

Parameters:

ParameterTypeDescription
valueMatrix4New value

setLinkMode(BoneLinkMode value)

public void setLinkMode(BoneLinkMode value)

A bone’s link mode refers to the way in which a bone is connected or linked to its parent bone within a hierarchical structure.

Parameters:

ParameterTypeDescription
valueBoneLinkModeNew value

setName(String value)

public void setName(String value)

Sets the name.

Parameters:

ParameterTypeDescription
valuejava.lang.StringNew value

setNode(Node value)

public void setNode(Node value)

Sets the node. The bone node is the bone which skin attached to, the SkinDeformer will use bone node to influence the displacement of the control points. Bone node usually has a Skeleton attached, but it’s not required. Attached Skeleton is usually used by DCC software to show skeleton to user.

Parameters:

ParameterTypeDescription
valueNodeNew 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

setTransform(Matrix4 value)

public void setTransform(Matrix4 value)

Sets the transform matrix of the node containing the bone.

Parameters:

ParameterTypeDescription
valueMatrix4New value

setWeight(int index, double weight)

public void setWeight(int index, double weight)

Sets the weight for control point specified by index

Parameters:

ParameterTypeDescription
indexintControl point’s index
weightdoubleNew weight

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