com.sun.j3d.utils.universe
Class ConfigPhysicalBody

java.lang.Object
  extended by com.sun.j3d.utils.universe.ConfigObject
      extended by com.sun.j3d.utils.universe.ConfigPhysicalBody

 class ConfigPhysicalBody
extends ConfigObject


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

leftEyePosition

Point3d leftEyePosition

rightEyePosition

Point3d rightEyePosition

stereoEyeSeparation

double stereoEyeSeparation

leftEarPosition

Point3d leftEarPosition

rightEarPosition

Point3d rightEarPosition

nominalEyeHeightFromGround

double nominalEyeHeightFromGround

nominalEyeOffsetFromNominalScreen

double nominalEyeOffsetFromNominalScreen

headToHeadTracker

Matrix4d headToHeadTracker

j3dPhysicalBody

PhysicalBody j3dPhysicalBody
Constructor Detail

ConfigPhysicalBody

ConfigPhysicalBody()
Method Detail

initialize

protected void initialize(ConfigCommand command)
Description copied from class: ConfigObject
The base initialize() implementation. This takes a ConfigCommand with three arguments: the command name, the instance name, and the name of the target class this ConfigObject is configuring. The command in the configuration file should have the form:

(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.

Overrides:
initialize in class ConfigObject
Parameters:
command - the command that created this ConfigObject

setProperty

protected void setProperty(ConfigCommand command)
Description copied from class: ConfigObject
The base setProperty() implementation. This implementation assumes the property needs to be set by introspection on the property name as a method that accepts an array of Objects. That is, the command in the configuration file is of the form:

({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.

Overrides:
setProperty in class ConfigObject
Parameters:
command - the command that invoked this method

createJ3dPhysicalBody

PhysicalBody createJ3dPhysicalBody()


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.