SWKSegmentNode (Object)

This interface characterizes a segment node.

A segment node is a convenient way to regroup segments. The segment nodes are the entities that appear under the manikin in the specification tree, and that regroup segments together (i.e. "Trunk", "Cervical", "Right Fingers").

Properties


Property NbChildrenNodes() As (Read Only)
Returns the number of children segment nodes under this node.
Property NbChildrenSegments() As (Read Only)
Returns the number of children segments under this node.

Methods


Func GetSegment( piIndex) As
Returns a specific child of the segment node, based on an index.
Parameters:
piIndex
The index of the segment to retrieve.
The first segment is at index 0.
The value of this parameter should not be higher than the number of segments on this segment node, minus 1.
Func GetSegmentNode( piIndex) As
Returns a specific child of the segment node, based on an index.
Parameters:
piIndex
The index of the segment node to retrieve.
The first segment is at index 0.
The value of this parameter should not be higher than the number of children nodes on this segment node, minus 1.
Sub MirrorCopyPosture()
Copy the posture on the equivalent segment node, on the other side of the manikin. For instance, it copies the posture from the right leg to the left leg.
Sub ResetPosture()
Set the posture of all segment under this node back to their default position.
Sub SwapPosture()
Swap the posture with the equivalent segment node, on the other side of the manikin. For instance, the right leg takes the posture of the left leg, and vice versa.