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

Public Member Functions

Activity getActivity ()
int getOrientation ()
int getRotationDegrees ()
void onResume ()
void onPause ()
void startWebViewer (String url)

Static Public Member Functions

static Arvos getInstance ()
static Arvos getInstance (Activity activity)
static float toDegrees (float radians)
static void log (String tag, String message)

Public Attributes

boolean mSimulateWeb = true
boolean mUseCache = true
boolean mIsAuthor = false
String mAuthorKey
String mDeveloperKey
String mSessionId
float mLongitude = -1000f
float mLatitude = -1000f
int mVersion = 1
Augment mAugment
String mAugmentsUrl = ""
float mAzimuth = 0
float mCorrectedAzimuth = 0
float mPitch = 0
float mRoll = 0
long mFPS = 0
int mWidth
int mHeight
volatile boolean mHandleTouch = false
volatile boolean mModelViewMatrixesRequested = false
float[] mProjectionMatrix = null
final HashMap< Integer, float[]> mModelViewMatrixes = new HashMap<Integer, float[]>()
final List< ArvosObjectmArvosObjects = Collections.synchronizedList(new LinkedList<ArvosObject>())

Detailed Description

Static Arvos instance, used to keep static values during the lifetime of the application.


Definition at line 49 of file

Member Function Documentation

Activity com.mission_base.arviewer_android.Arvos.getActivity ( )

Returns the ArvosViewer activity.

The ArvosViewer activity.

Definition at line 148 of file

static Arvos com.mission_base.arviewer_android.Arvos.getInstance ( )

Returns the static Arvos instance.

The instance.

Definition at line 111 of file

static Arvos com.mission_base.arviewer_android.Arvos.getInstance ( Activity  activity)

Returns the static Arvos instance.

activityThe viewer activity to use.
The instance.

Definition at line 133 of file

int com.mission_base.arviewer_android.Arvos.getOrientation ( )

Gets the device orientation as reported by the SensorManager.

The device orientation as reported by the SensorManager.

Definition at line 180 of file

int com.mission_base.arviewer_android.Arvos.getRotationDegrees ( )

Gets the device rotation derived from the SensorManager, 0, 90, 180 or 270.

The device rotation derived from the SensorManager, 0, 90, 180 or 270 degrees.

Definition at line 192 of file

static void com.mission_base.arviewer_android.Arvos.log ( String  tag,
String  message 

Logs to the action bar subtitle.

tagThe tag word used for the log.
messageThe message shown.

Definition at line 250 of file

void com.mission_base.arviewer_android.Arvos.onPause ( )

Definition at line 219 of file

void com.mission_base.arviewer_android.Arvos.onResume ( )

Definition at line 214 of file

void com.mission_base.arviewer_android.Arvos.startWebViewer ( String  url)

Starts the web viewer.

urlThe url to display in the web viewer.

Definition at line 268 of file

static float com.mission_base.arviewer_android.Arvos.toDegrees ( float  radians)

Converts the radians given as parameter to degrees.

radiansThe radians to be converted.
The degrees converted from the radians.

Definition at line 234 of file

Member Data Documentation

final List<ArvosObject> com.mission_base.arviewer_android.Arvos.mArvosObjects = Collections.synchronizedList(new LinkedList<ArvosObject>())

The objects drawn.

Created and used by the renderer. Stored in the static instance so the radar view can also use it.

Definition at line 100 of file

Augment com.mission_base.arviewer_android.Arvos.mAugment

Definition at line 70 of file

String com.mission_base.arviewer_android.Arvos.mAugmentsUrl = ""

Definition at line 71 of file

String com.mission_base.arviewer_android.Arvos.mAuthorKey

Definition at line 55 of file

float com.mission_base.arviewer_android.Arvos.mAzimuth = 0

Definition at line 73 of file

float com.mission_base.arviewer_android.Arvos.mCorrectedAzimuth = 0

Definition at line 74 of file

String com.mission_base.arviewer_android.Arvos.mDeveloperKey

Definition at line 56 of file

long com.mission_base.arviewer_android.Arvos.mFPS = 0

Definition at line 77 of file

volatile boolean com.mission_base.arviewer_android.Arvos.mHandleTouch = false

Definition at line 81 of file

int com.mission_base.arviewer_android.Arvos.mHeight

Definition at line 80 of file

boolean com.mission_base.arviewer_android.Arvos.mIsAuthor = false

Definition at line 54 of file

float com.mission_base.arviewer_android.Arvos.mLatitude = -1000f

Definition at line 67 of file

float com.mission_base.arviewer_android.Arvos.mLongitude = -1000f

Definition at line 66 of file

final HashMap<Integer, float[]> com.mission_base.arviewer_android.Arvos.mModelViewMatrixes = new HashMap<Integer, float[]>()

The model view matrixes created by the renderer for the touch handler.

Definition at line 92 of file

volatile boolean com.mission_base.arviewer_android.Arvos.mModelViewMatrixesRequested = false

Definition at line 82 of file

float com.mission_base.arviewer_android.Arvos.mPitch = 0

Definition at line 75 of file

float [] com.mission_base.arviewer_android.Arvos.mProjectionMatrix = null

The model view matrixes created by the renderer for the touch handler.

Definition at line 87 of file

float com.mission_base.arviewer_android.Arvos.mRoll = 0

Definition at line 76 of file

String com.mission_base.arviewer_android.Arvos.mSessionId

Definition at line 65 of file

boolean com.mission_base.arviewer_android.Arvos.mSimulateWeb = true

Definition at line 51 of file

boolean com.mission_base.arviewer_android.Arvos.mUseCache = true

Definition at line 53 of file

int com.mission_base.arviewer_android.Arvos.mVersion = 1

Definition at line 68 of file

int com.mission_base.arviewer_android.Arvos.mWidth

Definition at line 79 of file

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