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.

Author
peter

Definition at line 38 of file PoiObject.java.

Constructor & Destructor Documentation

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

Create a poi object.

Parameters
parentThe poi the object belongs to.

Definition at line 86 of file PoiObject.java.

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.

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

Definition at line 289 of file PoiObject.java.

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

Handles a click on the object.

Definition at line 417 of file PoiObject.java.

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

Parses one poi object.

Parameters
jsonPoiObjectThe JSON input to parse.
Exceptions
JSONExceptionJSON parse exception.

Definition at line 102 of file PoiObject.java.

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

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

Parameters
jsonObject
name
Returns
Exceptions
JSONException

Definition at line 218 of file PoiObject.java.

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

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

Parameters
jsonObject
name
Returns
Exceptions
JSONException

Definition at line 245 of file PoiObject.java.

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

Called when the animation of the object starts.

Parameters
timeThe current time.

Definition at line 409 of file PoiObject.java.

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

Called when the animation of the object stops.

Definition at line 389 of file PoiObject.java.

Member Data Documentation

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

Definition at line 50 of file PoiObject.java.

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

Definition at line 78 of file PoiObject.java.

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

Definition at line 53 of file PoiObject.java.

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

Definition at line 67 of file PoiObject.java.

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

Definition at line 73 of file PoiObject.java.

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

Definition at line 70 of file PoiObject.java.

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

Definition at line 47 of file PoiObject.java.

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

Definition at line 56 of file PoiObject.java.

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

Definition at line 55 of file PoiObject.java.

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

Definition at line 48 of file PoiObject.java.

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

Definition at line 59 of file PoiObject.java.

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

Definition at line 60 of file PoiObject.java.

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

Definition at line 58 of file PoiObject.java.

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

Definition at line 63 of file PoiObject.java.

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

Definition at line 64 of file PoiObject.java.

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

Definition at line 62 of file PoiObject.java.

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

Definition at line 76 of file PoiObject.java.

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

Definition at line 66 of file PoiObject.java.

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

Definition at line 72 of file PoiObject.java.

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

Definition at line 69 of file PoiObject.java.

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

Definition at line 52 of file PoiObject.java.

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

Definition at line 49 of file PoiObject.java.

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

Definition at line 75 of file PoiObject.java.


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