|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.gui.Component
com.threerings.opengl.gui.RenderableView
public class RenderableView
Displays an embedded 3D view.
| Field Summary | |
|---|---|
protected Camera |
_camera
The renderer camera. |
protected CameraHandler |
_camhand
The handler that controls the camera's parameters. |
protected List<Compositable> |
_compositables
The list of other compositables to include. |
protected Model[] |
_configModels
The models loaded from the configuration. |
protected Map<Dependency,Dependency> |
_dependencies
Stores the dependency set. |
protected RenderQueue.Group.State |
_gstate
Stores the state of the render queue. |
protected Image |
_image
For static views, the rendered image. |
protected Rectangle |
_oscissor
Used to save the scissor region. |
protected TextureRenderer |
_renderer
For static views, the texture renderer. |
protected Root |
_root
The UI root with which we've registered as a tick participant. |
protected DynamicScope |
_scope
The view scope. |
protected boolean |
_static
Whether or not the view is static. |
protected String |
_viewNode
The name of the view node, if any. |
protected Transform3D |
_viewTransform
A scoped reference to the camera's view transform. |
protected TransformState |
_viewTransformState
A transform state containing the camera's view transform. |
| Fields inherited from class com.threerings.opengl.gui.Component |
|---|
_alpha, _backgrounds, _borders, _colors, _ctx, _cursor, _enabled, _height, _hover, _hoverable, _insets, _listeners, _parent, _preferredSize, _properties, _rect, _styleConfigs, _tipmouse, _tiptext, _tooltipStyle, _transferHandler, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES |
| Constructor Summary | |
|---|---|
RenderableView(GlContext ctx)
Creates a new renderable view. |
|
| Method Summary | |
|---|---|
void |
add(Compositable compositable)
Adds a compositable to the view. |
protected CameraHandler |
createCameraHandler()
Creates the camera handler for the view. |
Camera |
getCamera()
Returns a reference to the view camera. |
CameraHandler |
getCameraHandler()
Returns a reference to the camera handler. |
Model[] |
getConfigModels()
Returns a reference to the array of config models. |
DynamicScope |
getScope()
Returns a reference to the view's scope. |
String |
getViewNode()
Returns the name of the view node. |
protected Transform3D |
getViewNodeTransform()
Returns the transform corresponding to the view node, or null for none. |
boolean |
isStatic()
Checks whether this view is configured as static. |
protected void |
layout()
Instructs this component to lay itself out. |
void |
remove(Compositable compositable)
Removes a compositable from the view. |
void |
removeAll()
Removes all compositables from the view. |
void |
render()
Manually rerenders the (static) view. |
protected void |
renderComponent(Renderer renderer)
Renders any custom bits for this component. |
protected void |
renderView(Renderer renderer)
Renders the view. |
void |
setConfigModels(Model[] models)
Sets the array of config models. |
void |
setStatic(boolean stat)
Sets whether this view is static and must be rendered manually. |
void |
setViewNode(String node)
Sets the name of the view node. |
void |
tick(float elapsed)
Updates the state of this object based on the elapsed time in seconds. |
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 DynamicScope _scope
protected Root _root
protected Camera _camera
protected CameraHandler _camhand
protected RenderQueue.Group.State _gstate
protected Map<Dependency,Dependency> _dependencies
protected boolean _static
protected String _viewNode
protected Model[] _configModels
protected List<Compositable> _compositables
protected Image _image
protected TextureRenderer _renderer
@Scoped protected Transform3D _viewTransform
@Scoped protected TransformState _viewTransformState
protected Rectangle _oscissor
| Constructor Detail |
|---|
public RenderableView(GlContext ctx)
| Method Detail |
|---|
public DynamicScope getScope()
public Camera getCamera()
public CameraHandler getCameraHandler()
public void setStatic(boolean stat)
public boolean isStatic()
public void setViewNode(String node)
public String getViewNode()
public void setConfigModels(Model[] models)
public Model[] getConfigModels()
public void add(Compositable compositable)
public void remove(Compositable compositable)
public void removeAll()
public void render()
public void tick(float elapsed)
Tickable
tick in interface Tickableprotected void wasAdded()
Component
wasAdded in class Componentprotected void wasRemoved()
ComponentComponent.wasAdded(), this is a fine place
to do so.
wasRemoved in class Componentprotected void layout()
Component
layout in class Componentprotected void renderComponent(Renderer renderer)
Component
renderComponent in class Componentprotected CameraHandler createCameraHandler()
protected void renderView(Renderer renderer)
protected Transform3D getViewNodeTransform()
null for none.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||