| java.lang.Object com.sun.j3d.utils.trackers.Tracker com.sun.j3d.utils.trackers.SharedMemoryPushTracker
SharedMemoryPushTracker | public class SharedMemoryPushTracker extends Tracker (Code) | | NOTE: this class is very much out of date. It is using deprecated
and unimplemented 1.1 API constants (POLLED and STREAMING) that are
now gone in 1.2. The offending lines have been commented out
and marked with an "OBSOLETE:" comment.
The SharedMemoryPushTracker Class defines the code to make a sharedMemoryPush input
device work correclty
version: 1.5, 99/09/15 13:47:24 author: Henry Sowizral |
Method Summary | |
native int | ProcessStream(int sensorIndex, float PosOrient, int Buttons) | native int | StartUp(String filename) | public boolean | initialize() | public boolean | initialize(int baudRate) Initializes the SharedMemoryPush deviceFilename by opening the
device and sending the SharedMemoryPush the initialization information. | public void | pollAndProcessInput() Code to poll and then process the input from a sharedMemoryPush. | public void | processStreamInput() Code to process the device's streaming input. | void | setMatrixFromValues(float posOrient, Matrix3d Delta) | public void | setNominalPositionAndOrientation() Code to set the device's current position and orientation as the devices
nominal position and orientation(establish its reference frame relative
to the "Tracker base" reference frame). |
ButtonArray | static int[] ButtonArray(Code) | | |
ButtonCount | final static int ButtonCount(Code) | | |
PositionOrientation | static float PositionOrientation(Code) | | |
SensorCount | final static int SensorCount(Code) | | |
currentSensor | int currentSensor(Code) | | |
deviceEulerAngles | Vector3d deviceEulerAngles(Code) | | |
deviceTranslateValues | Vector3d deviceTranslateValues(Code) | | |
newLocation | Vector3d newLocation(Code) | | |
newMatrix | Matrix3d newMatrix(Code) | | |
oldLocation | Vector3d oldLocation(Code) | | |
oldMatrix | Matrix3d oldMatrix(Code) | | |
tmpMatrix | Matrix3d tmpMatrix(Code) | | |
tmpVector | Vector3d tmpVector(Code) | | |
SharedMemoryPushTracker | public SharedMemoryPushTracker(View view, String deviceFilename, int mode, int sensorCount, int buttonCount)(Code) | | Construct a new SharedMemoryPushTracker
Parameters: view - the view object Parameters: mode - the mode of access one of POLLED or STREAMING Parameters: sensorCount - the number of sensors associated with this sharedMemoryPush Parameters: buttonCount - the number of buttons associated with each sensor |
SharedMemoryPushTracker | public SharedMemoryPushTracker(View view, String masterFilename, String slaveFilename, int mode, int sensorCount, int buttonCount)(Code) | | Construct a new SharedMemoryPushTracker with a hand tracker
Parameters: view - the view object Parameters: masterFilename - the SharedMemoryPush's master port device name Parameters: mode - the mode of access one of POLLED or STREAMING Parameters: sensorCount - the number of sensors associated with this sharedMemoryPush Parameters: buttonCount - the number of buttons associated with each sensor |
ProcessStream | native int ProcessStream(int sensorIndex, float PosOrient, int Buttons)(Code) | | |
initialize | public boolean initialize()(Code) | | Code to initialize the device
Parameters: deviceFilename - |
initialize | public boolean initialize(int baudRate)(Code) | | Initializes the SharedMemoryPush deviceFilename by opening the
device and sending the SharedMemoryPush the initialization information.
Parameters: deviceFilename - the SharedMemoryPush's deviceFilename Parameters: baudRate - the speed we want the SharedMemoryPush to run at |
pollAndProcessInput | public void pollAndProcessInput()(Code) | | Code to poll and then process the input from a sharedMemoryPush.
|
processStreamInput | public void processStreamInput()(Code) | | Code to process the device's streaming input.
|
setMatrixFromValues | void setMatrixFromValues(float posOrient, Matrix3d Delta)(Code) | | Code to construct a delta Matrix from SharedMemoryPush inputs
|
setNominalPositionAndOrientation | public void setNominalPositionAndOrientation()(Code) | | Code to set the device's current position and orientation as the devices
nominal position and orientation(establish its reference frame relative
to the "Tracker base" reference frame).
|
|
|