This class is to implement the H-Anim proposed Segment. It's implementation for Java3D has been mimicked on the VRML97 field description.
author: Silvere Martin-Michiellot version: 1.1
Constructs a new Segment. Prefered constructor.
Parameters: segmentName - the name of the Segment that describes in a human readable manner the Segment Parameters: joint - the Joint to which this segment is attached
Adds a child to this Segment.
Parameters: site - the Site to be added to the hierarchy as a child of this Segment See Also:com.db.hanim.Segment.addSite(Site)
Adds site to the children list of this Segment. Identical to addChild()
Parameters: site - the Site to be added from the children list of this Segment.
Gets the Node that is used for this Segment
the Java3D Node in which to put the geometry for this Segment
getSegmentIdentifierName
public static String getSegmentIdentifierName(int value)(Code)
Gets the official Segment name for the static identifier passed as argument. If no Segment is found matching the argument then a new empty String is returned.
Parameters: the - static identifier for the Segment String the name of the Segment to get the identifier from See Also:com.db.hanim.Segment.getSegmentIdentifierNumber(String)
getSegmentIdentifierNumber
public static int getSegmentIdentifierNumber(String segmentName)(Code)
Gets the static identifier for the String name passed as argument. If no Segment is found matching the argument then the identifier Segment.NonStandard is returned
Parameters: String - the name of the Segment to get the identifier from the static identifier for the Segment named segmentName See Also:com.db.hanim.Segment.getSegmentIdentifierName(int)
Removes a child from this Segment.
Parameters: site - the Site to be removed from the children list of this Segment See Also:com.db.hanim.Segment.removeSite(site)
Removes the Displacer from the children list of this Segment.
Parameters: displacer - the Displacer to be removed from the children list of this Segment.
Removes the Site from the children list of this Segment. Identical to removeChild()
Parameters: site - the Site to be removed from the children list of this Segment.
setCenterOfMass
public void setCenterOfMass(Point3d centerOfMass)(Code)
Sets the Point3d used as CenterOfMass
Parameters: centerOfMass - the Point3d defining the CenterOfMass for this Segment
Sets the Node that is used for this Segment.
capability bits for Node should be set up by user before this method.
Parameters: the - Java3D Node in which to put the geometry for this Segment