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

Basic Renderable for rendering simple 2D images. More...

Inheritance diagram for com.beyondar.android.opengl.renderable.SquareRenderable:
Collaboration diagram for com.beyondar.android.opengl.renderable.SquareRenderable:

Public Member Functions

boolean update (long time, double distance, BeyondarObject beyondarObject)
 Update the renderer before the draw method is called. More...
 
void draw (GL10 gl, Texture defaultTexture)
 The draw method for the square with the GL context.
 
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...
 
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...
 
Point3 getPosition ()
 Get the position where the Renderable will be rendered. 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...
 

Static Public Member Functions

static synchronized Renderable getInstance ()
 Get unique instance of the SquareRenderable. More...
 

Detailed Description

Basic Renderable for rendering simple 2D images.

Member Function Documentation

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

Get the angle of the Renderable.

Returns

Implements com.beyondar.android.opengl.renderable.Renderable.

static synchronized Renderable com.beyondar.android.opengl.renderable.SquareRenderable.getInstance ( )
static

Get unique instance of the SquareRenderable.

Returns
Plane com.beyondar.android.opengl.renderable.SquareRenderable.getPlane ( )

Get the plane that represents the Renderable.

Used for collision detection.

Returns

Implements com.beyondar.android.opengl.renderable.Renderable.

Here is the call graph for this function:

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

Get the position where the Renderable will be rendered.

Returns

Implements com.beyondar.android.opengl.renderable.Renderable.

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

Get the texture object for the Renderable.

Returns

Implements com.beyondar.android.opengl.renderable.Renderable.

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

Get the time mark.

Returns

Implements com.beyondar.android.opengl.renderable.Renderable.

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

Set the angle of the Renderable.

Parameters
x
y
z

Implements com.beyondar.android.opengl.renderable.Renderable.

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

Set the position where the Renderable needs to be rendered.

Parameters
x
y
z

Implements com.beyondar.android.opengl.renderable.Renderable.

boolean com.beyondar.android.opengl.renderable.SquareRenderable.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

Implements com.beyondar.android.opengl.renderable.Renderable.


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