|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vigia.client.driver.util.MovementProcessor
public class MovementProcessor
Transforms coordinates into PTZ and stores the position of the user
| Field Summary | |
|---|---|
protected Coordinates |
c
The coordinates of the user. |
protected static int |
HYSTERESIS_X
Hysteresis for the x coordinate. |
protected static int |
HYSTERESIS_Y
Hysteresis for the y coordinate. |
protected static float |
HYSTERESIS_Z
Hysteresis for the z coordinate. |
protected boolean |
init
True if no movement has been processed |
| Constructor Summary | |
|---|---|
MovementProcessor()
Constructor. |
|
| Method Summary | |
|---|---|
protected int |
calculatePan(int x,
int y,
float z,
int xVRes)
Calculates the pan movement. |
PTZ |
calculatePTZ(Coordinates c,
int xVRes,
int yVRes)
Calculates the ptz movement. |
protected int |
calculateTilt(int x,
int y,
float z,
int yVRes)
Calculates the tilt movement. |
protected int |
calculateZoom(float z)
Calculates the zoom movement. |
protected boolean |
movePan(int x)
Decides if a pan movement needs to be done. |
protected boolean |
moveTilt(int y)
Decides if a tilt movement needs to be done. |
protected boolean |
moveZoom(float z)
Decides if a zoom movement needs to be done. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Coordinates c
protected boolean init
protected static final int HYSTERESIS_X
protected static final int HYSTERESIS_Y
protected static final float HYSTERESIS_Z
| Constructor Detail |
|---|
public MovementProcessor()
| Method Detail |
|---|
public PTZ calculatePTZ(Coordinates c,
int xVRes,
int yVRes)
c - the new coordinates of the user.xVRes - IR virtual screen x resolution.yVRes - IR virtual screen y resolution.
protected int calculatePan(int x,
int y,
float z,
int xVRes)
x - the x coordinate.y - the y coordinate.z - the z coordinate.xVRes - IR virtual screen x resolution.
protected int calculateTilt(int x,
int y,
float z,
int yVRes)
x - the x coordinatey - the y coordinate.z - the z coordinate.yVRes - IR virtual screen y resolution.
protected int calculateZoom(float z)
z - the z coordinate.
protected boolean movePan(int x)
x - the x coordinate.
protected boolean moveTilt(int y)
y - the y coordinate.
protected boolean moveZoom(float z)
z - the z coordinate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||