org.cogchar.app.puma.vworld
Class PumaVirtualWorldMapper

java.lang.Object
  extended by org.appdapter.core.log.BasicDebugger
      extended by org.cogchar.app.puma.vworld.PumaVirtualWorldMapper
All Implemented Interfaces:
org.appdapter.core.log.Loggable, RenderGateway

public class PumaVirtualWorldMapper
extends org.appdapter.core.log.BasicDebugger
implements RenderGateway

Author:
Stu B.

Field Summary
 
Fields inherited from interface org.appdapter.core.log.Loggable
IMPO_HI, IMPO_HIHI, IMPO_LO, IMPO_LOLO, IMPO_MAX, IMPO_MIN, IMPO_NORM
 
Constructor Summary
PumaVirtualWorldMapper(PumaAppContext pac)
           
 
Method Summary
 void attachRenderModule(RenderModule rModule)
          Called from PumaAppUtils.attachVWorldRenderModule, which is typically called from a FrameworkStartedEvent.
 void clearCinematicStuff()
          Called from PumaAppContext.initCinema (if clearFirst arg-flag is true) and PumaAppContext.disconnectAllCharsAndMappers
 void connectHrkindVisualizationContent(ClassLoader hrkindResourceCL)
           
 void connectVisualizationResources(ClassLoader bonyRdfCl)
          Called from PumaAppContext.initCinema
 void detachAllHumanoidFigures()
          Called from PumaAppContext.stopAndReleaseAllHumanoids, which is called only from PumaContextCommandBox.processUpdateRequestNow
 void detachRenderModule(RenderModule rModule)
           
 CogcharRenderContext getCogcharRenderContext()
           
 HumanoidRenderContext getHumanoidRenderContext()
           
 HumanoidRenderContext initHumanoidRenderContext(String panelKind)
          First (of three) stage init of world, done BEFORE startOpenGLCanvas().
 void initVirtualWorlds(CommandSpace cspace, PumaConfigManager pcm, BasicThingActionRouter router)
           
 void setupActionConsumer(BasicThingActionRouter router, org.cogchar.blob.emit.GlobalConfigEmitter gce, org.appdapter.core.name.Ident worldConfigID, org.appdapter.help.repo.RepoClient repoCli, GoodyFactory gFactory)
           
 void startOpenGLCanvas(boolean wrapInJFrameFlag, WindowListener optWinLis)
          Second (and most crucial) stage of OpenGL init.
 void toggleHelpScreenDisplay()
          Called from TriggerItems.ToggleHelp.fireOnPCCB
 
Methods inherited from class org.appdapter.core.log.BasicDebugger
checkDebugImportance, forceLog4jConfig, getLogger, getLoggerForClass, isLoggerUsable, logDebug, logError, logError, logInfo, logInfo, logInfoEvent, logWarning, logWarning, logWithException, setDebugImportanceThreshold, setLogger, useLoggerForClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PumaVirtualWorldMapper

public PumaVirtualWorldMapper(PumaAppContext pac)
Method Detail

getHumanoidRenderContext

public HumanoidRenderContext getHumanoidRenderContext()

getCogcharRenderContext

public CogcharRenderContext getCogcharRenderContext()
Specified by:
getCogcharRenderContext in interface RenderGateway

initHumanoidRenderContext

public HumanoidRenderContext initHumanoidRenderContext(String panelKind)
First (of three) stage init of world, done BEFORE startOpenGLCanvas().

Parameters:
panelKind -
Returns:

initVirtualWorlds

public void initVirtualWorlds(CommandSpace cspace,
                              PumaConfigManager pcm,
                              BasicThingActionRouter router)

setupActionConsumer

public void setupActionConsumer(BasicThingActionRouter router,
                                org.cogchar.blob.emit.GlobalConfigEmitter gce,
                                org.appdapter.core.name.Ident worldConfigID,
                                org.appdapter.help.repo.RepoClient repoCli,
                                GoodyFactory gFactory)
Parameters:
router -
gce -
worldConfigID -
repoCli -
gFactory - Let's review and figure out what is really going on here. The stack at this point [as of 2013-10-06] is: initCinematicStuff initVirtualWorlds PumaAppContext.initCinema - * (see Javadoc comment above this method). - called from 3 different places, including pumaBoot and processUpdateRequestNow()

startOpenGLCanvas

public void startOpenGLCanvas(boolean wrapInJFrameFlag,
                              WindowListener optWinLis)
                       throws Exception
Second (and most crucial) stage of OpenGL init. This method blocks until the canvas initialization is complete, which requires that the simpleInitApp() methods have all completed.

Parameters:
wrapInJFrameFlag -
Throws:
Exception

clearCinematicStuff

public void clearCinematicStuff()
Called from PumaAppContext.initCinema (if clearFirst arg-flag is true) and PumaAppContext.disconnectAllCharsAndMappers


detachAllHumanoidFigures

public void detachAllHumanoidFigures()
Called from PumaAppContext.stopAndReleaseAllHumanoids, which is called only from PumaContextCommandBox.processUpdateRequestNow


connectVisualizationResources

public void connectVisualizationResources(ClassLoader bonyRdfCl)
Called from PumaAppContext.initCinema

Parameters:
bonyRdfCl -

connectHrkindVisualizationContent

public void connectHrkindVisualizationContent(ClassLoader hrkindResourceCL)

toggleHelpScreenDisplay

public void toggleHelpScreenDisplay()
Called from TriggerItems.ToggleHelp.fireOnPCCB


attachRenderModule

public void attachRenderModule(RenderModule rModule)
Called from PumaAppUtils.attachVWorldRenderModule, which is typically called from a FrameworkStartedEvent.

Parameters:
rModule -

detachRenderModule

public void detachRenderModule(RenderModule rModule)


Copyright © 2010-2013. All Rights Reserved.