© 2006-2007 ETH Zurich

org.ximtec.igesture.algorithm.signature
Class GestureSignature

java.lang.Object
  extended by org.ximtec.igesture.algorithm.signature.GestureSignature

public class GestureSignature
extends Object

Interface for distance functions.

Version:
1.0 Dec 2006
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch

Nested Class Summary
 class GestureSignature.Position
           
 
Constructor Summary
GestureSignature(org.sigtec.ink.Note note, GestureClass gestureClass, int rasterSize, int gridSize)
          Constructs a new gesture signature.
 
Method Summary
 void addSignature(BitSet bit)
          Appends a point (signature point) to the gesture signature.
 int getBitStringLength()
          Returns the lenght of the bit string for a single point.
 GestureClass getGestureClass()
          Returns the gesture class this signature belongs to.
 int getNumberOfPoints()
          Returns the number of points in the signature.
 BitSet getPointSignature(int index)
          Returns the signature for the point at position index.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GestureSignature

public GestureSignature(org.sigtec.ink.Note note,
                        GestureClass gestureClass,
                        int rasterSize,
                        int gridSize)
Constructs a new gesture signature.

Parameters:
note - the note.
gestureClass - the gesture class.
rasterSize - the raster's size.
gridSize - the number of cells the grid have in a row.
Method Detail

addSignature

public void addSignature(BitSet bit)
Appends a point (signature point) to the gesture signature.

Parameters:
bit - the signature point to be added.

getPointSignature

public BitSet getPointSignature(int index)
Returns the signature for the point at position index.

Parameters:
index - the position of the signature to be returned.
Returns:
the signature for the point at position index.

getNumberOfPoints

public int getNumberOfPoints()
Returns the number of points in the signature.

Returns:
the number of points in the signature.

getBitStringLength

public int getBitStringLength()
Returns the lenght of the bit string for a single point.

Returns:
the lenght of the bit string for a single point.

getGestureClass

public GestureClass getGestureClass()
Returns the gesture class this signature belongs to.

Returns:
the gesture class this signature belongs to.

toString

public String toString()
Overrides:
toString in class Object

© 2006-2007 ETH Zurich

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