All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.PhysicalBody

java.lang.Object
   |
   +----java.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 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()
Returns the current nominal eye-height from the ground plane.
 o getNominalEyeOffsetFromNominalScreen(Vector3d)
Returns the current nominal eye offset from the center of 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 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(Vector3d)
Sets the nominal eye offset from the center of 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 vector 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 vector 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 vector 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 vector 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 height of the eye above the ground plane
 o getNominalEyeHeightFromGround
 public final double getNominalEyeHeightFromGround()
Returns the current nominal eye-height from the ground plane.

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

Parameters:
offset - the offset from the eye the center of the display screen
 o getNominalEyeOffsetFromNominalScreen
 public final void getNominalEyeOffsetFromNominalScreen(Vector3d offset)
Returns the current nominal eye offset from the center of the display screen.

Parameters:
offset - where to place the eye offset from the eye to the center of the display screen

All Packages  Class Hierarchy  This Package  Previous  Next  Index