ArViewer  Android Version
Arvos - Augmented reality viewer open source
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | List of all members
com.mission_base.arviewer_android.viewer.Poi Class Reference

Public Member Functions

 Poi (Augment augment)
 
void parse (JSONObject jsonPoi) throws JSONException
 
void getObjects (long time, List< ArvosObject > result, List< ArvosObject > arvosObjects)
 
PoiObject findPoiObject (String name)
 
PoiObject findPoiObject (int id)
 
void requestActivate (PoiObject poiObject)
 
void requestStart (PoiObject poiObject)
 
void requestStop (PoiObject poiObject)
 
void requestDeactivate (PoiObject poiObject)
 
void addClick (PoiObject poiObject)
 

Public Attributes

long mAnimationDuration
 
Float mLongitude = null
 
Float mLatitude = null
 
String mDeveloperKey
 
Augment mParent
 
List< PoiObjectmPoiObjects
 

Detailed Description

A poi - point of interest.

Author
peter

Definition at line 38 of file Poi.java.

Constructor & Destructor Documentation

com.mission_base.arviewer_android.viewer.Poi.Poi ( Augment  augment)

Constructor.

Parameters
augmentThe augment the poi belongs to.

Definition at line 61 of file Poi.java.

Member Function Documentation

void com.mission_base.arviewer_android.viewer.Poi.addClick ( PoiObject  poiObject)

Handles a click on a poi object.

Parameters
poiObject

Definition at line 326 of file Poi.java.

PoiObject com.mission_base.arviewer_android.viewer.Poi.findPoiObject ( String  name)

Searches a poi object by name.

Parameters
name
Returns

Definition at line 236 of file Poi.java.

PoiObject com.mission_base.arviewer_android.viewer.Poi.findPoiObject ( int  id)

Searches a poi object by id.

Parameters
id
Returns

Definition at line 264 of file Poi.java.

void com.mission_base.arviewer_android.viewer.Poi.getObjects ( long  time,
List< ArvosObject result,
List< ArvosObject arvosObjects 
)

Returns the list of all objects to be drawn for the augment in the opengl view.

Parameters
timeReturns the list of all objects to be drawn for the augment in the opengl view.
resultThe list to add the resulting objects to.
arvosObjectsThe previous list of objects.

Definition at line 121 of file Poi.java.

void com.mission_base.arviewer_android.viewer.Poi.parse ( JSONObject  jsonPoi) throws JSONException

Parses the description of a poi in JSON format.

Parameters
jsonPoiThe JSON object to parse.
Exceptions
JSONExceptionJSON parse exceptions.

Definition at line 76 of file Poi.java.

void com.mission_base.arviewer_android.viewer.Poi.requestActivate ( PoiObject  poiObject)

Handles activation of a poi object.

Parameters
poiObject

Definition at line 284 of file Poi.java.

void com.mission_base.arviewer_android.viewer.Poi.requestDeactivate ( PoiObject  poiObject)

Handles the deactivation of a poi object.

Parameters
poiObject

Definition at line 315 of file Poi.java.

void com.mission_base.arviewer_android.viewer.Poi.requestStart ( PoiObject  poiObject)

Handles the start of a poi object animation.

Parameters
poiObject

Definition at line 295 of file Poi.java.

void com.mission_base.arviewer_android.viewer.Poi.requestStop ( PoiObject  poiObject)

Handles the stop of a poi object animation.

Parameters
poiObject

Definition at line 305 of file Poi.java.

Member Data Documentation

long com.mission_base.arviewer_android.viewer.Poi.mAnimationDuration

Definition at line 40 of file Poi.java.

String com.mission_base.arviewer_android.viewer.Poi.mDeveloperKey

Definition at line 44 of file Poi.java.

Float com.mission_base.arviewer_android.viewer.Poi.mLatitude = null

Definition at line 43 of file Poi.java.

Float com.mission_base.arviewer_android.viewer.Poi.mLongitude = null

Definition at line 42 of file Poi.java.

Augment com.mission_base.arviewer_android.viewer.Poi.mParent

Definition at line 46 of file Poi.java.

List<PoiObject> com.mission_base.arviewer_android.viewer.Poi.mPoiObjects

Definition at line 47 of file Poi.java.


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