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.
-
PhysicalBody()
- Constructs and initializes a default User head object.
-
PhysicalBody(Point3d, Point3d)
- Constructs and initializes a User head object from its parameters.
-
PhysicalBody(Point3d, Point3d, Point3d, Point3d)
- Constructs and initializes a User head object from its parameters.
-
getLeftEarPosition(Point3d)
- Retrieves the user head object's left ear position and places
that value in the specified object.
-
getLeftEyePosition(Point3d)
- Retrieves the user head object's left eye position and places
that value in the specified object.
-
getNominalEyeHeightFromGround()
- Returns the current nominal eye-height from the ground plane.
-
getNominalEyeOffsetFromNominalScreen(Vector3d)
- Returns the current nominal eye offset from the center of the display
screen.
-
getRightEarPosition(Point3d)
- Retrieves the user head object's right ear position and places
that value in the specified object.
-
getRightEyePosition(Point3d)
- Retrieves the user head object's right eye position and places
that value in the specified object.
-
setLeftEarPosition(Point3d)
- Sets the user head object's left ear position.
-
setLeftEyePosition(Point3d)
- Sets the user head object's left eye position.
-
setNominalEyeHeightFromGround(double)
- Sets the nominal eye height from the ground plane.
-
setNominalEyeOffsetFromNominalScreen(Vector3d)
- Sets the nominal eye offset from the center of the display screen.
-
setRightEarPosition(Point3d)
- Sets the user head object's right ear position.
-
setRightEyePosition(Point3d)
- Sets the user head object's right eye position.
-
toString()
-
PhysicalBody
public PhysicalBody()
- Constructs and initializes a default User head object.
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
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
toString
public String toString()
- Overrides:
- toString in class Object
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
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
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
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
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
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
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
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
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
getNominalEyeHeightFromGround
public final double getNominalEyeHeightFromGround()
- Returns the current nominal eye-height from the ground plane.
- Returns:
- the eye height above the current ground plane
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
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