class ConfigPhysicalBody extends ConfigObject
| Modifier and Type | Field and Description |
|---|---|
(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 |
aliases, baseName, classLoader, configContainer, creatingCommand, instanceName, isAlias, original, properties, targetClass, targetClassName, targetObject| Constructor and Description |
|---|
ConfigPhysicalBody() |
| Modifier and Type | Method and Description |
|---|---|
(package private) PhysicalBody |
createJ3dPhysicalBody() |
protected void |
initialize(ConfigCommand command)
The base initialize() implementation.
|
protected void |
setProperty(ConfigCommand command)
The base setProperty() implementation.
|
createTargetObject, errorMessage, evaluateProperties, getClassForName, getNewInstance, isName, processProperties, setClassLoader, syntaxErrorPoint3d leftEyePosition
Point3d rightEyePosition
double stereoEyeSeparation
Point3d leftEarPosition
Point3d rightEarPosition
double nominalEyeHeightFromGround
double nominalEyeOffsetFromNominalScreen
Matrix4d headToHeadTracker
PhysicalBody j3dPhysicalBody
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 ConfigObjectcommand - 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 ConfigObjectcommand - the command that invoked this methodPhysicalBody createJ3dPhysicalBody()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.