es.ucm.look.ar.util
Class LookARUtil

java.lang.Object
  extended by es.ucm.look.ar.util.LookARUtil

public class LookARUtil
extends java.lang.Object

A class with static common functions


Field Summary
static float CAMERA_VIEW_ANGLE
          Default camera angle
 
Constructor Summary
LookARUtil()
           
 
Method Summary
static LookAR getApp()
          Returns the main activity
static Display getDisplay()
          Returns the display for the app
static int getMinimumSize()
          Returns the minimum between the width and the height of the screen
static View getView(int resourceId, ViewGroup v)
           
static void init(LookAR lookAr)
          Init the LookARUtil
static java.nio.FloatBuffer makeFloatBuffer(float[] f)
          Make a FloatBuffer from an array of floats
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAMERA_VIEW_ANGLE

public static final float CAMERA_VIEW_ANGLE
Default camera angle

See Also:
Constant Field Values
Constructor Detail

LookARUtil

public LookARUtil()
Method Detail

getApp

public static LookAR getApp()
Returns the main activity

Returns:
the main activity

getDisplay

public static Display getDisplay()
Returns the display for the app

Returns:
the display for the app

getMinimumSize

public static int getMinimumSize()
Returns the minimum between the width and the height of the screen

Returns:
the minimum between the width and the height of the screen

getView

public static View getView(int resourceId,
                           ViewGroup v)

init

public static void init(LookAR lookAr)
Init the LookARUtil

Parameters:
lookAr - Application

makeFloatBuffer

public static java.nio.FloatBuffer makeFloatBuffer(float[] f)
Make a FloatBuffer from an array of floats

Parameters:
f - The array
Returns:
the FloatBuffer