JaRMoS  1.1
Java Reduced Model Simulations
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
jarmos.app.visual.GLRenderer Class Reference

OpenGL renderer implementation using the khronos OpenGL ES android implementation. More...

Inheritance diagram for jarmos.app.visual.GLRenderer:
jarmos.visual.OpenGLBase

Public Member Functions

 GLRenderer (VisualizationData vData)
 
 GLRenderer (VisualizationData vData, int width, int height)
 
void onDrawFrame (GL10 gl)
 
void onSurfaceChanged (GL10 gl, int w, int h)
 
void onSurfaceCreated (GL10 gl, EGLConfig config)
 
- Public Member Functions inherited from jarmos.visual.OpenGLBase
 OpenGLBase (VisualizationData vData)
 Creates an OpenGLBase with the default size. More...
 
 OpenGLBase (VisualizationData vData, int width, int height)
 
void setSize (int width, int height)
 
void resetView ()
 Sets the initial position away from the model in the y-direction looking toward the center of the model (0,0,0) horizontally. More...
 
void addPos (float posx, float posy)
 
boolean is2D ()
 
void nextColorField ()
 Shows the next color field, if available. More...
 
void prevColorField ()
 Shows the next color field, if available. More...
 
void togglePause ()
 pause the animation if there is any More...
 
void setOrientation (Orientation o)
 Sets the current orientation. More...
 
void zoomIn ()
 zoom in More...
 
void zoomOut ()
 zoom out More...
 

Additional Inherited Members

- Public Attributes inherited from jarmos.visual.OpenGLBase
boolean isContinuousRotation = true
 Flag that indicates whether the object rotates continuously in the 3D case. More...
 
boolean isFrontFace = true
 Flag that indicates whether the front face should be rendered or not. More...
 
- Static Public Attributes inherited from jarmos.visual.OpenGLBase
static final float FRAME_INCREASE = 0.01f
 
- Protected Member Functions inherited from jarmos.visual.OpenGLBase
void frameRendered ()
 
float getBoxSize ()
 
int getCurrentColorOffset ()
 
int getCurrentNormalsOffset ()
 
int getCurrentVertexOffset ()
 
int getCurrentWireframeOffset ()
 
int getFaceOffset ()
 
int getHeight ()
 
int getNumFaces ()
 
float[] getOrtographicProj ()
 
float[] getRotationMatrix ()
 
float getScalingFactor ()
 
int getWidth ()
 
float getXTranslation ()
 
float getYTranslation ()
 
void initRendering ()
 Initializes the rendering process (Vertex, face, color and normal openGL buffers) More...
 
- Protected Attributes inherited from jarmos.visual.OpenGLBase
FloatBuffer floatBuf
 
ShortBuffer shortBuf
 
- Package Attributes inherited from jarmos.visual.OpenGLBase
int h
 

Detailed Description

OpenGL renderer implementation using the khronos OpenGL ES android implementation.

This class has been taken from the original rbAppMIT package and modified to fit into the current JaRMoS framework

Author
Daniel Wirtz
Date
Aug 29, 2011

Definition at line 21 of file GLRenderer.java.

Constructor & Destructor Documentation

jarmos.app.visual.GLRenderer.GLRenderer ( VisualizationData  vData)

Definition at line 23 of file GLRenderer.java.

jarmos.app.visual.GLRenderer.GLRenderer ( VisualizationData  vData,
int  width,
int  height 
)

Definition at line 27 of file GLRenderer.java.

Member Function Documentation

void jarmos.app.visual.GLRenderer.onDrawFrame ( GL10  gl)
See Also
android.opengl.GLSurfaceView.Renderer::onDrawFrame(javax.microedition.khronos.opengles.GL10)

Definition at line 35 of file GLRenderer.java.

void jarmos.app.visual.GLRenderer.onSurfaceChanged ( GL10  gl,
int  w,
int  h 
)
See Also
android.opengl.GLSurfaceView.Renderer::onSurfaceChanged(javax.microedition.khronos.opengles.GL10, int, int)

Definition at line 135 of file GLRenderer.java.

void jarmos.app.visual.GLRenderer.onSurfaceCreated ( GL10  gl,
EGLConfig  config 
)
See Also
android.opengl.GLSurfaceView.Renderer::onSurfaceCreated(javax.microedition.khronos.opengles.GL10, javax.microedition.khronos.egl.EGLConfig)

Definition at line 145 of file GLRenderer.java.


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