com.jme3.app
クラス SimpleApplication

java.lang.Object
  上位を拡張 com.jme3.app.Application
      上位を拡張 com.jme3.app.SimpleApplication
すべての実装されたインタフェース:
SystemListener
直系の既知のサブクラス:
TestOctree

public abstract class SimpleApplication
extends Application

SimpleApplication extends the Application class to provide default functionality like a first-person camera, and an accessible root node that is updated and rendered regularly. Additionally, SimpleApplication will display a statistics view using the StatsView class. It will display the current frames-per-second value on-screen in addition to the statistics. Several keys have special functionality in SimpleApplication:

Esc- Close the application
C- Display the camera position and rotation in the console.
M- Display memory usage in the console.


フィールドの概要
static java.lang.String INPUT_MAPPING_CAMERA_POS
           
static java.lang.String INPUT_MAPPING_EXIT
           
static java.lang.String INPUT_MAPPING_HIDE_STATS
           
static java.lang.String INPUT_MAPPING_MEMORY
           
 
コンストラクタの概要
SimpleApplication()
           
 
メソッドの概要
 FlyByCamera getFlyByCamera()
          Retrieves flyCam
 Node getGuiNode()
          Retrieves guiNode
 Node getRootNode()
          Retrieves rootNode
 void initialize()
          Do not call manually.
 boolean isShowSettings()
           
 void loadFPSText()
          Attaches FPS statistics to guiNode and displays it on the screen.
 void loadStatsView()
          Attaches Statistics View to guiNode and displays it on the screen above FPS statistics line.
 void setDisplayFps(boolean show)
           
 void setDisplayStatView(boolean show)
           
 void setShowSettings(boolean showSettings)
          Toggles settings window to display at start-up
abstract  void simpleInitApp()
           
 void simpleRender(RenderManager rm)
           
 void simpleUpdate(float tpf)
           
 void start()
          Starts the application in display mode.
 void update()
          Do not call manually.
 
クラス com.jme3.app.Application から継承されたメソッド
createCanvas, destroy, enqueue, gainFocus, getAssetManager, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getRenderer, getRenderManager, getStateManager, getViewPort, handleError, isPauseOnLostFocus, loseFocus, requestClose, reshape, restart, setAssetManager, setPauseOnLostFocus, setSettings, start, startCanvas, startCanvas, stop, stop
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

INPUT_MAPPING_EXIT

public static final java.lang.String INPUT_MAPPING_EXIT
関連項目:
定数フィールド値

INPUT_MAPPING_CAMERA_POS

public static final java.lang.String INPUT_MAPPING_CAMERA_POS
関連項目:
定数フィールド値

INPUT_MAPPING_MEMORY

public static final java.lang.String INPUT_MAPPING_MEMORY
関連項目:
定数フィールド値

INPUT_MAPPING_HIDE_STATS

public static final java.lang.String INPUT_MAPPING_HIDE_STATS
関連項目:
定数フィールド値
コンストラクタの詳細

SimpleApplication

public SimpleApplication()
メソッドの詳細

start

public void start()
クラス Application の記述:
Starts the application in display mode.

オーバーライド:
クラス Application 内の start
関連項目:
Application.start(com.jme3.system.JmeContext.Type)

getFlyByCamera

public FlyByCamera getFlyByCamera()
Retrieves flyCam

戻り値:
flyCam Camera object

getGuiNode

public Node getGuiNode()
Retrieves guiNode

戻り値:
guiNode Node object

getRootNode

public Node getRootNode()
Retrieves rootNode

戻り値:
rootNode Node object

isShowSettings

public boolean isShowSettings()

setShowSettings

public void setShowSettings(boolean showSettings)
Toggles settings window to display at start-up

パラメータ:
showSettings - Sets true/false

loadFPSText

public void loadFPSText()
Attaches FPS statistics to guiNode and displays it on the screen.


loadStatsView

public void loadStatsView()
Attaches Statistics View to guiNode and displays it on the screen above FPS statistics line.


initialize

public void initialize()
クラス Application の記述:
Do not call manually. Callback from ContextListener.

Initializes the Application, by creating a display and default camera. If display settings are not specified, a default 640x480 display is created. Default values are used for the camera; perspective projection with 45° field of view, with near and far values 1 and 1000 units respectively.

定義:
インタフェース SystemListener 内の initialize
オーバーライド:
クラス Application 内の initialize

update

public void update()
クラス Application の記述:
Do not call manually. Callback from ContextListener.

定義:
インタフェース SystemListener 内の update
オーバーライド:
クラス Application 内の update

setDisplayFps

public void setDisplayFps(boolean show)

setDisplayStatView

public void setDisplayStatView(boolean show)

simpleInitApp

public abstract void simpleInitApp()

simpleUpdate

public void simpleUpdate(float tpf)

simpleRender

public void simpleRender(RenderManager rm)