org.wiigee.event
Class InfraredEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.wiigee.event.InfraredEvent
All Implemented Interfaces:
java.io.Serializable

public class InfraredEvent
extends java.util.EventObject

An infrared event consists of a set of coordinates, containing values from [0, 1024] in width to [0, 768] in height. for each point there is a given size and if the detected infrared spot is valid.

See Also:
Serialized Form

Field Summary
protected  int[][] coordinates
           
protected  int[] size
           
protected  boolean[] valid
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
InfraredEvent(org.wiigee.device.Device source, int[][] coordinates, int[] size)
           
 
Method Summary
 int[][] getCoordinates()
           
 int[] getSize()
           
 boolean[] getValids()
           
 boolean isValid(int i)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

coordinates

protected int[][] coordinates

size

protected int[] size

valid

protected boolean[] valid
Constructor Detail

InfraredEvent

public InfraredEvent(org.wiigee.device.Device source,
                     int[][] coordinates,
                     int[] size)
Method Detail

getValids

public boolean[] getValids()

isValid

public boolean isValid(int i)

getCoordinates

public int[][] getCoordinates()

getSize

public int[] getSize()