All Packages Class Hierarchy This Package Previous Next Index
Class java.media.j3d.Sensor
java.lang.Object
|
+----java.media.j3d.Sensor
- public class Sensor
- extends Object
A Sensor object containing the sensor's hotspot in that Sensor's
coordinate system together with a series of timestamped
SensorReading-objects and their associated Button-state array.
-
HAND_PREDICTOR
- Assume the sensor is predicting hand position/orientation
-
HEAD_PREDICTOR
- Assume the sensor is predicting head position/orientation
-
NO_PREDICTOR
- Use no prediction policy
-
PREDICT_NEXT_FRAME_TIME
- Generate the value to correspond with the next frame time
-
PREDICT_NONE
- Do no prediction
-
Sensor()
- Construct a new sensor, consisting of a set of readings and
an a hot spot at (0.0, 0.0, 0.0) in its own coordinate system.
-
Sensor(double, double, double)
- Construct a new sensor, consisting of a set of readings and
an offset defining the sensor's hot spot in its own coordinate
system.
-
Sensor(Point3d)
- Construct a new sensor, consisting of a set of readings and
an offset defining the sensor's hot spot in its own coordinate
system.
-
getHotspot(Point3d)
- Get the sensor's hotspot offset in this sensor's coordinate system.
-
getPredictionPolicy()
-
-
getPredictor()
-
-
getRead(Transform3D)
- Computes the sensor reading consistent with the prediction policy
and copies that value into the specified argument.
-
getRead(Transform3D, long)
- Computes the sensor reading consistent as of time deltaT in the future
and copies that value into the specified argument.
-
getSensorReadCount()
- Get the current sensor read count.
-
lastButtons()
- Returns the state of the buttons associated with the most recent sensor
reading.
-
lastButtons(int)
- Returns the state of the buttons associated with the kth most recent
sensor reading.
-
lastRead(Transform3D)
- Extracts the most recent sensor reading and copies that value into
the specified argument.
-
lastRead(Transform3D, int)
- Extracts the kth most recent sensor reading and copies that value into
the specified argument.
-
lastTime()
- Returns the time associated with the most recent sensor reading.
-
lastTime(int)
- Returns the time associated with the kth most recent sensor reading.
-
setHotspot(Point3d)
- Set the sensor's hotspot offset in this sensor's coordinate system.
-
setPredictionPolicy(int)
-
-
setPredictor(int)
-
-
setSensorReadCount(int)
- Set the number of sensor read objects per Sensor.
PREDICT_NONE
public static final int PREDICT_NONE
- Do no prediction
PREDICT_NEXT_FRAME_TIME
public static final int PREDICT_NEXT_FRAME_TIME
- Generate the value to correspond with the next frame time
NO_PREDICTOR
public static final int NO_PREDICTOR
- Use no prediction policy
HEAD_PREDICTOR
public static final int HEAD_PREDICTOR
- Assume the sensor is predicting head position/orientation
HAND_PREDICTOR
public static final int HAND_PREDICTOR
- Assume the sensor is predicting hand position/orientation
Sensor
public Sensor()
- Construct a new sensor, consisting of a set of readings and
an a hot spot at (0.0, 0.0, 0.0) in its own coordinate system.
Sensor
public Sensor(double x,
double y,
double z)
- Construct a new sensor, consisting of a set of readings and
an offset defining the sensor's hot spot in its own coordinate
system.
- Parameters:
- hotspot - The sensor's hotspot defined in its local coordinate
system.
Sensor
public Sensor(Point3d hotspot)
- Construct a new sensor, consisting of a set of readings and
an offset defining the sensor's hot spot in its own coordinate
system.
- Parameters:
- hotspot - The sensor's hotspot defined in its local coordinate
system.
setPredictor
public void setPredictor(int predictor)
getPredictor
public int getPredictor()
setPredictionPolicy
public void setPredictionPolicy(int policy)
getPredictionPolicy
public int getPredictionPolicy()
setHotspot
public void setHotspot(Point3d hotspot)
- Set the sensor's hotspot offset in this sensor's coordinate system.
- Parameters:
- hotspot - the sensor's new hotspot
getHotspot
public void getHotspot(Point3d hotspot)
- Get the sensor's hotspot offset in this sensor's coordinate system.
- Parameters:
- hotspot - the variable to receive the sensor's hotspot
getRead
public void getRead(Transform3D read)
- Computes the sensor reading consistent with the prediction policy
and copies that value into the specified argument.
- Parameters:
- read - The matrix that will receive the predicted sensor reading
getRead
public void getRead(Transform3D read,
long deltaT)
- Computes the sensor reading consistent as of time deltaT in the future
and copies that value into the specified argument.
- Parameters:
- read - The matrix that will receive the predicted sensor reading
- deltaT - The time delta into the future for this read
lastRead
public void lastRead(Transform3D read)
- Extracts the most recent sensor reading and copies that value into
the specified argument.
- Parameters:
- read - The matrix that will receive the most recent sensor reading
lastTime
public long lastTime()
- Returns the time associated with the most recent sensor reading.
- Returns:
- the time associated with the most recent sensor reading.
lastButtons
public boolean[] lastButtons()
- Returns the state of the buttons associated with the most recent sensor
reading.
- Returns:
- the state of the buttons associated with the most recent sensor
reading.
lastRead
public void lastRead(Transform3D read,
int kth)
- Extracts the kth most recent sensor reading and copies that value into
the specified argument.
- Parameters:
- read - The matrix that will receive the most recent sensor reading
lastTime
public long lastTime(int k)
- Returns the time associated with the kth most recent sensor reading.
- Returns:
- the time associated with the kthmost recent sensor reading.
lastButtons
public boolean[] lastButtons(int k)
- Returns the state of the buttons associated with the kth most recent
sensor reading.
- Returns:
- the state of the buttons associated with the kth most recent
sensor reading.
getSensorReadCount
public int getSensorReadCount()
- Get the current sensor read count.
- Returns:
- s the number of sensor read objects per sensor
setSensorReadCount
public void setSensorReadCount(int count)
- Set the number of sensor read objects per Sensor. This is a
calibration parameter that should be set before initializing Java 3D.
- Parameters:
- count - the new sensor read count
All Packages Class Hierarchy This Package Previous Next Index