public class WiiReader extends AbstractGestureDevice<Note3D,Point3D> implements org.wiigee.event.ButtonListener, org.wiigee.event.AccelerationListener
| Constructor and Description |
|---|
WiiReader()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
accelerationReceived(org.wiigee.event.AccelerationEvent event)
This method is executed when an acceleration event is received from the
wiimote.
|
void |
buttonPressReceived(org.wiigee.event.ButtonPressedEvent event)
When the recording button is pressed this method starts recording
|
void |
buttonReleaseReceived(org.wiigee.event.ButtonReleasedEvent event)
When the button is released the recoding stops and the recorded gesture
is displayed on the panel
|
void |
clear()
Clears the WiiReader
|
void |
connect()
Connect the device.
|
void |
disconnect()
Disconnects the WiiMote
|
void |
dispose()
Disposes the device.
|
List<Point3D> |
getChunks()
Returns chunks of a gesture while drawing it.
|
Gesture<Note3D> |
getGesture()
Returns a copy of the recorded gesture in a GestureSample3D
|
WiiReaderPanel |
getPanel()
Returns the panel with standard dimension
|
WiiReaderPanel |
getPanel(Dimension dimension)
Returns the panel
|
void |
init()
Initializes the WiiReader, starts device detection etc.
|
void |
motionStartReceived(org.wiigee.event.MotionStartEvent event) |
void |
motionStopReceived(org.wiigee.event.MotionStopEvent event) |
void |
setRecogniser(Recogniser recogniser) |
addGestureHandler, fireGestureEvent, getConnectionType, getDeviceClass, getDeviceID, getDeviceType, getName, isConnectable, isConnected, isDefaultDevice, isDisconnectable, removeAllGestureHandler, removeAllListener, removeGestureHandler, setConnectionType, setDefaultDevice, setDeviceID, setDeviceType, setIsConnected, setName, toStringpublic WiiReaderPanel getPanel()
public WiiReaderPanel getPanel(Dimension dimension)
dimension - The dimension of the panelpublic void clear()
clear in interface GestureDevice<Note3D,Point3D>public void dispose()
GestureDevicedispose in interface GestureDevice<Note3D,Point3D>public List<Point3D> getChunks()
GestureDevicegetChunks in interface GestureDevice<Note3D,Point3D>public Gesture<Note3D> getGesture()
getGesture in interface GestureDevice<Note3D,Point3D>public void init()
init in interface GestureDevice<Note3D,Point3D>public void disconnect()
disconnect in interface Devicedisconnect in class AbstractGestureDevice<Note3D,Point3D>public void buttonPressReceived(org.wiigee.event.ButtonPressedEvent event)
buttonPressReceived in interface org.wiigee.event.ButtonListenerpublic void buttonReleaseReceived(org.wiigee.event.ButtonReleasedEvent event)
buttonReleaseReceived in interface org.wiigee.event.ButtonListenerpublic void accelerationReceived(org.wiigee.event.AccelerationEvent event)
accelerationReceived in interface org.wiigee.event.AccelerationListenerpublic void motionStartReceived(org.wiigee.event.MotionStartEvent event)
motionStartReceived in interface org.wiigee.event.AccelerationListenerpublic void motionStopReceived(org.wiigee.event.MotionStopEvent event)
motionStopReceived in interface org.wiigee.event.AccelerationListenerpublic void setRecogniser(Recogniser recogniser)
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.