Class 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 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
      • 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
      • canvassize

        protected java.awt.Dimension canvassize
      • 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 interface com.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 interface com.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 class com.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)
      • 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