Class AMonkeyInit
- java.lang.Object
-
- com.jme3.app.Application
-
- com.jme3.app.SimpleApplication
-
- jadex.extension.envsupport.observer.graphics.jmonkey.AMonkeyInit
-
- All Implemented Interfaces:
com.jme3.animation.AnimEventListener
,com.jme3.system.SystemListener
- Direct Known Subclasses:
AMonkeyFunctions
public abstract class AMonkeyInit extends com.jme3.app.SimpleApplication implements com.jme3.animation.AnimEventListener
The Second Abstract Application for the renders the 3d output for Jadex in the Jmonkey Engine This Class has most of the Getter and Setter and init Methods from the MonkeyApp for better structure
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
ambientOcclusion
protected java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel>
animChannels
protected float
appScaled
protected float
appSize
protected com.jme3.shadow.BasicShadowRenderer
bsr
protected java.lang.String
cameraSelection
protected DefaultCameraState
cameraState
protected java.awt.Dimension
canvassize
protected boolean
cleanupPostFilter
protected boolean
complexShadows
protected boolean
defaultGui
protected FlyCamera
flyCamera
protected FocusCamera
focusCam
protected boolean
focusCamActive
protected com.jme3.post.FilterPostProcessor
fpp
com.jme3.scene.Node
gridNode
protected java.lang.String
guiCreatorPath
protected boolean
hudactive
protected boolean
isGrid
protected java.util.ArrayList<com.jme3.light.Light>
lights
protected com.jme3.niftygui.NiftyJmeDisplay
niftyDisplay
protected java.util.ArrayList<NiftyScreen>
niftyScreens
protected java.util.HashMap<java.lang.String,com.jme3.effect.ParticleEmitter>
particleEmitters
protected com.jme3.shadow.PssmShadowRenderer
pssmRenderer
protected com.jme3.scene.Spatial
selectedSpatial
protected int
selectedTarget
protected SelectionControl
selectionControl
protected ISpaceController
spaceController
protected float
spaceSize
protected com.jme3.scene.Node
staticNode
protected com.jme3.terrain.geomipmap.TerrainQuad
terrain
protected java.util.ArrayList<com.jme3.scene.Spatial>
toAdd
protected java.util.ArrayList<java.lang.String>
toDelete
protected boolean
walkCam
-
Constructor Summary
Constructors Constructor Description AMonkeyInit(float dim, float appScaled, float spaceSize, boolean isGrid, boolean shader, java.lang.String camera, java.lang.String guiCreatorPath, ISpaceController spaceController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel>
getAnimChannels()
float
getAppDimension()
float
getAppScaled()
float
getAppSize()
com.jme3.asset.AssetManager
getAssetManager()
com.jme3.shadow.BasicShadowRenderer
getBsr()
java.lang.String
getCameraSelection()
java.awt.Dimension
getCanvassize()
java.util.Collection<com.jme3.renderer.Caps>
getCaps()
java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel>
getChannels()
FlyCamera
getFlyCamera()
FocusCamera
getFocusCam()
com.jme3.post.FilterPostProcessor
getFpp()
com.jme3.scene.Node
getGridNode()
java.util.ArrayList<com.jme3.light.Light>
getLights()
com.jme3.niftygui.NiftyJmeDisplay
getNiftyDisplay()
java.util.HashMap<java.lang.String,com.jme3.effect.ParticleEmitter>
getParticleEmiters()
com.jme3.shadow.PssmShadowRenderer
getPssmRenderer()
com.jme3.scene.Spatial
getSelectedSpatial()
int
getSelectedTarget()
ISpaceController
getSpaceController()
float
getSpaceSize()
com.jme3.terrain.geomipmap.TerrainQuad
getTerrain()
java.util.ArrayList<com.jme3.scene.Spatial>
getToAdd()
java.util.ArrayList<java.lang.String>
getToDelete()
void
initCam()
boolean
isCleanupPostFilter()
boolean
isComplexShadows()
boolean
isFocusCamActive()
boolean
isGrid()
boolean
isHudactive()
boolean
isWalkCam()
void
onAnimChange(com.jme3.animation.AnimControl control, com.jme3.animation.AnimChannel channel, java.lang.String animName)
void
onAnimCycleDone(com.jme3.animation.AnimControl control, com.jme3.animation.AnimChannel channel, java.lang.String animName)
void
setAnimChannels(java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel> animChannels)
void
setAppDimension(float appDimension)
void
setAppScaled(float appScaled)
void
setAppSize(float appSize)
void
setBsr(com.jme3.shadow.BasicShadowRenderer bsr)
void
setCameraSelection(java.lang.String cameraSelection)
void
setCanvassize(java.awt.Dimension canvasSize)
void
setChannels(java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel> animChannels)
void
setCleanupPostFilter(boolean cleanupPostFilter)
void
setComplexShadows(boolean complexShadows)
void
setFlyCamera(FlyCamera flyCamera)
void
setFocusCam(FocusCamera focusCam)
void
setFocusCamActive(boolean focusCamActive)
void
setFpp(com.jme3.post.FilterPostProcessor fpp)
void
setGrid(boolean isGrid)
void
setGridNode(com.jme3.scene.Node gridNode)
void
setHudactive(boolean hudactive)
void
setLights(java.util.ArrayList<com.jme3.light.Light> lights)
void
setNiftyDisplay(com.jme3.niftygui.NiftyJmeDisplay niftyDisplay)
void
setParticleEmiters(java.util.HashMap<java.lang.String,com.jme3.effect.ParticleEmitter> particleEmiters)
void
setPssmRenderer(com.jme3.shadow.PssmShadowRenderer pssmRenderer)
void
setSelectedSpatial(com.jme3.scene.Spatial selectedSpatial)
void
setSelectedTarget(int selectedTarget)
void
setSpaceController(ISpaceController spaceController)
void
setSpaceSize(float spaceSize)
void
setTerrain(com.jme3.terrain.geomipmap.TerrainQuad terrain)
void
setToAdd(java.util.ArrayList<com.jme3.scene.Spatial> toAdd)
void
setToDelete(java.util.ArrayList<java.lang.String> toDelete)
void
setWalkCam(boolean walkCam)
protected void
simpleInit()
void
simpleUpdateAbstract(float tpf)
-
Methods inherited from class com.jme3.app.SimpleApplication
getFlyByCamera, getGuiNode, getRootNode, initialize, isShowSettings, loadGuiFont, setDisplayFps, setDisplayStatView, setShowSettings, simpleInitApp, simpleRender, simpleUpdate, start, update
-
Methods inherited from class com.jme3.app.Application
createCanvas, destroy, destroyInput, enqueue, gainFocus, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getRenderer, getRenderManager, getStateManager, getTimer, getViewPort, handleError, isPauseOnLostFocus, loseFocus, requestClose, reshape, restart, runQueuedTasks, setAssetManager, setPauseOnLostFocus, setSettings, setTimer, start, startCanvas, startCanvas, stop, stop
-
-
-
-
Field Detail
-
animChannels
protected java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel> animChannels
-
particleEmitters
protected java.util.HashMap<java.lang.String,com.jme3.effect.ParticleEmitter> particleEmitters
-
lights
protected java.util.ArrayList<com.jme3.light.Light> lights
-
fpp
protected com.jme3.post.FilterPostProcessor fpp
-
terrain
protected com.jme3.terrain.geomipmap.TerrainQuad terrain
-
focusCam
protected FocusCamera focusCam
-
flyCamera
protected FlyCamera flyCamera
-
niftyDisplay
protected com.jme3.niftygui.NiftyJmeDisplay niftyDisplay
-
gridNode
public com.jme3.scene.Node gridNode
-
appSize
protected float appSize
-
appScaled
protected float appScaled
-
spaceSize
protected float spaceSize
-
selectedSpatial
protected com.jme3.scene.Spatial selectedSpatial
-
selectedTarget
protected int selectedTarget
-
pssmRenderer
protected com.jme3.shadow.PssmShadowRenderer pssmRenderer
-
bsr
protected com.jme3.shadow.BasicShadowRenderer bsr
-
isGrid
protected boolean isGrid
-
walkCam
protected boolean walkCam
-
hudactive
protected boolean hudactive
-
focusCamActive
protected boolean focusCamActive
-
complexShadows
protected boolean complexShadows
-
cleanupPostFilter
protected boolean cleanupPostFilter
-
ambientOcclusion
protected boolean ambientOcclusion
-
cameraSelection
protected java.lang.String cameraSelection
-
toDelete
protected java.util.ArrayList<java.lang.String> toDelete
-
toAdd
protected java.util.ArrayList<com.jme3.scene.Spatial> toAdd
-
defaultGui
protected boolean defaultGui
-
guiCreatorPath
protected java.lang.String guiCreatorPath
-
niftyScreens
protected java.util.ArrayList<NiftyScreen> niftyScreens
-
spaceController
protected ISpaceController spaceController
-
canvassize
protected java.awt.Dimension canvassize
-
cameraState
protected DefaultCameraState cameraState
-
selectionControl
protected SelectionControl selectionControl
-
staticNode
protected com.jme3.scene.Node staticNode
-
-
Constructor Detail
-
AMonkeyInit
public AMonkeyInit(float dim, float appScaled, float spaceSize, boolean isGrid, boolean shader, java.lang.String camera, java.lang.String guiCreatorPath, ISpaceController spaceController)
-
-
Method Detail
-
simpleInit
protected void simpleInit()
-
initCam
public void initCam()
-
onAnimChange
public void onAnimChange(com.jme3.animation.AnimControl control, com.jme3.animation.AnimChannel channel, java.lang.String animName)
- Specified by:
onAnimChange
in interfacecom.jme3.animation.AnimEventListener
-
onAnimCycleDone
public void onAnimCycleDone(com.jme3.animation.AnimControl control, com.jme3.animation.AnimChannel channel, java.lang.String animName)
- Specified by:
onAnimCycleDone
in interfacecom.jme3.animation.AnimEventListener
-
simpleUpdateAbstract
public void simpleUpdateAbstract(float tpf)
-
setChannels
public void setChannels(java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel> animChannels)
-
getChannels
public java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel> getChannels()
-
getCaps
public java.util.Collection<com.jme3.renderer.Caps> getCaps()
-
getAnimChannels
public java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel> getAnimChannels()
- Returns:
- the animChannels
-
setAnimChannels
public void setAnimChannels(java.util.HashMap<java.lang.String,com.jme3.animation.AnimChannel> animChannels)
- Parameters:
animChannels
- the animChannels to set
-
getTerrain
public com.jme3.terrain.geomipmap.TerrainQuad getTerrain()
- Returns:
- the terrain
-
setTerrain
public void setTerrain(com.jme3.terrain.geomipmap.TerrainQuad terrain)
- Parameters:
terrain
- the terrain to set
-
getFocusCam
public FocusCamera getFocusCam()
- Returns:
- the focusCam
-
setFocusCam
public void setFocusCam(FocusCamera focusCam)
- Parameters:
focusCam
- the focusCam to set
-
getFlyCamera
public FlyCamera getFlyCamera()
- Returns:
- the flyCamera
-
setFlyCamera
public void setFlyCamera(FlyCamera flyCamera)
- Parameters:
flyCamera
- the flyCamera to set
-
getNiftyDisplay
public com.jme3.niftygui.NiftyJmeDisplay getNiftyDisplay()
- Returns:
- the niftyDisplay
-
setNiftyDisplay
public void setNiftyDisplay(com.jme3.niftygui.NiftyJmeDisplay niftyDisplay)
- Parameters:
niftyDisplay
- the niftyDisplay to set
-
getGridNode
public com.jme3.scene.Node getGridNode()
- Returns:
- the gridNode
-
setGridNode
public void setGridNode(com.jme3.scene.Node gridNode)
- Parameters:
gridNode
- the gridNode to set
-
getAppDimension
public float getAppDimension()
- Returns:
- the appDimension
-
setAppDimension
public void setAppDimension(float appDimension)
- Parameters:
appDimension
- the appDimension to set
-
getSpaceSize
public float getSpaceSize()
- Returns:
- the spaceSize
-
setSpaceSize
public void setSpaceSize(float spaceSize)
- Parameters:
spaceSize
- the spaceSize to set
-
getSelectedSpatial
public com.jme3.scene.Spatial getSelectedSpatial()
- Returns:
- the selectedSpatial
-
setSelectedSpatial
public void setSelectedSpatial(com.jme3.scene.Spatial selectedSpatial)
- Parameters:
selectedSpatial
- the selectedSpatial to set
-
getSelectedTarget
public int getSelectedTarget()
- Returns:
- the selectedTarget
-
setSelectedTarget
public void setSelectedTarget(int selectedTarget)
- Parameters:
selectedTarget
- the selectedTarget to set
-
getPssmRenderer
public com.jme3.shadow.PssmShadowRenderer getPssmRenderer()
- Returns:
- the pssmRenderer
-
setPssmRenderer
public void setPssmRenderer(com.jme3.shadow.PssmShadowRenderer pssmRenderer)
- Parameters:
pssmRenderer
- the pssmRenderer to set
-
getBsr
public com.jme3.shadow.BasicShadowRenderer getBsr()
- Returns:
- the bsr
-
setBsr
public void setBsr(com.jme3.shadow.BasicShadowRenderer bsr)
- Parameters:
bsr
- the bsr to set
-
isGrid
public boolean isGrid()
- Returns:
- the isGrid
-
setGrid
public void setGrid(boolean isGrid)
- Parameters:
isGrid
- the isGrid to set
-
isWalkCam
public boolean isWalkCam()
- Returns:
- the walkCam
-
setWalkCam
public void setWalkCam(boolean walkCam)
- Parameters:
walkCam
- the walkCam to set
-
isHudactive
public boolean isHudactive()
- Returns:
- the hudactive
-
setHudactive
public void setHudactive(boolean hudactive)
- Parameters:
hudactive
- the hudactive to set
-
isFocusCamActive
public boolean isFocusCamActive()
- Returns:
- the focusCamActive
-
setFocusCamActive
public void setFocusCamActive(boolean focusCamActive)
- Parameters:
focusCamActive
- the focusCamActive to set
-
isComplexShadows
public boolean isComplexShadows()
- Returns:
- the complexShadows
-
setComplexShadows
public void setComplexShadows(boolean complexShadows)
- Parameters:
complexShadows
- the complexShadows to set
-
getAssetManager
public com.jme3.asset.AssetManager getAssetManager()
- Overrides:
getAssetManager
in classcom.jme3.app.Application
- Returns:
- the assetManager
-
getLights
public java.util.ArrayList<com.jme3.light.Light> getLights()
- Returns:
- the lights
-
setLights
public void setLights(java.util.ArrayList<com.jme3.light.Light> lights)
- Parameters:
lights
- the lights to set
-
isCleanupPostFilter
public boolean isCleanupPostFilter()
- Returns:
- the cleanupPostFilter
-
setCleanupPostFilter
public void setCleanupPostFilter(boolean cleanupPostFilter)
- Parameters:
cleanupPostFilter
- the cleanupPostFilter to set
-
getParticleEmiters
public java.util.HashMap<java.lang.String,com.jme3.effect.ParticleEmitter> getParticleEmiters()
- Returns:
- the particleEmiters
-
setParticleEmiters
public void setParticleEmiters(java.util.HashMap<java.lang.String,com.jme3.effect.ParticleEmitter> particleEmiters)
- Parameters:
particleEmiters
- the particleEmiters to set
-
getToDelete
public java.util.ArrayList<java.lang.String> getToDelete()
- Returns:
- the toDelete
-
setToDelete
public void setToDelete(java.util.ArrayList<java.lang.String> toDelete)
- Parameters:
toDelete
- the toDelete to set
-
getToAdd
public java.util.ArrayList<com.jme3.scene.Spatial> getToAdd()
- Returns:
- the toAdd
-
setToAdd
public void setToAdd(java.util.ArrayList<com.jme3.scene.Spatial> toAdd)
- Parameters:
toAdd
- the toAdd to set
-
setCanvassize
public void setCanvassize(java.awt.Dimension canvasSize)
-
getCanvassize
public java.awt.Dimension getCanvassize()
-
getAppSize
public float getAppSize()
-
setAppSize
public void setAppSize(float appSize)
-
getCameraSelection
public java.lang.String getCameraSelection()
-
setCameraSelection
public void setCameraSelection(java.lang.String cameraSelection)
-
getAppScaled
public float getAppScaled()
-
setAppScaled
public void setAppScaled(float appScaled)
-
getSpaceController
public ISpaceController getSpaceController()
-
setSpaceController
public void setSpaceController(ISpaceController spaceController)
-
getFpp
public com.jme3.post.FilterPostProcessor getFpp()
- Returns:
- the fpp
-
setFpp
public void setFpp(com.jme3.post.FilterPostProcessor fpp)
- Parameters:
fpp
- the fpp to set
-
-