Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.opengl.renderable.Renderable Interface Reference

Interface that provides the needed methods that are called from the ARRenderer. More...

Inheritance diagram for com.beyondar.android.opengl.renderable.Renderable:

Public Member Functions

void draw (GL10 gl, Texture defaultTexture)
 The draw method to be used by OpenGL.
 
boolean update (long time, double distance, BeyondarObject beyondarObject)
 Update the renderer before the draw method is called. More...
 
void onNotRendered (double dst)
 This method is called when the Renderable is not rendered, for example because is too far.
 
Texture getTexture ()
 Get the texture object for the Renderable. More...
 
Plane getPlane ()
 Get the plane that represents the Renderable. More...
 
void setPosition (float x, float y, float z)
 Set the position where the Renderable needs to be rendered. More...
 
Point3 getPosition ()
 Get the position where the Renderable will be rendered. More...
 
void setAngle (float x, float y, float z)
 Set the angle of the Renderable. More...
 
Point3 getAngle ()
 Get the angle of the Renderable. More...
 
long getTimeMark ()
 Get the time mark. More...
 

Detailed Description

Interface that provides the needed methods that are called from the ARRenderer.

Member Function Documentation

Point3 com.beyondar.android.opengl.renderable.Renderable.getAngle ( )

Get the angle of the Renderable.

Returns

Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.

Plane com.beyondar.android.opengl.renderable.Renderable.getPlane ( )

Get the plane that represents the Renderable.

Used for collision detection.

Returns

Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.

Point3 com.beyondar.android.opengl.renderable.Renderable.getPosition ( )

Get the position where the Renderable will be rendered.

Returns

Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.

Texture com.beyondar.android.opengl.renderable.Renderable.getTexture ( )

Get the texture object for the Renderable.

Returns

Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.

long com.beyondar.android.opengl.renderable.Renderable.getTimeMark ( )

Get the time mark.

Returns

Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.

void com.beyondar.android.opengl.renderable.Renderable.setAngle ( float  x,
float  y,
float  z 
)

Set the angle of the Renderable.

Parameters
x
y
z

Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.

void com.beyondar.android.opengl.renderable.Renderable.setPosition ( float  x,
float  y,
float  z 
)

Set the position where the Renderable needs to be rendered.

Parameters
x
y
z

Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.

boolean com.beyondar.android.opengl.renderable.Renderable.update ( long  time,
double  distance,
BeyondarObject  beyondarObject 
)

Update the renderer before the draw method is called.

Parameters
timeThe time mark.
distanceThe distance form the camera in meters.
beyondarObjectThe BeyondarObject represented by the Renderable.
Returns
True to force to paint the object, false otherwise. If false, the ARRenderer will draw it if it close enough to the camera

Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.


The documentation for this interface was generated from the following file: