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

Public Member Functions

 PoiObject (Poi parent)
void parse (JSONObject jsonPoiObject) throws JSONException
ArvosObject getObject (long time, List< ArvosObject > arvosObjects)
void stop ()
void start (long time)
void onClick ()

Static Public Member Functions

static float[] parseVec3f (JSONObject jsonObject, String name) throws JSONException
static float[] parseVec4f (JSONObject jsonObject, String name) throws JSONException

Public Attributes

int mId
String mName
String mTexture
String mBillboardHandling
long mStartTime
long mDuration
boolean mLoop
boolean mIsActive
List< String > mOnClickUrls
List< String > mOnClickActivates
List< String > mOnClickDeactivates
List< String > mOnDurationEndUrls
List< String > mOnDurationEndActivates
List< String > mOnDurationEndDeactivates
float[] mStartPosition
float[] mEndPosition
float[] mStartScale
float[] mEndScale
float[] mStartRotation
float[] mEndRotation
long mTimeStarted
Poi mParent
Bitmap mBitmap

Detailed Description

A poi object as shown in the opengl view.


Definition at line 38 of file

Constructor & Destructor Documentation

com.mission_base.arviewer_android.viewer.PoiObject.PoiObject ( Poi  parent)

Create a poi object.

parentThe poi the object belongs to.

Definition at line 86 of file

Member Function Documentation

ArvosObject com.mission_base.arviewer_android.viewer.PoiObject.getObject ( long  time,
List< ArvosObject arvosObjects 

Returns the arvos object to be drawn in the opengl view.

timeThe current time.
arvosObjectsList of previous objects.
The object.

Definition at line 289 of file

void com.mission_base.arviewer_android.viewer.PoiObject.onClick ( )

Handles a click on the object.

Definition at line 417 of file

void com.mission_base.arviewer_android.viewer.PoiObject.parse ( JSONObject  jsonPoiObject) throws JSONException

Parses one poi object.

jsonPoiObjectThe JSON input to parse.
JSONExceptionJSON parse exception.

Definition at line 102 of file

static float [] com.mission_base.arviewer_android.viewer.PoiObject.parseVec3f ( JSONObject  jsonObject,
String  name 
) throws JSONException

Parses 3 float values, x, y, and z.


Definition at line 218 of file

static float [] com.mission_base.arviewer_android.viewer.PoiObject.parseVec4f ( JSONObject  jsonObject,
String  name 
) throws JSONException

Parses 4 float values, x, y, z and a.


Definition at line 245 of file

void com.mission_base.arviewer_android.viewer.PoiObject.start ( long  time)

Called when the animation of the object starts.

timeThe current time.

Definition at line 409 of file

void com.mission_base.arviewer_android.viewer.PoiObject.stop ( )

Called when the animation of the object stops.

Definition at line 389 of file

Member Data Documentation

String com.mission_base.arviewer_android.viewer.PoiObject.mBillboardHandling

Definition at line 50 of file

Bitmap com.mission_base.arviewer_android.viewer.PoiObject.mBitmap

Definition at line 78 of file

long com.mission_base.arviewer_android.viewer.PoiObject.mDuration

Definition at line 53 of file

float [] com.mission_base.arviewer_android.viewer.PoiObject.mEndPosition

Definition at line 67 of file

float [] com.mission_base.arviewer_android.viewer.PoiObject.mEndRotation

Definition at line 73 of file

float [] com.mission_base.arviewer_android.viewer.PoiObject.mEndScale

Definition at line 70 of file

int com.mission_base.arviewer_android.viewer.PoiObject.mId

Definition at line 47 of file

boolean com.mission_base.arviewer_android.viewer.PoiObject.mIsActive

Definition at line 56 of file

boolean com.mission_base.arviewer_android.viewer.PoiObject.mLoop

Definition at line 55 of file

String com.mission_base.arviewer_android.viewer.PoiObject.mName

Definition at line 48 of file

List<String> com.mission_base.arviewer_android.viewer.PoiObject.mOnClickActivates

Definition at line 59 of file

List<String> com.mission_base.arviewer_android.viewer.PoiObject.mOnClickDeactivates

Definition at line 60 of file

List<String> com.mission_base.arviewer_android.viewer.PoiObject.mOnClickUrls

Definition at line 58 of file

List<String> com.mission_base.arviewer_android.viewer.PoiObject.mOnDurationEndActivates

Definition at line 63 of file

List<String> com.mission_base.arviewer_android.viewer.PoiObject.mOnDurationEndDeactivates

Definition at line 64 of file

List<String> com.mission_base.arviewer_android.viewer.PoiObject.mOnDurationEndUrls

Definition at line 62 of file

Poi com.mission_base.arviewer_android.viewer.PoiObject.mParent

Definition at line 76 of file

float [] com.mission_base.arviewer_android.viewer.PoiObject.mStartPosition

Definition at line 66 of file

float [] com.mission_base.arviewer_android.viewer.PoiObject.mStartRotation

Definition at line 72 of file

float [] com.mission_base.arviewer_android.viewer.PoiObject.mStartScale

Definition at line 69 of file

long com.mission_base.arviewer_android.viewer.PoiObject.mStartTime

Definition at line 52 of file

String com.mission_base.arviewer_android.viewer.PoiObject.mTexture

Definition at line 49 of file

long com.mission_base.arviewer_android.viewer.PoiObject.mTimeStarted

Definition at line 75 of file

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