|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.PhysicalBody
public class PhysicalBody
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.
View
Field Summary | |
---|---|
private static double |
EAR_X
|
private static double |
EAR_Y
|
private static double |
EAR_Z
|
private static double |
HALF_IPD
|
(package private) Transform3D |
headToHeadTracker
|
(package private) Point3d |
leftEarPosition
The user's left ear's position in head coordinates. |
(package private) Point3d |
leftEyePosition
The user's left eye's position in head coordinates. |
(package private) double |
nominalEyeHeightFromGround
The user's nominal eye height as measured from the ground plane. |
(package private) double |
nominalEyeOffsetFromNominalScreen
The amount to offset the system's viewpoint from the user's current eye-point. |
(package private) int |
pbDirtyMask
|
(package private) Point3d |
rightEarPosition
The user's right ear's position in head coordinates. |
(package private) Point3d |
rightEyePosition
The user's right eye's position in head coordinates. |
(package private) java.util.ArrayList |
users
|
Constructor Summary | |
---|---|
PhysicalBody()
Constructs a PhysicalBody object with default parameters. |
|
PhysicalBody(Point3d leftEyePosition,
Point3d rightEyePosition)
Constructs and initializes a PhysicalBody object from the specified parameters. |
|
PhysicalBody(Point3d leftEyePosition,
Point3d rightEyePosition,
Point3d leftEarPosition,
Point3d rightEarPosition)
Constructs and initializes a PhysicalBody object from the specified parameters. |
Method Summary | |
---|---|
(package private) void |
addUser(View view)
|
void |
getHeadToHeadTracker(Transform3D t)
Retrieves the head to head-tracker coordinate system transform. |
void |
getLeftEarPosition(Point3d position)
Retrieves the user head object's left ear position and places that value in the specified object. |
void |
getLeftEyePosition(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(Point3d position)
Retrieves the user head object's right ear position and places that value in the specified object. |
void |
getRightEyePosition(Point3d position)
Retrieves the user head object's right eye position and places that value in the specified object. |
private void |
initHeadToHeadTracker()
|
(package private) void |
notifyUsers()
|
(package private) void |
removeUser(View view)
|
void |
setHeadToHeadTracker(Transform3D t)
Sets the head to head-tracker coordinate system transform. |
void |
setLeftEarPosition(Point3d position)
Sets the user head object's left ear position. |
void |
setLeftEyePosition(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(Point3d position)
Sets the user head object's right ear position. |
void |
setRightEyePosition(Point3d position)
Sets the user head object's right eye position. |
java.lang.String |
toString()
Returns a string representation of this PhysicalBody's values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final double HALF_IPD
private static final double EAR_X
private static final double EAR_Y
private static final double EAR_Z
Point3d leftEyePosition
Point3d rightEyePosition
Point3d leftEarPosition
Point3d rightEarPosition
double nominalEyeHeightFromGround
double nominalEyeOffsetFromNominalScreen
Transform3D headToHeadTracker
java.util.ArrayList users
int pbDirtyMask
Constructor Detail |
---|
public PhysicalBody()
public PhysicalBody(Point3d leftEyePosition, Point3d rightEyePosition)
leftEyePosition
- the user's left eye positionrightEyePosition
- the user's right eye positionpublic PhysicalBody(Point3d leftEyePosition, Point3d rightEyePosition, Point3d leftEarPosition, 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 positionMethod Detail |
---|
void removeUser(View view)
void addUser(View view)
void notifyUsers()
public java.lang.String toString()
toString
in class java.lang.Object
public void getLeftEyePosition(Point3d position)
position
- the object that will receive the left-eye's position
in head coordinatespublic void setLeftEyePosition(Point3d position)
position
- the left-eye's position in head coordinatespublic void getRightEyePosition(Point3d position)
position
- the object that will receive the right-eye's position
in head coordinatespublic void setRightEyePosition(Point3d position)
position
- the right-eye's position in head coordinatespublic void getLeftEarPosition(Point3d position)
position
- the object that will receive the left-ear's position
in head coordinatespublic void setLeftEarPosition(Point3d position)
position
- the left-ear's position in head coordinatespublic void getRightEarPosition(Point3d position)
position
- the object that will receive the right-ear's position
in head coordinatespublic void setRightEarPosition(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 transform
BadTransformException
- if the transform is not rigidpublic void getHeadToHeadTracker(Transform3D t)
t
- the object that will receive the transformprivate void initHeadToHeadTracker()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |