JaRMoS
1.1
Java Reduced Model Simulations
|
OpenGL renderer implementation using the khronos OpenGL ES android implementation. More...
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 |
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
Definition at line 21 of file GLRenderer.java.
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.
void jarmos.app.visual.GLRenderer.onDrawFrame | ( | GL10 | gl | ) |
Definition at line 35 of file GLRenderer.java.
void jarmos.app.visual.GLRenderer.onSurfaceChanged | ( | GL10 | gl, |
int | w, | ||
int | h | ||
) |
Definition at line 135 of file GLRenderer.java.
void jarmos.app.visual.GLRenderer.onSurfaceCreated | ( | GL10 | gl, |
EGLConfig | config | ||
) |
Definition at line 145 of file GLRenderer.java.