© 2006-2007 ETH Zurich

org.ximtec.igesture.core
Class GestureSample3D

java.lang.Object
  extended by org.ximtec.igesture.core.DefaultPropertyChangeNotifier
      extended by org.ximtec.igesture.core.DefaultDataObject
          extended by org.ximtec.igesture.core.GestureSample3D
All Implemented Interfaces:
Serializable, Cloneable, DataObject, Gesture<RecordedGesture3D>, PropertyChangeNotifier

public class GestureSample3D
extends DefaultDataObject
implements Cloneable, Gesture<RecordedGesture3D>

See Also:
Serialized Form

Field Summary
static String PROPERTY_GESTURE
           
static String PROPERTY_NAME
           
 
Fields inherited from class org.ximtec.igesture.core.DefaultDataObject
PROPERTY_ID
 
Fields inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier
propertyChangeSupport
 
Constructor Summary
GestureSample3D(GestureDevice<?,?> device, String name, RecordedGesture3D gesture)
          Constructs a new GestureSample3D.
GestureSample3D(String name, RecordedGesture3D gesture)
          Constructs a new GestureSample3D.
 
Method Summary
 RecordedGesture3D getGesture()
          Returns the gesture sample.
 String getName()
          Returns the sample name
 GestureDevice<?,?> getSource()
          Get the source device of the gesture.
 void setGesture(RecordedGesture3D gesture)
          Sets the sample gesture.
 void setName(String name)
          Sets the sample name.
 void setSource(GestureDevice<?,?> device)
          Set the source device of the gesture.
 List<Gesture<org.sigtec.ink.Note>> splitToPlanes()
          Splits RecordedGesture3D gesture into three 2D planes.
 
Methods inherited from class org.ximtec.igesture.core.DefaultDataObject
accept, getId, setId
 
Methods inherited from class org.ximtec.igesture.core.DefaultPropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ximtec.igesture.core.Gesture
accept
 
Methods inherited from interface org.ximtec.igesture.core.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

PROPERTY_NAME

public static final String PROPERTY_NAME
See Also:
Constant Field Values

PROPERTY_GESTURE

public static final String PROPERTY_GESTURE
See Also:
Constant Field Values
Constructor Detail

GestureSample3D

public GestureSample3D(String name,
                       RecordedGesture3D gesture)
Constructs a new GestureSample3D.

Parameters:
name - the name of the gesture sample.
note - the recordedgesture3d of the gesture sample.

GestureSample3D

public GestureSample3D(GestureDevice<?,?> device,
                       String name,
                       RecordedGesture3D gesture)
Constructs a new GestureSample3D.

Parameters:
device - the source device of the gesture sample
name - the name of the gesture sample
gesture - the recordedgesture3d of the gesture sample
Method Detail

setName

public void setName(String name)
Sets the sample name.

Specified by:
setName in interface Gesture<RecordedGesture3D>
Parameters:
name - the name to be set.

getName

public String getName()
Returns the sample name

Specified by:
getName in interface Gesture<RecordedGesture3D>
Returns:
the name of the gesture.

setGesture

public void setGesture(RecordedGesture3D gesture)
Sets the sample gesture.

Parameters:
gesture - the gesture to be set.

getGesture

public RecordedGesture3D getGesture()
Returns the gesture sample.

Specified by:
getGesture in interface Gesture<RecordedGesture3D>
Returns:
the gesture.

splitToPlanes

public List<Gesture<org.sigtec.ink.Note>> splitToPlanes()
Splits RecordedGesture3D gesture into three 2D planes. The XY-Plane is defined as the plane in 3D space where z=0. The YZ-Plane is defined as the plane in 3D space where x=0. The ZX-Plane is defined as the plane in 3D space where y=0.

Returns:
The list of 2D gestures that are the planes. First XY, then YZ and then ZX.

getSource

public GestureDevice<?,?> getSource()
Description copied from interface: Gesture
Get the source device of the gesture.

Specified by:
getSource in interface Gesture<RecordedGesture3D>
Returns:
The source device.

setSource

public void setSource(GestureDevice<?,?> device)
Description copied from interface: Gesture
Set the source device of the gesture.

Specified by:
setSource in interface Gesture<RecordedGesture3D>
Parameters:
device - The source device.

© 2006-2007 ETH Zurich

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