com.supermap.ar
Class World
- java.lang.Object
-
- com.supermap.ar.World
-
public class World extends java.lang.ObjectAR scene class A container of all objects rendered in an AR scene
-
-
Constructor Summary
Constructors Constructor and Description World(android.content.Context context)Constructor for creating AR scene instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddArObject(ArObject arObject)Adds arObject objects into a scenevoidclearWorld()Removes a scenedoublegetAltitude()Gets the altitudejava.util.List<ArObjectList>getArObjectLists()Gets the ArObject list in a sceneandroid.content.ContextgetContext()Gets contextdoublegetLatitude()Gets the user's altitudedoublegetLongitude()Gets the user' longitudevoidonPause()Pause the world scenevoidonResume()Evoke the world scenebooleanremove(ArObject arObject)Removes arObject from a scenevoidsetGeoPosition(double latitude, double longitude, double altitude)Sets the user position
-
-
-
Constructor Detail
-
World
public World(android.content.Context context)
Constructor for creating AR scene instance- Parameters:
context- The context.
-
-
Method Detail
-
onResume
public void onResume()
Evoke the world scene
-
onPause
public void onPause()
Pause the world scene
-
getContext
public android.content.Context getContext()
Gets context- Returns:
- context
-
addArObject
public final void addArObject(ArObject arObject)
Adds arObject objects into a scene- Parameters:
arObject- arObject
-
remove
public boolean remove(ArObject arObject)
Removes arObject from a scene- Parameters:
arObject- arObject- Returns:
- removal was successful.
-
clearWorld
public void clearWorld()
Removes a scene
-
getArObjectLists
public java.util.List<ArObjectList> getArObjectLists()
Gets the ArObject list in a scene- Returns:
- the ArObject list
-
getLongitude
public double getLongitude()
Gets the user' longitude- Returns:
- The longitude
-
getAltitude
public double getAltitude()
Gets the altitude- Returns:
- the altitude
-
getLatitude
public double getLatitude()
Gets the user's altitude- Returns:
- The latitude
-
setGeoPosition
public void setGeoPosition(double latitude, double longitude, double altitude)Sets the user position- Parameters:
latitude- Latitudelongitude- Longitudealtitude- the altitude
-
-