© 2006-2007 ETH Zurich

org.ximtec.igesture.algorithm.rubine3d.tools
Class Gesture3DTool

java.lang.Object
  extended by org.ximtec.igesture.algorithm.rubine3d.tools.Gesture3DTool

public class Gesture3DTool
extends Object


Constructor Summary
Gesture3DTool(String gestureSetName)
           
 
Method Summary
 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<RecordedGesture3D>> 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gesture3DTool

public Gesture3DTool(String gestureSetName)
Method Detail

initWiiMote

public void initWiiMote()
Initialises the WiiReader


disconnectWiiMote

public void disconnectWiiMote()
Disconnects the wiimote


setUI

public void setUI(Gesture3DToolUI ui)

getWiiReaderPanel

public WiiReaderPanel getWiiReaderPanel()
Returns the panel of the WiiReader in this controller

Returns:
The panel of the WiiReader in this controller

addGestureSet

public void addGestureSet(String setName)
Adds a new GestureSet with name setName to the database

Parameters:
setName - The name of the new GestureSet

getGestureSets

public List<GestureSet> getGestureSets()
Returns a list of all the GestureSets in the database

Returns:

getGestureSet

public GestureSet getGestureSet(String setName)
Returns GestureSet with name setName from the database

Parameters:
setName - The name of the GestureSet that is to be retrieved
Returns:
The retrieved GestureSet

addGestureClass

public void addGestureClass(String setName,
                            String className)
Adds a new gesture class with name className to a gesture set with name setName

Parameters:
setName -
className -

addCurrentGestureSampleToGestureClass

public 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. If no Sample3DDescriptor is present in the gesture class a new one is created

Parameters:
setName - The name of the gesture set that contains the gesture class
className - The name of the gesture class the sample should be added to

getGestureSamples

public List<Gesture<RecordedGesture3D>> getGestureSamples(String setName,
                                                          String className)
Returns a list of gesture samples from gesture class with name className from gesture set with name setName

Parameters:
setName - The name of the gesture set to look in
className - The name of the gesture class to look in
Returns:
The list of found gesture samples

recognise

public void recognise(String setName)
Recognises the current gesture from the WiiReader against the gesture set with name setName

Parameters:
setName - the set to be recognised against

removeSample

public 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

Parameters:
setName -
className -
sampleNumber -

removeSet

public void removeSet(String setName)
Removes the gesture set with name setName from storage

Parameters:
setName -

removeClass

public void removeClass(String setName,
                        String className)
Removes the gesture class with name className from gesture set with name setName in storage

Parameters:
setName -
className -

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.