All Frameworks  Object Hierarchy  This Framework  Indexes   

SWKBodyElement (Object)

This interface is used to access a body element (segment, ellipse, .
..) It provides common services for all body elements of the manikin.

Property Index

FullName
Returns the full name of the body element.
Manikin
Returns the manikin which owns this body element.
PositionX
Returns the x coordinate of the position of the body element.
PositionY
Returns the y coordinate of the position of the body element.
PositionZ
Returns the z coordinate of the position of the body element.
RefreshDisplay
Enables or disables the update of the display during the script
replay.

Method Index

GetGlobalPosition
Returns the global position ofthe body element.
Refresh3D
Refreshes the 3D representation of the current element.

Properties


o Property FullName() As (Read Only)
Returns the full name of the body element.
This property is different from the property
Name of AnyObject,
which gives the short name or abbreviated name
of the body element.

For instance, if the body element in question is
the left leg segment, then property Name
yields "LSLeLe", whereas
property FullName yields the character
string "Left Leg".
o Property Manikin() As (Read Only)
Returns the manikin which owns this body element.
o Property PositionX() As (Read Only)
Returns the x coordinate of the position of the body element.
If this body element is the body, then the position returned is
the x-coordinate of global position of the manikin. If the
body element is a segment or a line of sight, the position
returned is the x-coordinate of the beginning of that segment or
line of sight. If the body element is an ellipse, the x-coordiante
of the center of that ellipse is returned.
o Property PositionY() As (Read Only)
Returns the y coordinate of the position of the body element.
If this body element is the body, then the position returned is
the y-coordinate of global position of the manikin. If the
body element is a segment or a line of sight, the position
returned is the y-coordinate of the beginning of that segment or
line of sight. If the body element is an ellipse, the y-coordiante
of the center is returned.
o Property PositionZ() As (Read Only)
Returns the z coordinate of the position of the body element.
If this body element is the body, then the position returned is
the z-coordinate of global position of the manikin. If the
body element is a segment or a line of sight, the position
returned is the z-coordinate of the beginning of that segment or
line of sight. If the body element is an ellipse, the z-coordiante
of the center is returned.
o Property RefreshDisplay() As
Enables or disables the update of the display during the script
replay.
To improve performance, this update can be temporarely disabled
by setting this property to False in the script.

The property is True if the elements's display is refreshed after each posture change (value set by default).
Example:
This example makes the update of a manikin display disabled during a portion of the script replay.
 myManikin.Body.RefreshDisplay = False
 

Methods


o Sub GetGlobalPosition( poGlobalPosition)
Returns the global position ofthe body element.
If this body element is the body, then the position returned is
the global position of the manikin. If the
body element is a segment or a line of sight, the position
returned is the global position of the beginning of that segment or
line of sight. If the body element is an ellipse, the global position
of the center of that ellipse is returned.
o Sub Refresh3D()
Refreshes the 3D representation of the current element.

Copyright © 2003, Dassault Systèmes. All rights reserved.