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
Constructor | Description |
---|---|
Bone(String name) | Initializes a new instance of the Bone class. |
Bone() | Initializes a new instance of the Bone class. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Name. |
Bone()
public Bone()
Initializes a new instance of the Bone class.
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(int index)
public double get(int index)
Gets the blend weight of specified control point
Parameters:
Parameter | Type | Description |
---|---|---|
index | int |
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:
Parameter | Type | Description |
---|---|---|
property | java.lang.String | Property 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:
Parameter | Type | Description |
---|---|---|
index | int | Control 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:
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
set(int index, double value)
public void set(int index, double value)
Sets the blend weight of specified control point
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | |
value | double | New value |
setBoneTransform(Matrix4 value)
public void setBoneTransform(Matrix4 value)
Sets the transform matrix of the bone.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Matrix4 | New 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:
Parameter | Type | Description |
---|---|---|
value | BoneLinkMode | New value |
setName(String value)
public void setName(String value)
Sets the name.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | New 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:
Parameter | Type | Description |
---|---|---|
value | Node | 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 |
setTransform(Matrix4 value)
public void setTransform(Matrix4 value)
Sets the transform matrix of the node containing the bone.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Matrix4 | New value |
setWeight(int index, double weight)
public void setWeight(int index, double weight)
Sets the weight for control point specified by index
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Control point’s index |
weight | double | New weight |
toString()
public String toString()
Returns: java.lang.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 |