Extension of the BeyondarObject to make easier the usage of geo cordinates. More...
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< BeyondarObjectPlugin > | getAllPugins (Class<?extends BeyondarObjectPlugin > pluginClass) |
List< BeyondarObjectPlugin > | getAllPlugins (Class<?extends BeyondarObjectPlugin > pluginClass, List< BeyondarObjectPlugin > result) |
List< BeyondarObjectPlugin > | getAllPlugins () |
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< BeyondarObjectPlugin > | plugins |
This fields contains all the loaded plugins. More... | |
Object | lockPlugins = new Object() |
Use this lock to access the plugins field. More... | |
Extension of the BeyondarObject to make easier the usage of geo cordinates.
com.beyondar.android.world.GeoObject.GeoObject | ( | long | id | ) |
Create an instance of a GeoObject with an unique ID.
id | Unique ID. |
com.beyondar.android.world.GeoObject.GeoObject | ( | ) |
double com.beyondar.android.world.GeoObject.calculateDistanceMeters | ( | GeoObject | geo | ) |
double com.beyondar.android.world.GeoObject.calculateDistanceMeters | ( | double | longitude, |
double | latitude | ||
) |
|
protectedinherited |
Override this method to change the default Renderable.
|
inherited |
Define if the BeyondarObject should face the camera.
faceToCamera | true if it should face the camera, false otherwise. |
|
inherited |
Get a List copy of the added plugins.
Adding/removing plugins to this list will not affect the added plugins
double com.beyondar.android.world.GeoObject.getAltitude | ( | ) |
Get the altitude.
|
inherited |
Get the used angle for rendering the BeyondarObject.
|
inherited |
Get the bottom left of the BeyondarObject on the 3D world.
|
inherited |
Get the bottom right of the BeyondarObject on the 3D world.
|
inherited |
Get the Distance from the user in meters.
|
inherited |
The the image uri used to represent the BeyondarObject.
double com.beyondar.android.world.GeoObject.getLatitude | ( | ) |
Get the latitude.
double com.beyondar.android.world.GeoObject.getLongitude | ( | ) |
Get the longitude.
|
inherited |
Get the MeshCollider of the GeoObject.
|
inherited |
Get the name of the BeyondarObject.
|
inherited |
Get Renderable that renders the BeyondarObject.
|
inherited |
Get the position where the BeyondarObject is being rendered.
|
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.
|
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.
|
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.
|
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.
|
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.
|
inherited |
Get the Texture used to render the BeyondarObject.
|
inherited |
Get the top left of the BeyondarObject on the 3D world.
|
inherited |
Get the top right of the BeyondarObject on the 3D world.
|
inherited |
Get the list type of the BeyondarObject.
|
inherited |
Check if the BeyondarObject is facing the camera.
|
inherited |
Check the visibility of the BeyondarObject.
|
inherited |
Set the used angle for rendering the BeyondarObject.
x | The angle in degrees for x. |
y | The angle in degrees for y. |
z | The angle in degrees for z. |
|
inherited |
Set the used angle for rendering the BeyondarObject.
newAngle | The angle in degrees. |
|
inherited |
Set how far is the object from the user (meters).
This method is used by the ARRenderer to set this value.
distance | Distance in meters. |
void com.beyondar.android.world.GeoObject.setGeoPosition | ( | double | latitude, |
double | longitude | ||
) |
Set the position of the GeoObject.
latitude | |
longitude |
void com.beyondar.android.world.GeoObject.setGeoPosition | ( | double | latitude, |
double | longitude, | ||
double | altitude | ||
) |
Set the position of the GeoObject.
latitude | |
longitude | |
altitude |
|
inherited |
Set an image resource for the BeyondarObject.
resId | The resource id. |
|
inherited |
Set the image uri.
uri | The image uri that represents the BeyondarObject. |
void com.beyondar.android.world.GeoObject.setLocation | ( | Location | location | ) |
Set the location.
location | New location. |
|
inherited |
Set the name of the BeyondarObject.
name | Name of the BeyondarObject. |
|
inherited |
Get the position where the BeyondarObject is being rendered.
newPos | New position. |
|
inherited |
Set the position where the BeyondarObject is being rendered.
newPos | New position. |
|
inherited |
Set a custom Renderable for the BeyondarObject.
renderable |
|
inherited |
Set the texture pointer of the BeyondarObject.
texturePointer | The new texture pointer. |
|
inherited |
Set the visibility of this object.
if it is false, the engine will not render it.
visible | True to set it visible, false to don't render it. |
|
protectedinherited |
Use this lock to access the plugins field.
|
protectedinherited |
This fields contains all the loaded plugins.