|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.utils.universe.ConfigObject
com.sun.j3d.utils.universe.ConfigPhysicalBody
class ConfigPhysicalBody
Field Summary | |
---|---|
(package private) Matrix4d |
headToHeadTracker
|
(package private) PhysicalBody |
j3dPhysicalBody
|
(package private) Point3d |
leftEarPosition
|
(package private) Point3d |
leftEyePosition
|
(package private) double |
nominalEyeHeightFromGround
|
(package private) double |
nominalEyeOffsetFromNominalScreen
|
(package private) Point3d |
rightEarPosition
|
(package private) Point3d |
rightEyePosition
|
(package private) double |
stereoEyeSeparation
|
Fields inherited from class com.sun.j3d.utils.universe.ConfigObject |
---|
aliases, baseName, classLoader, configContainer, creatingCommand, instanceName, isAlias, original, properties, targetClass, targetClassName, targetObject |
Constructor Summary | |
---|---|
ConfigPhysicalBody()
|
Method Summary | |
---|---|
(package private) PhysicalBody |
createJ3dPhysicalBody()
|
protected void |
initialize(ConfigCommand command)
The base initialize() implementation. |
protected void |
setProperty(ConfigCommand command)
The base setProperty() implementation. |
Methods inherited from class com.sun.j3d.utils.universe.ConfigObject |
---|
createTargetObject, errorMessage, evaluateProperties, getClassForName, getNewInstance, isName, processProperties, setClassLoader, syntaxError |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Point3d leftEyePosition
Point3d rightEyePosition
double stereoEyeSeparation
Point3d leftEarPosition
Point3d rightEarPosition
double nominalEyeHeightFromGround
double nominalEyeOffsetFromNominalScreen
Matrix4d headToHeadTracker
PhysicalBody j3dPhysicalBody
Constructor Detail |
---|
ConfigPhysicalBody()
Method Detail |
---|
protected void initialize(ConfigCommand command)
ConfigObject
(New{configType} {instanceName} {className})
For example, (NewDevice tracker com.sun.j3d.input.LogitechTracker) will first cause ConfigDevice to be instantiated, which will then be initialized with this method. After all the properties are collected, ConfigDevice will instantiate com.sun.j3d.input.LogitechTracker, evaluate its properties, and allow references to it in the configuration file by the name "tracker".
It's assumed the target class will be instantiated through introspection and its properties set through introspection as well. Most config objects (ConfigScreen, ConfigView, ConfigViewPlatform, ConfigPhysicalBody, and ConfigPhysicalEnvironment) target a concrete core Java 3D class and will instantiate them directly, so they override this method.
initialize
in class ConfigObject
command
- the command that created this ConfigObjectprotected void setProperty(ConfigCommand command)
ConfigObject
({type}Property {instance name} {method name} {arg0} ... {argn})
For example, (DeviceProperty tracker SerialPort "/dev/ttya") will invoke the method named "SerialPort" in the object referenced by "tracker" with an array of 1 Object containing the String "/dev/ttya".
The property is stored as the original ConfigCommand and is evaluated after the configuration file has been parsed. It is overridden by subclasses that instantiate concrete core Java 3D classes with known method names.
setProperty
in class ConfigObject
command
- the command that invoked this methodPhysicalBody createJ3dPhysicalBody()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |