|
NCSA Portfolio | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ncsa.devices.spaceorb.SpaceOrb
This is the j3d implementation for the space orb device.
Fields inherited from interface javax.media.j3d.InputDevice |
BLOCKING,
DEMAND_DRIVEN,
NON_BLOCKING,
POLLED,
STREAMING |
Constructor Summary | |
SpaceOrb()
This is default for com1 on a sparc needs to be changed. |
|
SpaceOrb(java.lang.String port)
Opens the space orb device and starts reading from the serial port. |
Method Summary | |
void |
close()
Default implementation for InputDevice.close() |
int |
getProcessingMode()
Returns the current processing mdoe for this InputDevice. |
javax.media.j3d.Sensor |
getSensor(int index)
Returns the sensor at the specified index. |
int |
getSensorCount()
Returns the number of sensors used by this device. |
boolean |
initialize()
The default implementation of initialize. |
void |
pollAndProcessInput()
The method to sample the device. |
void |
processStreamInput()
Empty method. |
void |
setNominalPositionAndOrientation()
Empty method. |
void |
setProcessingMode(int mode)
The processing mode does not change. |
void |
setRotationScale(float value)
Method to scale the rotation. |
void |
setTranslationScale(float value)
Method to scale the translation. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public SpaceOrb()
public SpaceOrb(java.lang.String port)
port
- The comm port to use.Method Detail |
public void setRotationScale(float value)
value
- The new value. 1.0f would be no scale.public void setTranslationScale(float value)
value
- The new value. 512(the default) would put the
values between [-1,1].public final void pollAndProcessInput()
public void close()
public int getProcessingMode()
public int getSensorCount()
public javax.media.j3d.Sensor getSensor(int index)
index
- The index of the sensor to return.public boolean initialize()
public void processStreamInput()
public void setNominalPositionAndOrientation()
public void setProcessingMode(int mode)
mode
- This parameter does not matter.
|
NCSA Portfolio | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |