com.jme3.app
クラス StatsView
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.jme3.app.StatsView
- すべての実装されたインタフェース:
- Asset, Collidable, Savable, Control, java.lang.Cloneable
public class StatsView
- extends Node
- implements Control
The StatsView
provides a heads-up display (HUD) of various
statistics of rendering. The data is retrieved every frame from a
Statistics
and then displayed on screen.
Usage:
To use the stats view, you need to retrieve the
Statistics
from the
Renderer
used by the application. Then, attach
the StatsView
to the scene graph.
Statistics stats = renderer.getStatistics();
StatsView statsView = new StatsView("MyStats", assetManager, stats);
rootNode.attachChild(statsView);
クラス com.jme3.scene.Node から継承されたメソッド |
attachChild, attachChildAt, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, write |
クラス com.jme3.scene.Spatial から継承されたメソッド |
addControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, toString, worldToLocal |
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StatsView
public StatsView(java.lang.String name,
AssetManager manager,
Statistics stats)
update
public void update(float tpf)
- インタフェース
Control
の記述:
- Updates the control. This should not be called from user code.
- 定義:
- インタフェース
Control
内の update
- パラメータ:
tpf
- Time per frame.
cloneForSpatial
public Control cloneForSpatial(Spatial spatial)
- インタフェース
Control
の記述:
- Creates a clone of the Control, the given Spatial is the cloned
version of the spatial to which this control is attached to.
- 定義:
- インタフェース
Control
内の cloneForSpatial
- 戻り値:
- A clone of this control for the spatial
setSpatial
public void setSpatial(Spatial spatial)
- 定義:
- インタフェース
Control
内の setSpatial
- パラメータ:
spatial
- the spatial to be controlled. This should not be called
from user code.
setEnabled
public void setEnabled(boolean enabled)
- 定義:
- インタフェース
Control
内の setEnabled
- パラメータ:
enabled
- Enable or disable the control. If disabled, update()
should do nothing.
isEnabled
public boolean isEnabled()
- 定義:
- インタフェース
Control
内の isEnabled
- 戻り値:
- True if enabled, false otherwise.
- 関連項目:
Control.setEnabled(boolean)
render
public void render(RenderManager rm,
ViewPort vp)
- インタフェース
Control
の記述:
- Should be called prior to queuing the spatial by the RenderManager. This
should not be called from user code.
- 定義:
- インタフェース
Control
内の render