ArViewer  Android Version
Arvos - Augmented reality viewer open source
 All Classes Namespaces Files Functions Variables
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
com.mission_base.arviewer_android.viewer.opengl.ArvosObject Class Reference
Inheritance diagram for com.mission_base.arviewer_android.viewer.opengl.ArvosObject:
com.mission_base.arviewer_android.viewer.opengl.Square

Public Member Functions

 ArvosObject (int id)
 
void draw (GL10 gl)
 
- Public Member Functions inherited from com.mission_base.arviewer_android.viewer.opengl.Square
 Square ()
 
void loadGLTexture (GL10 gl, int textureId)
 
void loadGLTexture (GL10 gl, Bitmap bitmap)
 
void draw (GL10 gl)
 

Static Public Member Functions

static float l3dBillboardCylindricalDegrees (float camX, float camY, float camZ, float posX, float posY, float posZ, float[] pUpAux)
 
static void l3dBillboardCylindricalBegin (GL10 gl, float camX, float camY, float camZ, float posX, float posY, float posZ)
 

Public Attributes

int mId
 
String mName
 
String mTexture
 
float[] mPosition
 
float[] mScale
 
float[] mRotation
 
String mBillboardHandling
 
Bitmap mBitmap
 
boolean mTextureLoaded = false
 

Static Public Attributes

static final String BillboardHandlingNone = "none"
 
static final String BillboardHandlingCylinder = "cylinder"
 
static final String BillboardHandlingSphere = "sphere"
 
- Static Public Attributes inherited from com.mission_base.arviewer_android.viewer.opengl.Square
static final float vertices []
 

Protected Member Functions

void l3dBillboardSphericalBegin (GL10 gl, float camX, float camY, float camZ, float posX, float posY, float posZ)
 

Detailed Description

An object to be shown in the opengl view.

Author
peter

Definition at line 39 of file ArvosObject.java.

Constructor & Destructor Documentation

com.mission_base.arviewer_android.viewer.opengl.ArvosObject.ArvosObject ( int  id)

Definition at line 59 of file ArvosObject.java.

Member Function Documentation

void com.mission_base.arviewer_android.viewer.opengl.ArvosObject.draw ( GL10  gl)

Draws the object in the opengl view.

Definition at line 68 of file ArvosObject.java.

static void com.mission_base.arviewer_android.viewer.opengl.ArvosObject.l3dBillboardCylindricalBegin ( GL10  gl,
float  camX,
float  camY,
float  camZ,
float  posX,
float  posY,
float  posZ 
)
static

Cylindrical billboarding.

Parameters
gl
camX
camY
camZ
posX
posY
posZ

Definition at line 284 of file ArvosObject.java.

static float com.mission_base.arviewer_android.viewer.opengl.ArvosObject.l3dBillboardCylindricalDegrees ( float  camX,
float  camY,
float  camZ,
float  posX,
float  posY,
float  posZ,
float[]  pUpAux 
)
static

The objects motion is restricted to a rotation on a predefined axis The function bellow does cylindrical billboarding on the Y axis, i.e. the object will be able to rotate on the Y axis only.

Parameters
camX
camY
camZ
posX
posY
posZ
pUpAux
Returns

Definition at line 232 of file ArvosObject.java.

void com.mission_base.arviewer_android.viewer.opengl.ArvosObject.l3dBillboardSphericalBegin ( GL10  gl,
float  camX,
float  camY,
float  camZ,
float  posX,
float  posY,
float  posZ 
)
protected

True billboarding. With the spherical version the object will always face the camera. It requires more computational effort than the cylindrical billboard though. The parameters camX,camY, and camZ, are the target, i.e. a 3D point to which the object will point.

Parameters
gl
camX
camY
camZ
posX
posY
posZ

Definition at line 149 of file ArvosObject.java.

Member Data Documentation

final String com.mission_base.arviewer_android.viewer.opengl.ArvosObject.BillboardHandlingCylinder = "cylinder"
static

Definition at line 42 of file ArvosObject.java.

final String com.mission_base.arviewer_android.viewer.opengl.ArvosObject.BillboardHandlingNone = "none"
static

Definition at line 41 of file ArvosObject.java.

final String com.mission_base.arviewer_android.viewer.opengl.ArvosObject.BillboardHandlingSphere = "sphere"
static

Definition at line 43 of file ArvosObject.java.

String com.mission_base.arviewer_android.viewer.opengl.ArvosObject.mBillboardHandling

Definition at line 51 of file ArvosObject.java.

Bitmap com.mission_base.arviewer_android.viewer.opengl.ArvosObject.mBitmap

Definition at line 53 of file ArvosObject.java.

int com.mission_base.arviewer_android.viewer.opengl.ArvosObject.mId

Definition at line 45 of file ArvosObject.java.

String com.mission_base.arviewer_android.viewer.opengl.ArvosObject.mName

Definition at line 46 of file ArvosObject.java.

float [] com.mission_base.arviewer_android.viewer.opengl.ArvosObject.mPosition

Definition at line 48 of file ArvosObject.java.

float [] com.mission_base.arviewer_android.viewer.opengl.ArvosObject.mRotation

Definition at line 50 of file ArvosObject.java.

float [] com.mission_base.arviewer_android.viewer.opengl.ArvosObject.mScale

Definition at line 49 of file ArvosObject.java.

String com.mission_base.arviewer_android.viewer.opengl.ArvosObject.mTexture

Definition at line 47 of file ArvosObject.java.

boolean com.mission_base.arviewer_android.viewer.opengl.ArvosObject.mTextureLoaded = false

Definition at line 55 of file ArvosObject.java.


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