hmi.environment
Class ElckerlycDemo

java.lang.Object
  extended by hmi.environment.GraphicsDemoEnvironment
      extended by hmi.environment.PhysicalDemoEnvironment
          extended by hmi.environment.ElckerlycDemoEnvironment
              extended by hmi.environment.ElckerlycDemo
All Implemented Interfaces:
GLRenderObject, KeyListener, EventListener

public class ElckerlycDemo
extends ElckerlycDemoEnvironment

Elckerlyc demo.

Author:
Dennis Reidsma, Herwin van Welbergen

Nested Class Summary
 
Nested classes/interfaces inherited from class hmi.environment.ElckerlycDemoEnvironment
ElckerlycDemoEnvironment.LoadVHListener, ElckerlycDemoEnvironment.PhysCallback, ElckerlycDemoEnvironment.ToggleVHUIListener
 
Nested classes/interfaces inherited from class hmi.environment.PhysicalDemoEnvironment
PhysicalDemoEnvironment.CollisionCheckListener, PhysicalDemoEnvironment.PhysicsCheckListener, PhysicalDemoEnvironment.PhysicsClockListener, PhysicalDemoEnvironment.Sleeper, PhysicalDemoEnvironment.ThrowBallListener
 
Nested classes/interfaces inherited from class hmi.environment.GraphicsDemoEnvironment
GraphicsDemoEnvironment.DebugCheckListener, GraphicsDemoEnvironment.MyRenderclockCallback, GraphicsDemoEnvironment.PlayListener, GraphicsDemoEnvironment.ResetListener
 
Field Summary
private static float[] box2Ambient
           
private static float[] box2Diffuse
           
private static float[] box2Emission
           
private static float[] box2Specular
           
private static float[] boxAmbient
           
private  VJoint boxAni
           
private  VJoint boxAni2
           
private static float[] boxDiffuse
           
private static float[] boxEmission
           
private  VGLNode boxNode
           
private  VGLNode boxNode2
           
private static float[] boxSpecular
           
private static String resource
           
private static String specfile
           
private static float[] sphereAmbient
           
private  VJoint sphereAni
           
private static float[] sphereDiffuse
           
private static float[] sphereEmission
           
private  VGLNode sphereNode
           
private static float[] sphereSpecular
           
 
Fields inherited from class hmi.environment.ElckerlycDemoEnvironment
animateavatars, playvoices, theAnimationPlayerManager, theVirtualWorld, vhUIs, vhUIToggleButtons, virtualHumanList, vjCameraTarget, vjCurrentMixedDynamicsRoot, vjMixedDynamicsAnimationRoot, vjNextMixedDynamicsRoot, vjPredictorMixedDynamicsRoot, vjPreviousMixedDynamicsRoot, vjXuukTarget, xuukReader, xuukTargetMover
 
Fields inherited from class hmi.environment.PhysicalDemoEnvironment
collision, collisionEnabled, g, glueJointGroup, groundGeom, phsphere, phworld, physicsClock, physicsLoopFrequency, physicsRunners, prevTime, runphysics, space, sphereAnimationJoint, sphereRenderJoint, timeStep
 
Fields inherited from class hmi.environment.GraphicsDemoEnvironment
background, color_buf_tex, debugJOGL, depth_buf_tex, dx, dy, dz, enableFSAA, fovyFar, fovyNear, frameTitle, FSAA_samples, fullscreen, glCanvas, glNavControl, glObjectControl, hiddenVisualisations, jframe, laptop, light0, light1, light2, light3, light4, lightPos0, lightPos1, lightPos2, lightPos3, lightPos4, numStencilBits, render, renderClock, renderDebugVisualisations, renderer, renderRunners, shutdownSync, toolBar, useVsync, vglSceneRenderRoot, visualisations, visualisationsUninitialized, vjNavigationNode, vjSceneRenderRoot, vjWorldAnimationRoot, vjWorldRenderRoot, wowTransformMatrix, wowvx, wowvx_header_data, wowvx_header_tex
 
Constructor Summary
ElckerlycDemo(WorldObjectManager wo)
           
 
Method Summary
protected  void initGraphicScene()
          Add the graphical representation for the phsphere to the graphical scene
static void main(String[] arg)
          Start the ElckerlycDemoEnvironment prog
 void physicsCopy()
          After running physics, don't forget to copy info of cokecan to rendering joints
protected  void physicsRun(double currentTime)
           
 void reset()
          Reset: set clocks to 0 (also physics, because physicsclock also drives the animation!).
 
Methods inherited from class hmi.environment.ElckerlycDemoEnvironment
addPhysicalHumanDebugVisualisations, addVJointDebugVisualisations, close, createVirtualHumanUI, disposeFrame, getVirtualWorld, init, initMixedAnimation, initQuickSettings, initUI, initVoiceSystem, initWorldPhysics, loadVirtualHuman, loadVirtualHuman, physicsTime, playAudio, playVoices, processAnimationResultForRender, setXuukReader, unloadVirtualHuman
 
Methods inherited from class hmi.environment.PhysicalDemoEnvironment
addPhysicsRunner, glueFeetToFloor, initGraphicSphere, initGroundPhysics, initSpherePhysics, initThrowBallButton, initUI, physicsTick, prepareClose, prepareDispose, prepareReset, setCollisionEnabled, setPhysicsEnabled, startClocks, toggleCollision, togglePhysics
 
Methods inherited from class hmi.environment.GraphicsDemoEnvironment
addDebugVisualisation, addRenderRunner, addVisualisation, convertBufferToWowVX, exit, getFrame, getGeneralImageIcon, getImageIcon, getWorldAnimationRoot, getWorldRenderRoot, glInit, glPreInit, glPreRender, glRender, hasVisualisation, initGraphics, initRender, initToolbar, initVisualGround, initVJointStructure, isVisualisationVisible, keyPressed, keyReleased, keyTyped, navigate, play, removeDebugVisualisation, removeVisualisation, renderTime, setFullScreen, setupMediaButton, setupMediaButton, setupUI, setupVJointStructure, setVisualisationVisible, startAll, toggleDebugViz
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

private static String resource

specfile

private static String specfile

boxNode

private VGLNode boxNode

boxNode2

private VGLNode boxNode2

boxAni

private VJoint boxAni

boxAni2

private VJoint boxAni2

sphereNode

private VGLNode sphereNode

sphereAni

private VJoint sphereAni

boxDiffuse

private static final float[] boxDiffuse

boxSpecular

private static final float[] boxSpecular

boxAmbient

private static final float[] boxAmbient

boxEmission

private static final float[] boxEmission

sphereDiffuse

private static final float[] sphereDiffuse

sphereSpecular

private static final float[] sphereSpecular

sphereAmbient

private static final float[] sphereAmbient

sphereEmission

private static final float[] sphereEmission

box2Diffuse

private static final float[] box2Diffuse

box2Specular

private static final float[] box2Specular

box2Ambient

private static final float[] box2Ambient

box2Emission

private static final float[] box2Emission
Constructor Detail

ElckerlycDemo

public ElckerlycDemo(WorldObjectManager wo)
Method Detail

main

public static void main(String[] arg)
Start the ElckerlycDemoEnvironment prog


initGraphicScene

protected void initGraphicScene()
Description copied from class: PhysicalDemoEnvironment
Add the graphical representation for the phsphere to the graphical scene

Overrides:
initGraphicScene in class ElckerlycDemoEnvironment

reset

public void reset()
Description copied from class: ElckerlycDemoEnvironment
Reset: set clocks to 0 (also physics, because physicsclock also drives the animation!). Also, call super.reset, and reset animationplayermanager Should not be called directly, use prepareReset to set up a physicsRunner for that.

Overrides:
reset in class ElckerlycDemoEnvironment

physicsRun

protected void physicsRun(double currentTime)
Overrides:
physicsRun in class PhysicalDemoEnvironment

physicsCopy

public void physicsCopy()
After running physics, don't forget to copy info of cokecan to rendering joints

Overrides:
physicsCopy in class PhysicalDemoEnvironment