public class Gesture3DTool extends Object
| Constructor and Description |
|---|
Gesture3DTool(String gestureSetName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCurrentGestureSampleToGestureClass(String setName,
String className)
Adds the gesture sample that is read by the WiiReader reader to the
Sample3DDescriptor in gesture class with name className in gesture set
with name setName.
|
void |
addGestureClass(String setName,
String className)
Adds a new gesture class with name className to a gesture set with name
setName
|
void |
addGestureSet(String setName)
Adds a new GestureSet with name setName to the database
|
void |
disconnectWiiMote()
Disconnects the wiimote
|
List<Gesture<Note3D>> |
getGestureSamples(String setName,
String className)
Returns a list of gesture samples from gesture class with name className
from gesture set with name setName
|
GestureSet |
getGestureSet(String setName)
Returns GestureSet with name setName from the database
|
List<GestureSet> |
getGestureSets()
Returns a list of all the GestureSets in the database
|
WiiReaderPanel |
getWiiReaderPanel()
Returns the panel of the WiiReader in this controller
|
void |
initWiiMote()
Initialises the WiiReader
|
void |
recognise(String setName)
Recognises the current gesture from the WiiReader against the gesture set
with name setName
|
void |
removeClass(String setName,
String className)
Removes the gesture class with name className from gesture set with name
setName in storage
|
void |
removeSample(String setName,
String className,
int sampleNumber)
Removes Sample with the number sampleNumber from the gesture class with
name className from gesture set with name setName
|
void |
removeSet(String setName)
Removes the gesture set with name setName from storage
|
void |
setUI(Gesture3DToolUI ui) |
public Gesture3DTool(String gestureSetName)
public void initWiiMote()
public void disconnectWiiMote()
public void setUI(Gesture3DToolUI ui)
public WiiReaderPanel getWiiReaderPanel()
public void addGestureSet(String setName)
setName - The name of the new GestureSetpublic List<GestureSet> getGestureSets()
public GestureSet getGestureSet(String setName)
setName - The name of the GestureSet that is to be retrievedpublic void addGestureClass(String setName, String className)
setName - className - public void addCurrentGestureSampleToGestureClass(String setName, String className)
setName - The name of the gesture set that contains the gesture classclassName - The name of the gesture class the sample should be added topublic List<Gesture<Note3D>> getGestureSamples(String setName, String className)
setName - The name of the gesture set to look inclassName - The name of the gesture class to look inpublic void recognise(String setName)
setName - the set to be recognised againstpublic void removeSample(String setName, String className, int sampleNumber)
setName - className - sampleNumber - public void removeSet(String setName)
setName - Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.