hmi.environment.semaine
Class EnterfaceDemo

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

public class EnterfaceDemo
extends ElckerlycDemoEnvironment

Elckerlyc demo for enterface

Author:
Dennis Reidsma

Field Summary
(package private)  VJoint awayfromuserAni
           
protected  ClockPanel clockPanel
           
private  org.slf4j.Logger logger
           
private static String resource
           
private static String specfile
           
 
Fields inherited from class hmi.environment.ElckerlycDemoEnvironment
animateavatars, playvoices, theAnimationPlayerManager, 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, debugJOGL, 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, wowvx
 
Constructor Summary
EnterfaceDemo(WorldObjectManager wo)
           
 
Method Summary
protected  void disposeFrame()
          Clean up physicalhumanoids and the verbalplayers and disposes the jframe
 void init()
          In addition to super.init(), initialize the clones of the aniomationroot (for the mixed dynamics animation), and the animationPlayerManager
 void initClockPanel()
           
protected  void initGraphicScene()
          Add the graphical representation for the phsphere to the graphical scene
static void main(String[] arg)
          Start the ElckerlycDemoEnvironment prog
protected  void physicsRun(double currentTime)
           
 void processAnimationResultForRender(GLRenderContext glc)
          override, because now we also need to do the deform() & morph()!!
 
Methods inherited from class hmi.environment.ElckerlycDemoEnvironment
addPhysicalHumanDebugVisualisations, addVJointDebugVisualisations, close, createVirtualHumanUI, getVirtualWorld, initMixedAnimation, initQuickSettings, initUI, initVoiceSystem, initWorldPhysics, loadVirtualHuman, loadVirtualHuman, physicsTime, playAudio, playVoices, reset, setXuukReader, unloadVirtualHuman
 
Methods inherited from class hmi.environment.PhysicalDemoEnvironment
addPhysicsRunner, glueFeetToFloor, initGraphicSphere, initGroundPhysics, initSpherePhysics, initThrowBallButton, initUI, physicsCopy, physicsTick, prepareClose, prepareDispose, prepareReset, setCollisionEnabled, setPhysicsEnabled, startClocks, toggleCollision, togglePhysics
 
Methods inherited from class hmi.environment.GraphicsDemoEnvironment
addDebugVisualisation, addRenderRunner, addVisualisation, 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

logger

private org.slf4j.Logger logger

resource

private static String resource

specfile

private static String specfile

clockPanel

protected ClockPanel clockPanel

awayfromuserAni

VJoint awayfromuserAni
Constructor Detail

EnterfaceDemo

public EnterfaceDemo(WorldObjectManager wo)
Method Detail

main

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


disposeFrame

protected void disposeFrame()
                     throws InterruptedException,
                            InvocationTargetException
Description copied from class: ElckerlycDemoEnvironment
Clean up physicalhumanoids and the verbalplayers and disposes the jframe

Overrides:
disposeFrame in class ElckerlycDemoEnvironment
Throws:
InterruptedException
InvocationTargetException

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

init

public void init()
In addition to super.init(), initialize the clones of the aniomationroot (for the mixed dynamics animation), and the animationPlayerManager

Overrides:
init in class ElckerlycDemoEnvironment

initClockPanel

public void initClockPanel()

processAnimationResultForRender

public void processAnimationResultForRender(GLRenderContext glc)
Description copied from class: ElckerlycDemoEnvironment
override, because now we also need to do the deform() & morph()!! Note: called in GraphicsDemoEnv, synchronised on the animationSync...

Overrides:
processAnimationResultForRender in class ElckerlycDemoEnvironment

physicsRun

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