|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiusej.wiiusejevents.GenericEvent
wiiusej.wiiusejevents.physicalevents.IREvent
public class IREvent
Class which represents an IR event.
Field Summary | |
---|---|
private int |
ax
|
private int |
ay
|
private float |
distance
|
private short |
indexPoints
|
private IRSource[] |
IRPoints
|
private short |
irSensitivity
|
private static short |
NB_POINTS
|
private short |
screenAsPectRatio
|
private short |
sensorBarPostion
|
private static short |
WIIUSE_IR_ABOVE
|
private static short |
WIIUSE_IR_BELOW
|
private static short |
WIIUSE_SCREEN_RATIO_16_9
|
private static short |
WIIUSE_SCREEN_RATIO_4_3
|
private int |
x
|
private int |
xOffset
|
private int |
xVRes
|
private int |
y
|
private int |
yOffset
|
private int |
yVRes
|
private float |
z
|
Constructor Summary | |
---|---|
IREvent(int id,
int x,
int y,
float z,
int ax,
int ay,
int xVRes,
int yVRes,
int xOffset,
int yOffset,
short sensorBarPostion,
short screenAsPectRatio,
short irSensitivity,
float distance)
Constructor of IREvent with full infos. |
Method Summary | |
---|---|
void |
addIRpoint(int x,
int y,
short rx,
short ry,
short size)
Add IR Point in the list (Max 4 points) |
int |
getAx()
Return absolute X coordinate. |
int |
getAy()
Return absolute Y coordinate. |
float |
getDistance()
Pixel distance between first 2 dots. |
IRSource[] |
getIRPoints()
Get list of IR points. |
short |
getIrSensitivity()
The sensitivity of the IR camera can be turned up or down depending on your needs. |
short |
getScreenAsPectRatio()
Return aspect ratio of the screen. |
int |
getX()
Return calculated X coordinate. |
int |
getXOffset()
Return IR X correction offset. |
int |
getXVRes()
Return IR virtual screen x resolution. |
int |
getY()
Return calculated Y coordinate. |
int |
getYOffset()
Return IR Y correction offset. |
int |
getYVRes()
Return IR virtual screen y resolution. |
float |
getZ()
Return calculated distance. |
boolean |
isScreenAspectRatio169()
Return true if screen aspect ratio set is 16/9. |
boolean |
isScreenAspectRatio43()
Return true if screen aspect ratio set is 4/3. |
boolean |
isSensorBarAbove()
Return true if the sensor bar is above. |
boolean |
isSensorBarBelow()
Return true if the sensor bar is below. |
java.lang.String |
toString()
|
Methods inherited from class wiiusej.wiiusejevents.GenericEvent |
---|
getWiimoteId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private IRSource[] IRPoints
private short indexPoints
private int x
private int y
private float z
private int ax
private int ay
private int xVRes
private int yVRes
private int xOffset
private int yOffset
private short sensorBarPostion
private short screenAsPectRatio
private short irSensitivity
private float distance
private static short WIIUSE_IR_ABOVE
private static short WIIUSE_IR_BELOW
private static short WIIUSE_SCREEN_RATIO_4_3
private static short WIIUSE_SCREEN_RATIO_16_9
private static short NB_POINTS
Constructor Detail |
---|
public IREvent(int id, int x, int y, float z, int ax, int ay, int xVRes, int yVRes, int xOffset, int yOffset, short sensorBarPostion, short screenAsPectRatio, short irSensitivity, float distance)
id
- d of the wiimote concerned.x
- calculated X coordinate.y
- calculated Y coordinate.z
- calculated distance.ax
- absolute X coordinate.ay
- absolute Y coordinatexVRes
- IR virtual screen x resolution.yVRes
- IR virtual screen y resolution.xOffset
- IR X correction offset.yOffset
- IR Y correction offset.sensorBarPostion
- aspect ratio of the screen.screenAsPectRatio
- IR sensor bar position.irSensitivity
- Sensitivity of the infrared camera.distance
- Pixel Distance between first two dotsMethod Detail |
---|
public IRSource[] getIRPoints()
public void addIRpoint(int x, int y, short rx, short ry, short size)
x
- x valuey
- y valuerx
- raw X coordinate (0-1023).ry
- raw Y coordinate (0-1023).size
- size of the IR dot (0-15).public int getX()
public int getY()
public float getZ()
public int getAx()
public int getAy()
public int getXVRes()
public int getYVRes()
public int getXOffset()
public int getYOffset()
public boolean isSensorBarAbove()
public boolean isSensorBarBelow()
public boolean isScreenAspectRatio43()
public boolean isScreenAspectRatio169()
public short getScreenAsPectRatio()
public short getIrSensitivity()
public float getDistance()
public java.lang.String toString()
toString
in class GenericEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |