|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwiiusej.wiiuseapievents.WiimoteEvent
wiiusej.wiiuseapievents.IREvent
public class IREvent
Class which represents an IR event.
Field Summary | |
---|---|
private int |
ax
|
private int |
ay
|
private short |
indexPoints
|
private IRSource[] |
IRPoints
|
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 int |
z
|
Constructor Summary | |
---|---|
IREvent(int id,
int x,
int y,
int z,
int ax,
int ay,
int xVRes,
int yVRes,
int xOffset,
int yOffset,
short sensorBarPostion,
short screenAsPectRatio)
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. |
IRSource[] |
getIRPoints()
Get list of IR points. |
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. |
int |
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.wiiuseapievents.WiimoteEvent |
---|
getWiimoteId, setWiimoteId |
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 int 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 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, int z, int ax, int ay, int xVRes, int yVRes, int xOffset, int yOffset, short sensorBarPostion, short screenAsPectRatio)
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.Method 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 int 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 java.lang.String toString()
toString
in class WiimoteEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |