|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jmex.bui.BComponent
com.jmex.bui.BGeomView
public class BGeomView
Displays 3D geometry (a Spatial) inside a normal user interface.
| Field Summary | |
|---|---|
protected com.jme.renderer.Camera |
_camera
|
protected float |
_cheight
|
protected float |
_cwidth
|
protected float |
_cx
|
protected float |
_cy
|
protected com.jme.scene.Spatial |
_geom
|
protected BRootNode |
_root
|
protected int |
_sheight
|
protected Rectangle |
_srect
|
protected int |
_swidth
|
| Fields inherited from class com.jmex.bui.BComponent |
|---|
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| Constructor Summary | |
|---|---|
BGeomView()
Creates a view with no configured geometry. |
|
BGeomView(com.jme.scene.Spatial geom)
Creates a view with the specified Spatial to be rendered. |
|
| Method Summary | |
|---|---|
protected com.jme.renderer.Camera |
createCamera(com.jme.system.DisplaySystem ds)
Called to create and configure the camera that we'll use when rendering our geometry. |
com.jme.renderer.Camera |
getCamera()
Returns the camera used when rendering our geometry. |
com.jme.scene.Spatial |
getGeometry()
Returns the geometry rendered by this view. |
protected void |
renderComponent(com.jme.renderer.Renderer renderer)
Documentation Inherited |
void |
setGeometry(com.jme.scene.Spatial geom)
Configures the spatial to be rendered by this view. |
void |
update(float frameTime)
Called every frame (while we're added to the view hierarchy) by the BRootNode. |
protected void |
wasAdded()
Documentation Inherited |
protected void |
wasRemoved()
Documentation Inherited |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BRootNode _root
protected com.jme.renderer.Camera _camera
protected com.jme.scene.Spatial _geom
protected int _swidth
protected int _sheight
protected float _cx
protected float _cy
protected float _cwidth
protected float _cheight
protected Rectangle _srect
| Constructor Detail |
|---|
public BGeomView()
setGeometry(com.jme.scene.Spatial).
public BGeomView(com.jme.scene.Spatial geom)
Spatial to be rendered.
geom - Spatial| Method Detail |
|---|
public com.jme.renderer.Camera getCamera()
public void setGeometry(com.jme.scene.Spatial geom)
geom - Spatialpublic com.jme.scene.Spatial getGeometry()
public void update(float frameTime)
BRootNode.
frameTime - floatprotected void wasAdded()
wasAdded in class BComponentBComponent.wasAdded()protected void wasRemoved()
wasRemoved in class BComponentBComponent.wasRemoved()protected void renderComponent(com.jme.renderer.Renderer renderer)
renderComponent in class BComponentrenderer - RendererBComponent.renderComponent(com.jme.renderer.Renderer)protected com.jme.renderer.Camera createCamera(com.jme.system.DisplaySystem ds)
ds - DisplaySystem
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||