Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.world.GeoObject Class Reference

Extension of the BeyondarObject to make easier the usage of geo cordinates. More...

Inheritance diagram for com.beyondar.android.world.GeoObject:
Collaboration diagram for com.beyondar.android.world.GeoObject:

Public Member Functions

 GeoObject (long id)
 Create an instance of a GeoObject with an unique ID. More...
 
 GeoObject ()
 Create an instance of a GeoObject with an unique ID. More...
 
void setGeoPosition (double latitude, double longitude)
 Set the position of the GeoObject. More...
 
void setGeoPosition (double latitude, double longitude, double altitude)
 Set the position of the GeoObject. More...
 
double getLongitude ()
 Get the longitude. More...
 
double getAltitude ()
 Get the altitude. More...
 
double getLatitude ()
 Get the latitude. More...
 
void setLocation (Location location)
 Set the location. More...
 
double calculateDistanceMeters (GeoObject geo)
 Calculate the distance of this GeoObject from an other GeoObject. More...
 
double calculateDistanceMeters (double longitude, double latitude)
 Calculate the distance of this GeoObject from an other GeoObject. More...
 
long getId ()
 Get the unique id of the BeyondarObject.
 
void addPlugin (BeyondarObjectPlugin plugin)
 
boolean removePlugin (BeyondarObjectPlugin plugin)
 
void removeAllPlugins ()
 
BeyondarObjectPlugin getFirstPlugin (Class<?extends BeyondarObjectPlugin > pluginClass)
 
boolean containsAnyPlugin (Class<?extends BeyondarObjectPlugin > pluginClass)
 
boolean containsPlugin (BeyondarObjectPlugin plugin)
 
List< BeyondarObjectPlugingetAllPugins (Class<?extends BeyondarObjectPlugin > pluginClass)
 
List< BeyondarObjectPlugingetAllPlugins (Class<?extends BeyondarObjectPlugin > pluginClass, List< BeyondarObjectPlugin > result)
 
List< BeyondarObjectPlugingetAllPlugins ()
 Get a List copy of the added plugins. More...
 
Point3 getAngle ()
 Get the used angle for rendering the BeyondarObject. More...
 
void setAngle (float x, float y, float z)
 Set the used angle for rendering the BeyondarObject. More...
 
void setAngle (Point3 newAngle)
 Set the used angle for rendering the BeyondarObject. More...
 
Point3 getPosition ()
 Get the position where the BeyondarObject is being rendered. More...
 
void setPosition (Point3 newPos)
 Get the position where the BeyondarObject is being rendered. More...
 
void setPosition (float x, float y, float z)
 Set the position where the BeyondarObject is being rendered. More...
 
Texture getTexture ()
 Get the Texture used to render the BeyondarObject. More...
 
void setTexturePointer (int texturePointer)
 Set the texture pointer of the BeyondarObject. More...
 
void setTexture (Texture texture)
 Set the Texture used to render the BeyondarObject.
 
Renderable getOpenGLObject ()
 Get Renderable that renders the BeyondarObject. More...
 
void setRenderable (Renderable renderable)
 Set a custom Renderable for the BeyondarObject. More...
 
String getImageUri ()
 The the image uri used to represent the BeyondarObject. More...
 
void faceToCamera (boolean faceToCamera)
 Define if the BeyondarObject should face the camera. More...
 
boolean isFacingToCamera ()
 Check if the BeyondarObject is facing the camera. More...
 
void setVisible (boolean visible)
 Set the visibility of this object. More...
 
boolean isVisible ()
 Check the visibility of the BeyondarObject. More...
 
void setName (String name)
 Set the name of the BeyondarObject. More...
 
String getName ()
 Get the name of the BeyondarObject. More...
 
void setImageUri (String uri)
 Set the image uri. More...
 
void setImageResource (int resId)
 Set an image resource for the BeyondarObject. More...
 
int getWorldListType ()
 Get the list type of the BeyondarObject. More...
 
double getDistanceFromUser ()
 Get the Distance from the user in meters. More...
 
void setDistanceFromUser (double distance)
 Set how far is the object from the user (meters). More...
 
Point3 getScreenPositionBottomLeft ()
 Get the bottom left screen position of the BeyondarObject on the screen. More...
 
Point3 getScreenPositionTopLeft ()
 Get the top left screen position of the BeyondarObject on the screen. More...
 
Point3 getScreenPositionTopRight ()
 Get the top right screen position of the BeyondarObject on the screen. More...
 
Point3 getScreenPositionBottomRight ()
 Get the bottom right screen position of the BeyondarObject on the screen. More...
 
Point3 getScreenPositionCenter ()
 Get the center screen position of the BeyondarObject on the screen. More...
 
Point3 getTopLeft ()
 Get the top left of the BeyondarObject on the 3D world. More...
 
Point3 getBottomLeft ()
 Get the bottom left of the BeyondarObject on the 3D world. More...
 
Point3 getBottomRight ()
 Get the bottom right of the BeyondarObject on the 3D world. More...
 
Point3 getTopRight ()
 Get the top right of the BeyondarObject on the 3D world. More...
 
MeshCollider getMeshCollider ()
 Get the MeshCollider of the GeoObject. More...
 

Protected Member Functions

Renderable createRenderable ()
 Override this method to change the default Renderable. More...
 

Protected Attributes

List< BeyondarObjectPluginplugins
 This fields contains all the loaded plugins. More...
 
Object lockPlugins = new Object()
 Use this lock to access the plugins field. More...
 

Detailed Description

Extension of the BeyondarObject to make easier the usage of geo cordinates.

Constructor & Destructor Documentation

com.beyondar.android.world.GeoObject.GeoObject ( long  id)

Create an instance of a GeoObject with an unique ID.

Parameters
idUnique ID.

Here is the call graph for this function:

com.beyondar.android.world.GeoObject.GeoObject ( )

Create an instance of a GeoObject with an unique ID.

The hash of the object will be used as the GeoObject unique id.

Here is the call graph for this function:

Member Function Documentation

double com.beyondar.android.world.GeoObject.calculateDistanceMeters ( GeoObject  geo)

Calculate the distance of this GeoObject from an other GeoObject.

Parameters
geoThe other GeoObject to calculate the distance.
Returns
The distance in meters.

Here is the call graph for this function:

double com.beyondar.android.world.GeoObject.calculateDistanceMeters ( double  longitude,
double  latitude 
)

Calculate the distance of this GeoObject from an other GeoObject.

Parameters
longitudeThe other GeoObject longitude to calculate the distance.
latitudeThe other GeoObject latitude to calculate the distance.
Returns
The distance in meters.

Here is the call graph for this function:

Renderable com.beyondar.android.world.BeyondarObject.createRenderable ( )
protectedinherited

Override this method to change the default Renderable.

Returns
The new Renderable.

Here is the caller graph for this function:

void com.beyondar.android.world.BeyondarObject.faceToCamera ( boolean  faceToCamera)
inherited

Define if the BeyondarObject should face the camera.

Parameters
faceToCameratrue if it should face the camera, false otherwise.
List<BeyondarObjectPlugin> com.beyondar.android.world.BeyondarObject.getAllPlugins ( )
inherited

Get a List copy of the added plugins.

Adding/removing plugins to this list will not affect the added plugins

Returns
double com.beyondar.android.world.GeoObject.getAltitude ( )

Get the altitude.

Returns
altitude.

Here is the caller graph for this function:

Point3 com.beyondar.android.world.BeyondarObject.getAngle ( )
inherited

Get the used angle for rendering the BeyondarObject.

Returns
The angle in degrees.

Here is the caller graph for this function:

Point3 com.beyondar.android.world.BeyondarObject.getBottomLeft ( )
inherited

Get the bottom left of the BeyondarObject on the 3D world.

Returns
bottom left 3D.

Here is the caller graph for this function:

Point3 com.beyondar.android.world.BeyondarObject.getBottomRight ( )
inherited

Get the bottom right of the BeyondarObject on the 3D world.

Returns
Bottom right 3D.

Here is the caller graph for this function:

double com.beyondar.android.world.BeyondarObject.getDistanceFromUser ( )
inherited

Get the Distance from the user in meters.

Returns
Distance in meters.
String com.beyondar.android.world.BeyondarObject.getImageUri ( )
inherited

The the image uri used to represent the BeyondarObject.

Returns

Here is the caller graph for this function:

double com.beyondar.android.world.GeoObject.getLatitude ( )

Get the latitude.

Returns
latitude.

Here is the caller graph for this function:

double com.beyondar.android.world.GeoObject.getLongitude ( )

Get the longitude.

Returns
longitude.

Here is the caller graph for this function:

MeshCollider com.beyondar.android.world.BeyondarObject.getMeshCollider ( )
inherited

Get the MeshCollider of the GeoObject.

Returns
Mesh collider.

Here is the call graph for this function:

String com.beyondar.android.world.BeyondarObject.getName ( )
inherited

Get the name of the BeyondarObject.

Returns
The name of the BeyondarObject.

Here is the caller graph for this function:

Renderable com.beyondar.android.world.BeyondarObject.getOpenGLObject ( )
inherited

Get Renderable that renders the BeyondarObject.

Returns
The Renderable used for rendering.

Here is the call graph for this function:

Point3 com.beyondar.android.world.BeyondarObject.getPosition ( )
inherited

Get the position where the BeyondarObject is being rendered.

Returns
The 3D position.

Here is the caller graph for this function:

Point3 com.beyondar.android.world.BeyondarObject.getScreenPositionBottomLeft ( )
inherited

Get the bottom left screen position of the BeyondarObject on the screen.

use the Z axis to check if the object is in front (z<1) or behind (z>1) the screen.

Returns
Bottom left screen position.
Point3 com.beyondar.android.world.BeyondarObject.getScreenPositionBottomRight ( )
inherited

Get the bottom right screen position of the BeyondarObject on the screen.

use the Z axis to check if the object is in front (z<1) or behind (z>1) the screen.

Returns
Bottom right screen position.
Point3 com.beyondar.android.world.BeyondarObject.getScreenPositionCenter ( )
inherited

Get the center screen position of the BeyondarObject on the screen.

use the Z axis to check if the object is in front (z<1) or behind (z>1) the screen.

Returns
Center screen position.
Point3 com.beyondar.android.world.BeyondarObject.getScreenPositionTopLeft ( )
inherited

Get the top left screen position of the BeyondarObject on the screen.

use the Z axis to check if the object is in front (z<1) or behind (z>1) the screen.

Returns
top left screen position.
Point3 com.beyondar.android.world.BeyondarObject.getScreenPositionTopRight ( )
inherited

Get the top right screen position of the BeyondarObject on the screen.

use the Z axis to check if the object is in front (z<1) or behind (z>1) the screen.

Returns
Top right screen position.
Texture com.beyondar.android.world.BeyondarObject.getTexture ( )
inherited

Get the Texture used to render the BeyondarObject.

Returns
Texture object in use.

Here is the caller graph for this function:

Point3 com.beyondar.android.world.BeyondarObject.getTopLeft ( )
inherited

Get the top left of the BeyondarObject on the 3D world.

Returns
Top left 3D.

Here is the caller graph for this function:

Point3 com.beyondar.android.world.BeyondarObject.getTopRight ( )
inherited

Get the top right of the BeyondarObject on the 3D world.

Returns
Top right 3D.

Here is the caller graph for this function:

int com.beyondar.android.world.BeyondarObject.getWorldListType ( )
inherited

Get the list type of the BeyondarObject.

Returns
The list type.
boolean com.beyondar.android.world.BeyondarObject.isFacingToCamera ( )
inherited

Check if the BeyondarObject is facing the camera.

Returns
True if it is facing.

Here is the caller graph for this function:

boolean com.beyondar.android.world.BeyondarObject.isVisible ( )
inherited

Check the visibility of the BeyondarObject.

Returns
True if it is visible, false otherwise.

Here is the caller graph for this function:

void com.beyondar.android.world.BeyondarObject.setAngle ( float  x,
float  y,
float  z 
)
inherited

Set the used angle for rendering the BeyondarObject.

Parameters
xThe angle in degrees for x.
yThe angle in degrees for y.
zThe angle in degrees for z.
void com.beyondar.android.world.BeyondarObject.setAngle ( Point3  newAngle)
inherited

Set the used angle for rendering the BeyondarObject.

Parameters
newAngleThe angle in degrees.
void com.beyondar.android.world.BeyondarObject.setDistanceFromUser ( double  distance)
inherited

Set how far is the object from the user (meters).

This method is used by the ARRenderer to set this value.

Parameters
distanceDistance in meters.
void com.beyondar.android.world.GeoObject.setGeoPosition ( double  latitude,
double  longitude 
)

Set the position of the GeoObject.

Parameters
latitude
longitude

Here is the caller graph for this function:

void com.beyondar.android.world.GeoObject.setGeoPosition ( double  latitude,
double  longitude,
double  altitude 
)

Set the position of the GeoObject.

Parameters
latitude
longitude
altitude
void com.beyondar.android.world.BeyondarObject.setImageResource ( int  resId)
inherited

Set an image resource for the BeyondarObject.

Parameters
resIdThe resource id.

Here is the call graph for this function:

void com.beyondar.android.world.BeyondarObject.setImageUri ( String  uri)
inherited

Set the image uri.

Parameters
uriThe image uri that represents the BeyondarObject.

Here is the call graph for this function:

Here is the caller graph for this function:

void com.beyondar.android.world.GeoObject.setLocation ( Location  location)

Set the location.

Parameters
locationNew location.

Here is the call graph for this function:

void com.beyondar.android.world.BeyondarObject.setName ( String  name)
inherited

Set the name of the BeyondarObject.

Parameters
nameName of the BeyondarObject.
void com.beyondar.android.world.BeyondarObject.setPosition ( Point3  newPos)
inherited

Get the position where the BeyondarObject is being rendered.

Parameters
newPosNew position.
void com.beyondar.android.world.BeyondarObject.setPosition ( float  x,
float  y,
float  z 
)
inherited

Set the position where the BeyondarObject is being rendered.

Parameters
newPosNew position.
void com.beyondar.android.world.BeyondarObject.setRenderable ( Renderable  renderable)
inherited

Set a custom Renderable for the BeyondarObject.

Parameters
renderable
void com.beyondar.android.world.BeyondarObject.setTexturePointer ( int  texturePointer)
inherited

Set the texture pointer of the BeyondarObject.

Parameters
texturePointerThe new texture pointer.
void com.beyondar.android.world.BeyondarObject.setVisible ( boolean  visible)
inherited

Set the visibility of this object.

if it is false, the engine will not render it.

Parameters
visibleTrue to set it visible, false to don't render it.

Here is the caller graph for this function:

Member Data Documentation

Object com.beyondar.android.world.BeyondarObject.lockPlugins = new Object()
protectedinherited

Use this lock to access the plugins field.

List<BeyondarObjectPlugin> com.beyondar.android.world.BeyondarObject.plugins
protectedinherited

This fields contains all the loaded plugins.


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