|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActivity
es.ucm.look.ar.LookAR
public class LookAR
This activity recreates a first person OpenGL world.
Constructor Summary | |
---|---|
LookAR()
Constructs a Look Augmented Reality frame with camera, 2D, 3D and HUD |
|
LookAR(boolean usesCamera)
Constructs a Look Augmented Reality frame with 2D, 3D and HUD |
|
LookAR(boolean usesCamera,
boolean uses3D,
boolean uses2D,
boolean usesHud,
float maxDist)
Constructs an Look Augmented Reality frame with the given parameters with full screen |
|
LookAR(boolean usesCamera,
boolean uses3D,
boolean uses2D,
boolean usesHud,
float maxDist,
boolean fullscreen)
Constructs an Look Augmented Reality frame with the given parameters |
Method Summary | |
---|---|
AR2D |
get2DLayer()
Returns the layer holding 2D |
ViewGroup |
getHudContainer()
Returns the HUD container. |
float |
getMaxDistance()
Returns the max distance object will be seen |
Renderer3D |
getRenderer()
Returns the renderer for the engine |
World |
getWorld()
Returns the world |
boolean |
onTouchEvent(MotionEvent event)
|
void |
setWorld(World world)
Sets the world to be represented by this activity |
void |
surfaceChanged(SurfaceHolder holder,
int format,
int width,
int height)
|
void |
surfaceCreated(SurfaceHolder holder)
|
void |
surfaceDestroyed(SurfaceHolder holder)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookAR()
public LookAR(boolean usesCamera)
usesCamera
- if the camera must be use as backgroundpublic LookAR(boolean usesCamera, boolean uses3D, boolean uses2D, boolean usesHud, float maxDist)
usesCamera
- If app is using the camera as backgrounduses3D
- If app is using three dimension displayinguses2D
- If app is using two dimension displayingusesHud
- If app is using a HUD with Anroid's viewsmaxDist
- Max distance to be shown in the ARfullScreen
- If activity is full screenpublic LookAR(boolean usesCamera, boolean uses3D, boolean uses2D, boolean usesHud, float maxDist, boolean fullscreen)
usesCamera
- If app is using the camera as backgrounduses3D
- If app is using three dimension displayinguses2D
- If app is using two dimension displayingusesHud
- If app is using a HUD with Anroid's viewsmaxDist
- Max distance to be shown in the ARfullScreen
- If activity is full screenMethod Detail |
---|
public AR2D get2DLayer()
public ViewGroup getHudContainer()
public float getMaxDistance()
public Renderer3D getRenderer()
public World getWorld()
public boolean onTouchEvent(MotionEvent event)
public void setWorld(World world)
world
- the world to be represented by this activitypublic void surfaceChanged(SurfaceHolder holder, int format, int width, int height)
public void surfaceCreated(SurfaceHolder holder)
public void surfaceDestroyed(SurfaceHolder holder)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |