Package uk.ac.qmul.eecs.depic.jhapticgui
Interface Haptics
-
- All Known Implementing Classes:
- HapticDevice
public interface Haptics
An interface for objects that implement haptics, that is any form of interaction involving the sense of touch.
-
-
Method Summary
All Methods Instance Methods Abstract 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
void sendMessage(java.lang.String command, java.lang.String args, int ID)
Sends a message to the haptic device.- 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
HapticListener getListener()
Returns a handle to the haptic listener associated to this object.- Returns:
- a reference to a
HapticListener
object
-
dispose
void dispose()
Disposes the haptics: stops any form of interation based on haptics.
-
-