hmi.environment
Class XuukTargetMover

java.lang.Object
  extended by hmi.environment.XuukTargetMover
All Implemented Interfaces:
SingleUserTrackerListener

public class XuukTargetMover
extends Object
implements SingleUserTrackerListener

Needs to be connected to a SingleUserTracker


Field Summary
private static org.slf4j.Logger logger
           
protected  VJoint vjTarget
          The VJoint that is moved around
private  float xuukFieldMaxX
           
private  float xuukFieldMaxY
           
private  float xuukFieldMinX
           
private  float xuukFieldMinY
           
private  float xuukFieldZ
           
private  float xuukUserRelX
          between 0 and 1
private  float xuukUserRelY
          between 0 and 1
 
Constructor Summary
XuukTargetMover(VJoint xt)
           
 
Method Summary
 void setUserGazeTarget(float x, float y)
          Set user target.
 void userAppeared(float x1, float y1, float x2, float y2)
           
 void userDisappeared()
           
 void userMoved(float x1, float y1, float x2, float y2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.slf4j.Logger logger

vjTarget

protected VJoint vjTarget
The VJoint that is moved around


xuukFieldMinX

private float xuukFieldMinX

xuukFieldMaxX

private float xuukFieldMaxX

xuukFieldMaxY

private float xuukFieldMaxY

xuukFieldMinY

private float xuukFieldMinY

xuukFieldZ

private float xuukFieldZ

xuukUserRelX

private float xuukUserRelX
between 0 and 1


xuukUserRelY

private float xuukUserRelY
between 0 and 1

Constructor Detail

XuukTargetMover

public XuukTargetMover(VJoint xt)
Method Detail

setUserGazeTarget

public void setUserGazeTarget(float x,
                              float y)
Set user target. Input: a 2D value between (0,0) and (1,1) representing the relative position of the user in the camera image. Parameters 'xuukFieldX1' and 'xuukFieldY1' and 'xuukFieldX2' and 'xuukFieldY2' and 'xuukFieldZ' are used to find intended gaze target positino in VR


userAppeared

public void userAppeared(float x1,
                         float y1,
                         float x2,
                         float y2)
Specified by:
userAppeared in interface SingleUserTrackerListener

userDisappeared

public void userDisappeared()
Specified by:
userDisappeared in interface SingleUserTrackerListener

userMoved

public void userMoved(float x1,
                      float y1,
                      float x2,
                      float y2)
Specified by:
userMoved in interface SingleUserTrackerListener