Package uk.ac.qmul.eecs.depic.jhapticgui
Class HapticDevice
- java.lang.Object
-
- uk.ac.qmul.eecs.depic.jhapticgui.HapticDevice
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
Disposes the haptics: stops any form of interation based on haptics.HapticListener
getListener()
Returns a handle to the haptic listener associated to this object.void
sendMessage(java.lang.String command, java.lang.String args, int ID)
Sends a message to the haptic device.
-
-
-
Method Detail
-
sendMessage
public void sendMessage(java.lang.String command, java.lang.String args, int ID)
Sends a message to the haptic device.- Specified by:
sendMessage
in interfaceHaptics
- Parameters:
command
- the command to execute. Examples could be"display shape"
or"render force"
args
- arguments of the command. Often position coordinates referring to haptic forces being put in placeID
- an (optional) unique identifier for the haptic object this message refers to
-
getListener
public HapticListener getListener()
Returns a handle to the haptic listener associated to this object.- Specified by:
getListener
in interfaceHaptics
- Returns:
- a reference to a
HapticListener
object
-
-