public class PhysicalBody
extends java.lang.Object
View| Constructor | Description |
|---|---|
PhysicalBody() |
Constructs a PhysicalBody object with default parameters.
|
PhysicalBody(javax.vecmath.Point3d leftEyePosition,
javax.vecmath.Point3d rightEyePosition) |
Constructs and initializes a PhysicalBody object from the
specified parameters.
|
PhysicalBody(javax.vecmath.Point3d leftEyePosition,
javax.vecmath.Point3d rightEyePosition,
javax.vecmath.Point3d leftEarPosition,
javax.vecmath.Point3d rightEarPosition) |
Constructs and initializes a PhysicalBody object from the
specified parameters.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
getHeadToHeadTracker(Transform3D t) |
Retrieves the head to head-tracker coordinate system transform.
|
void |
getLeftEarPosition(javax.vecmath.Point3d position) |
Retrieves the user head object's left ear position and places
that value in the specified object.
|
void |
getLeftEyePosition(javax.vecmath.Point3d position) |
Retrieves the user head object's left eye position and places
that value in the specified object.
|
double |
getNominalEyeHeightFromGround() |
Retrieves the nominal eye height from the ground plane.
|
double |
getNominalEyeOffsetFromNominalScreen() |
Retrieves the nominal eye offset from the display screen.
|
void |
getRightEarPosition(javax.vecmath.Point3d position) |
Retrieves the user head object's right ear position and places
that value in the specified object.
|
void |
getRightEyePosition(javax.vecmath.Point3d position) |
Retrieves the user head object's right eye position and places
that value in the specified object.
|
void |
setHeadToHeadTracker(Transform3D t) |
Sets the head to head-tracker coordinate system transform.
|
void |
setLeftEarPosition(javax.vecmath.Point3d position) |
Sets the user head object's left ear position.
|
void |
setLeftEyePosition(javax.vecmath.Point3d position) |
Sets the user head object's left eye position.
|
void |
setNominalEyeHeightFromGround(double height) |
Sets the nominal eye height from the ground plane.
|
void |
setNominalEyeOffsetFromNominalScreen(double offset) |
Sets the nominal eye offset from the display screen.
|
void |
setRightEarPosition(javax.vecmath.Point3d position) |
Sets the user head object's right ear position.
|
void |
setRightEyePosition(javax.vecmath.Point3d position) |
Sets the user head object's right eye position.
|
java.lang.String |
toString() |
Returns a string representation of this PhysicalBody's values.
|
public PhysicalBody()
public PhysicalBody(javax.vecmath.Point3d leftEyePosition,
javax.vecmath.Point3d rightEyePosition)
leftEyePosition - the user's left eye positionrightEyePosition - the user's right eye positionpublic PhysicalBody(javax.vecmath.Point3d leftEyePosition,
javax.vecmath.Point3d rightEyePosition,
javax.vecmath.Point3d leftEarPosition,
javax.vecmath.Point3d rightEarPosition)
leftEyePosition - the user's left eye positionrightEyePosition - the user's right eye positionleftEarPosition - the user's left ear positionrightEarPosition - the user's right ear positionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void getLeftEyePosition(javax.vecmath.Point3d position)
position - the object that will receive the left-eye's position
in head coordinatespublic void setLeftEyePosition(javax.vecmath.Point3d position)
position - the left-eye's position in head coordinatespublic void getRightEyePosition(javax.vecmath.Point3d position)
position - the object that will receive the right-eye's position
in head coordinatespublic void setRightEyePosition(javax.vecmath.Point3d position)
position - the right-eye's position in head coordinatespublic void getLeftEarPosition(javax.vecmath.Point3d position)
position - the object that will receive the left-ear's position
in head coordinatespublic void setLeftEarPosition(javax.vecmath.Point3d position)
position - the left-ear's position in head coordinatespublic void getRightEarPosition(javax.vecmath.Point3d position)
position - the object that will receive the right-ear's position
in head coordinatespublic void setRightEarPosition(javax.vecmath.Point3d position)
position - the right-ear's position in head coordinatespublic void setNominalEyeHeightFromGround(double height)
height - the nominal height of the eye above the ground planepublic double getNominalEyeHeightFromGround()
public void setNominalEyeOffsetFromNominalScreen(double offset)
offset - the nominal offset from the eye to the screenpublic double getNominalEyeOffsetFromNominalScreen()
public void setHeadToHeadTracker(Transform3D t)
t - the new transformBadTransformException - if the transform is not rigidpublic void getHeadToHeadTracker(Transform3D t)
t - the object that will receive the transformCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.