|
|||||||||
| 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 Camera |
_camera
|
protected float |
_cheight
|
protected float |
_cwidth
|
protected float |
_cx
|
protected float |
_cy
|
protected 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(Spatial geom)
Creates a view with the specified Spatial to be rendered. |
|
| Method Summary | |
|---|---|
protected Camera |
createCamera(DisplaySystem ds)
Called to create and configure the camera that we'll use when rendering our geometry. |
Camera |
getCamera()
Returns the camera used when rendering our geometry. |
Spatial |
getGeometry()
Returns the geometry rendered by this view. |
protected void |
renderComponent(Renderer renderer)
Renders any custom bits for this component. |
void |
setGeometry(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()
This method is called when we are added to a hierarchy that is connected to a top-level window (at which point we can rely on having a look and feel and can set ourselves up). |
protected void |
wasRemoved()
This method is called when we are removed from a hierarchy that is connected to a top-level window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BRootNode _root
protected Camera _camera
protected 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(Spatial geom)
Spatial to be rendered.
| Method Detail |
|---|
public Camera getCamera()
public void setGeometry(Spatial geom)
public Spatial getGeometry()
public void update(float frameTime)
BRootNode.
protected void wasAdded()
BComponent
wasAdded in class BComponentprotected void wasRemoved()
BComponentBComponent.wasAdded(), this is a fine place
to do so.
wasRemoved in class BComponentprotected void renderComponent(Renderer renderer)
BComponent
renderComponent in class BComponentprotected Camera createCamera(DisplaySystem ds)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||