| |
|
| java.lang.Object javax.media.j3d.PhysicalBody
PhysicalBody | public class PhysicalBody extends Object (Code) | | 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.
See Also: View |
Constructor Summary | |
public | PhysicalBody() Constructs a PhysicalBody object with default parameters. | public | PhysicalBody(Point3d leftEyePosition, Point3d rightEyePosition) Constructs and initializes a PhysicalBody object from the
specified parameters. | public | PhysicalBody(Point3d leftEyePosition, Point3d rightEyePosition, Point3d leftEarPosition, Point3d rightEarPosition) Constructs and initializes a PhysicalBody object from the
specified parameters. |
leftEarPosition | Point3d leftEarPosition(Code) | | The user's left ear's position in head coordinates.
|
leftEyePosition | Point3d leftEyePosition(Code) | | The user's left eye's position in head coordinates.
|
nominalEyeHeightFromGround | double nominalEyeHeightFromGround(Code) | | The user's nominal eye height as measured
from the ground plane.
|
nominalEyeOffsetFromNominalScreen | double nominalEyeOffsetFromNominalScreen(Code) | | The amount to offset the system's
viewpoint from the user's current eye-point. This offset
distance allows an "Over the shoulder" view of the scene
as seen by the user.
By default, we will use a Z value of 0.4572 meters (18 inches).
|
pbDirtyMask | int pbDirtyMask(Code) | | |
rightEarPosition | Point3d rightEarPosition(Code) | | The user's right ear's position in head coordinates.
|
rightEyePosition | Point3d rightEyePosition(Code) | | The user's right eye's position in head coordinates.
|
PhysicalBody | public PhysicalBody()(Code) | | Constructs a PhysicalBody object with default parameters.
The default values are as follows:
left eye position : (-0.033, 0.0, 0.0)
right eye position : (0.033, 0.0, 0.0)
left ear position : (-0.080, -0.030, 0.095)
right ear position : (0.080, -0.030, 0.095)
nominal eye height from ground : 1.68
nominal eye offset from nominal screen : 0.4572
head to head tracker transform : identity
|
PhysicalBody | public PhysicalBody(Point3d leftEyePosition, Point3d rightEyePosition)(Code) | | Constructs and initializes a PhysicalBody object from the
specified parameters.
Parameters: leftEyePosition - the user's left eye position Parameters: rightEyePosition - the user's right eye position |
PhysicalBody | public PhysicalBody(Point3d leftEyePosition, Point3d rightEyePosition, Point3d leftEarPosition, Point3d rightEarPosition)(Code) | | Constructs and initializes a PhysicalBody object from the
specified parameters.
Parameters: leftEyePosition - the user's left eye position Parameters: rightEyePosition - the user's right eye position Parameters: leftEarPosition - the user's left ear position Parameters: rightEarPosition - the user's right ear position |
getHeadToHeadTracker | public void getHeadToHeadTracker(Transform3D t)(Code) | | Retrieves the head to head-tracker coordinate system transform.
Parameters: t - the object that will receive the transform |
getLeftEarPosition | public void getLeftEarPosition(Point3d position)(Code) | | 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 |
getLeftEyePosition | public void getLeftEyePosition(Point3d position)(Code) | | 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 |
getNominalEyeHeightFromGround | public double getNominalEyeHeightFromGround()(Code) | | Retrieves the nominal eye height from the ground plane.
the current nominal eye height above the ground plane |
getNominalEyeOffsetFromNominalScreen | public double getNominalEyeOffsetFromNominalScreen()(Code) | | Retrieves the nominal eye offset from the display screen.
the current nominal offset from the eye to the display screen |
getRightEarPosition | public void getRightEarPosition(Point3d position)(Code) | | 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 |
getRightEyePosition | public void getRightEyePosition(Point3d position)(Code) | | 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 |
notifyUsers | synchronized void notifyUsers()(Code) | | |
removeUser | synchronized void removeUser(View view)(Code) | | |
setHeadToHeadTracker | public void setHeadToHeadTracker(Transform3D t)(Code) | | 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 exception: BadTransformException - if the transform is not rigid |
setLeftEarPosition | public void setLeftEarPosition(Point3d position)(Code) | | Sets the user head object's left ear position.
Parameters: position - the left-ear's position in head coordinates |
setLeftEyePosition | public void setLeftEyePosition(Point3d position)(Code) | | Sets the user head object's left eye position.
Parameters: position - the left-eye's position in head coordinates |
setNominalEyeHeightFromGround | public void setNominalEyeHeightFromGround(double height)(Code) | | Sets the nominal eye height from the ground plane.
This parameter defines
the distance from the origin of the user's head (the eyepoint) to
the ground.
It is used when the view attach policy is NOMINAL_FEET.
Parameters: height - the nominal height of the eye above the ground plane |
setNominalEyeOffsetFromNominalScreen | public void setNominalEyeOffsetFromNominalScreen(double offset)(Code) | | Sets the nominal eye offset from the display screen.
This parameter defines
the distance from the origin of the user's head (the eyepoint), in it's
nominal position, to
the screen.
It is used when the view attach policy is NOMINAL_HEAD or NOMINAL_FEET.
This value is overridden to be the actual eyepoint when the window
eyepoint policy is RELATIVE_TO_FIELD_OF_VIEW.
Parameters: offset - the nominal offset from the eye to the screen |
setRightEarPosition | public void setRightEarPosition(Point3d position)(Code) | | Sets the user head object's right ear position.
Parameters: position - the right-ear's position in head coordinates |
setRightEyePosition | public void setRightEyePosition(Point3d position)(Code) | | Sets the user head object's right eye position.
Parameters: position - the right-eye's position in head coordinates |
toString | public String toString()(Code) | | Returns a string representation of this PhysicalBody's values.
|
|
|
|