com.sun.j3d.utils.universe
Class ConfigSensor

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

 class ConfigSensor
extends ConfigObject


Field Summary
private  ConfigDevice configDevice
           
private  Point3d hotspot
           
(package private)  Sensor j3dSensor
          The corresponding Java 3D core Sensor instance.
private  int predictionPolicy
           
private  int predictor
           
private  int sensorIndex
           
private  int sensorReadCount
           
 
Fields inherited from class com.sun.j3d.utils.universe.ConfigObject
aliases, baseName, classLoader, configContainer, creatingCommand, instanceName, isAlias, original, properties, targetClass, targetClassName, targetObject
 
Constructor Summary
ConfigSensor()
           
 
Method Summary
(package private)  void configureSensor()
          This method is called after all InputDevice implementations have been instantiated and initialized.
protected  void initialize(ConfigCommand command)
          Handles the command (NewSensor {instanceName} {inputDeviceName} {indexInInputDevice})
protected  void setProperty(ConfigCommand command)
          Handles the commands (SensorAttribute {instanceName} {attributeName} {attributeValue}) and (SensorProperty {instanceName} {attributeName} {attributeValue}).
 
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

sensorIndex

private int sensorIndex

configDevice

private ConfigDevice configDevice

hotspot

private Point3d hotspot

predictor

private int predictor

predictionPolicy

private int predictionPolicy

sensorReadCount

private int sensorReadCount

j3dSensor

Sensor j3dSensor
The corresponding Java 3D core Sensor instance. This is created by the associated InputDevice.

Constructor Detail

ConfigSensor

ConfigSensor()
Method Detail

initialize

protected void initialize(ConfigCommand command)
Handles the command (NewSensor {instanceName} {inputDeviceName} {indexInInputDevice})

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

setProperty

protected void setProperty(ConfigCommand command)
Handles the commands (SensorAttribute {instanceName} {attributeName} {attributeValue}) and (SensorProperty {instanceName} {attributeName} {attributeValue}).

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

configureSensor

void configureSensor()
This method is called after all InputDevice implementations have been instantiated and initialized. All the specified attributes for this sensor are set in the corresponding Java3D core Sensor instantiated by the associated InputDevice.



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