es.ucm.look.ar.ar2D
Class AR2D

java.lang.Object
  extended by View
      extended by es.ucm.look.ar.ar2D.AR2D

public class AR2D
extends View

View holding 2D representation of the world


Constructor Summary
AR2D(LookAR context, float maxDist)
          Creates a 2D view with the given context
 
Method Summary
 void addHUDElement(HUDElement hudelement)
           
 int getCanvasHeight()
          Returns the canvas height
 int getCanvasWidth()
          Returns the canvas width
 java.util.List<HUDElement> getHUD()
          Returns the list of drawables for the HUD
 boolean onTouchEvent(MotionEvent event)
           
 void projectPoint(Point3 p)
          Projects the given point with the current situation
 void setCameraListening(boolean cameraListening)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AR2D

public AR2D(LookAR context,
            float maxDist)
Creates a 2D view with the given context

Parameters:
context - the context
maxDist - max distance to be shown
Method Detail

addHUDElement

public void addHUDElement(HUDElement hudelement)

getCanvasHeight

public int getCanvasHeight()
Returns the canvas height

Returns:
the canvas height

getCanvasWidth

public int getCanvasWidth()
Returns the canvas width

Returns:
the canvas width

getHUD

public java.util.List<HUDElement> getHUD()
Returns the list of drawables for the HUD

Returns:
the list of drawables for the HUD

onTouchEvent

public boolean onTouchEvent(MotionEvent event)

projectPoint

public void projectPoint(Point3 p)
Projects the given point with the current situation

Parameters:
p - the point

setCameraListening

public void setCameraListening(boolean cameraListening)