All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.j3d.PhysicalBody

java.lang.Object
   |
   +----javax.media.j3d.PhysicalBody

public class PhysicalBody
extends Object
This object contains a specification of the user's head. Attributes of this object are defined in the head coordinate system. The orgin is defined to be halfway between the left and right eye in the plane of the face. The x-axis extends to the right (of the head looking out from the head). The y-axis extends up. The z-axis extends to the rear of the head.


Constructor Index

 o PhysicalBody()
Constructs and initializes a default User head object.
 o PhysicalBody(Point3d, Point3d)
Constructs and initializes a User head object from its parameters.
 o PhysicalBody(Point3d, Point3d, Point3d, Point3d)
Constructs and initializes a User head object from its parameters.

Method Index

 o getHeadToHeadTracker(Transform3D)
Retrieves the head to head-tracker coordinate system transform.
 o getLeftEarPosition(Point3d)
Retrieves the user head object's left ear position and places that value in the specified object.
 o getLeftEyePosition(Point3d)
Retrieves the user head object's left eye position and places that value in the specified object.
 o getNominalEyeHeightFromGround()
Retrieves the nominal eye height from the ground plane.
 o getNominalEyeOffsetFromNominalScreen()
Retrieves the nominal eye offset from the display screen.
 o getRightEarPosition(Point3d)
Retrieves the user head object's right ear position and places that value in the specified object.
 o getRightEyePosition(Point3d)
Retrieves the user head object's right eye position and places that value in the specified object.
 o setHeadToHeadTracker(Transform3D)
Sets the head to head-tracker coordinate system transform.
 o setLeftEarPosition(Point3d)
Sets the user head object's left ear position.
 o setLeftEyePosition(Point3d)
Sets the user head object's left eye position.
 o setNominalEyeHeightFromGround(double)
Sets the nominal eye height from the ground plane.
 o setNominalEyeOffsetFromNominalScreen(double)
Sets the nominal eye offset from the display screen.
 o setRightEarPosition(Point3d)
Sets the user head object's right ear position.
 o setRightEyePosition(Point3d)
Sets the user head object's right eye position.
 o toString()

Constructors

 o PhysicalBody
 public PhysicalBody()
Constructs and initializes a default User head object.

 o PhysicalBody
 public PhysicalBody(Point3d leftEyePosition,
                     Point3d rightEyePosition)
Constructs and initializes a User head object from its parameters.

Parameters:
leftEyePosition - the user's left eye position
rightEyePosition - the user's right eye position
 o PhysicalBody
 public PhysicalBody(Point3d leftEyePosition,
                     Point3d rightEyePosition,
                     Point3d leftEarPosition,
                     Point3d rightEarPosition)
Constructs and initializes a User head object from its parameters.

Parameters:
leftEyePosition - the user's left eye position
rightEyePosition - the user's right eye position
leftEarPosition - the user's left ear position
rightEarPosition - the user's right ear position

Methods

 o toString
 public String toString()
Overrides:
toString in class Object
 o getLeftEyePosition
 public final void getLeftEyePosition(Point3d position)
Retrieves the user head object's left eye position and places that value in the specified object.

Parameters:
position - the object that will receive the left-eye's position in head coordinates
 o setLeftEyePosition
 public final void setLeftEyePosition(Point3d position)
Sets the user head object's left eye position.

Parameters:
position - the left-eye's position in head coordinates
 o getRightEyePosition
 public final void getRightEyePosition(Point3d position)
Retrieves the user head object's right eye position and places that value in the specified object.

Parameters:
position - the object that will receive the right-eye's position in head coordinates
 o setRightEyePosition
 public final void setRightEyePosition(Point3d position)
Sets the user head object's right eye position.

Parameters:
position - the right-eye's position in head coordinates
 o getLeftEarPosition
 public final void getLeftEarPosition(Point3d position)
Retrieves the user head object's left ear position and places that value in the specified object.

Parameters:
position - the object that will receive the left-ear's position in head coordinates
 o setLeftEarPosition
 public final void setLeftEarPosition(Point3d position)
Sets the user head object's left ear position.

Parameters:
position - the left-ear's position in head coordinates
 o getRightEarPosition
 public final void getRightEarPosition(Point3d position)
Retrieves the user head object's right ear position and places that value in the specified object.

Parameters:
position - the object that will receive the right-ear's position in head coordinates
 o setRightEarPosition
 public final void setRightEarPosition(Point3d position)
Sets the user head object's right ear position.

Parameters:
position - the right-ear's position in head coordinates
 o setNominalEyeHeightFromGround
 public final void setNominalEyeHeightFromGround(double height)
Sets the nominal eye height from the ground plane.

Parameters:
height - the nominal height of the eye above the ground plane
 o getNominalEyeHeightFromGround
 public final double getNominalEyeHeightFromGround()
Retrieves the nominal eye height from the ground plane.

Returns:
the current nominal eye height above the ground plane
 o setNominalEyeOffsetFromNominalScreen
 public final void setNominalEyeOffsetFromNominalScreen(double offset)
Sets the nominal eye offset from the display screen.

Parameters:
offset - the nominal offset from the eye to the screen
 o getNominalEyeOffsetFromNominalScreen
 public final double getNominalEyeOffsetFromNominalScreen()
Retrieves the nominal eye offset from the display screen.

Returns:
the current nominal offset from the eye to the display screen
 o setHeadToHeadTracker
 public void setHeadToHeadTracker(Transform3D t)
Sets the head to head-tracker coordinate system transform. If head tracking is enabled, this transform is a calibration constant. If head tracking is not enabled, this transform is not used. This is used in both SCREEN_VIEW and HMD_VIEW modes.

Parameters:
t - the new transform
 o getHeadToHeadTracker
 public void getHeadToHeadTracker(Transform3D t)
Retrieves the head to head-tracker coordinate system transform.

Parameters:
t - the object that will receive the transform

All Packages  Class Hierarchy  This Package  Previous  Next  Index