hmi.graphics.opengl
Class GLSkeleton

java.lang.Object
  extended by hmi.graphics.opengl.GLSkeleton
All Implemented Interfaces:
GLRenderObject

public class GLSkeleton
extends Object
implements GLRenderObject

Debug class used to draw the skeleton from a root VJoint

Author:
welberge

Field Summary
private  float[] lineAmbient
           
private  float[] lineDiffuse
           
private  float[] lineEmission
           
private  float[] lineSpecular
           
private  GLMaterial lineState
           
private  NoTexture2DState noTextureState
           
private  float[] offset
           
private  VJoint parent
           
private  SphereGeometry sphere
           
private  float[] sphereAmbient
           
private  float[] sphereDiffuse
           
private  float[] sphereEmission
           
private  float[] sphereSpecular
           
private  GLMaterial sphereState
           
 
Constructor Summary
GLSkeleton(VJoint p)
           
 
Method Summary
 void glInit(GLRenderContext gl)
          OpenGL initialization.
 void glRender(GLRenderContext gl)
          Called during openGL rendering.
private  void renderJoints(GLRenderContext gl, VJoint p)
           
private  void renderLines(GLRenderContext gl, VJoint p)
           
 void setOffset(float x, float y, float z)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

private VJoint parent

sphere

private SphereGeometry sphere

sphereState

private GLMaterial sphereState

lineState

private GLMaterial lineState

noTextureState

private NoTexture2DState noTextureState

sphereDiffuse

private final float[] sphereDiffuse

sphereSpecular

private final float[] sphereSpecular

sphereAmbient

private final float[] sphereAmbient

sphereEmission

private final float[] sphereEmission

lineDiffuse

private final float[] lineDiffuse

lineAmbient

private final float[] lineAmbient

lineEmission

private final float[] lineEmission

lineSpecular

private final float[] lineSpecular

offset

private float[] offset
Constructor Detail

GLSkeleton

public GLSkeleton(VJoint p)
Method Detail

setOffset

public void setOffset(float x,
                      float y,
                      float z)

renderJoints

private void renderJoints(GLRenderContext gl,
                          VJoint p)

renderLines

private void renderLines(GLRenderContext gl,
                         VJoint p)

glRender

public void glRender(GLRenderContext gl)
Description copied from interface: GLRenderObject
Called during openGL rendering.

Specified by:
glRender in interface GLRenderObject

glInit

public void glInit(GLRenderContext gl)
OpenGL initialization.

Specified by:
glInit in interface GLRenderObject