com.threerings.opengl.gui.config
Class ComponentConfig.RenderableView

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.gui.config.ComponentConfig
          extended by com.threerings.opengl.gui.config.ComponentConfig.RenderableView
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ComponentConfig

public static class ComponentConfig.RenderableView
extends ComponentConfig

An embedded 3D view.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.gui.config.ComponentConfig
ComponentConfig.Button, ComponentConfig.ChatOverlay, ComponentConfig.CheckBox, ComponentConfig.ColorPicker, ComponentConfig.ComboBox, ComponentConfig.Container, ComponentConfig.HTMLView, ComponentConfig.Label, ComponentConfig.List, ComponentConfig.Orientation, ComponentConfig.PasswordField, ComponentConfig.RenderableView, ComponentConfig.ScrollBar, ComponentConfig.ScrollPane, ComponentConfig.Slider, ComponentConfig.Spacer, ComponentConfig.Spinner, ComponentConfig.StatusLabel, ComponentConfig.TabbedPane, ComponentConfig.TextArea, ComponentConfig.TextComponent, ComponentConfig.TextEditor, ComponentConfig.TextField, ComponentConfig.ToggleButton, ComponentConfig.UserInterface, ComponentConfig.ViewModel
 
Field Summary
 float azimuth
          The camera azimuth.
 float distance
          The camera distance.
 float elevation
          The camera elevation.
 float far
          The distance to the far clip plane.
 float fov
          The vertical field of view.
 ComponentConfig.ViewModel[] models
          A set of models to include in the view.
 float near
          The distance to the near clip plane.
 boolean staticView
          Whether or not this is a static view.
 String viewNode
          The name of a node representing the view location.
 
Fields inherited from class com.threerings.opengl.gui.config.ComponentConfig
alpha, enabled, hoverable, preferredSize, style, tag, tooltipRelativeToMouse, tooltipText, visible
 
Constructor Summary
ComponentConfig.RenderableView()
           
 
Method Summary
protected  void configure(GlContext ctx, Scope scope, MessageBundle msgs, Component comp)
          Configures the specified component.
protected  Component maybeRecreate(GlContext ctx, Scope scope, MessageBundle msgs, Component comp)
          Recreates the component if the supplied component doesn't match the configuration.
 
Methods inherited from class com.threerings.opengl.gui.config.ComponentConfig
getClass, getComponent, getMessage, invalidate
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

staticView

@Editable(hgroup="v")
public boolean staticView
Whether or not this is a static view.


viewNode

@Editable(hgroup="v")
public String viewNode
The name of a node representing the view location.


fov

@Editable(min=0.0,
          max=180.0,
          scale=0.017453292519943295,
          hgroup="f")
public float fov
The vertical field of view.


near

@Editable(min=0.0,
          step=0.01,
          hgroup="f")
public float near
The distance to the near clip plane.


far

@Editable(min=0.0,
          step=0.01,
          hgroup="f")
public float far
The distance to the far clip plane.


azimuth

@Editable(min=-180.0,
          max=180.0,
          scale=0.017453292519943295,
          hgroup="c")
public float azimuth
The camera azimuth.


elevation

@Editable(min=-90.0,
          max=90.0,
          scale=0.017453292519943295,
          hgroup="c")
public float elevation
The camera elevation.


distance

@Editable(min=0.0,
          step=0.01,
          hgroup="c")
public float distance
The camera distance.


models

@Editable
public ComponentConfig.ViewModel[] models
A set of models to include in the view.

Constructor Detail

ComponentConfig.RenderableView

public ComponentConfig.RenderableView()
Method Detail

maybeRecreate

protected Component maybeRecreate(GlContext ctx,
                                  Scope scope,
                                  MessageBundle msgs,
                                  Component comp)
Description copied from class: ComponentConfig
Recreates the component if the supplied component doesn't match the configuration.

Specified by:
maybeRecreate in class ComponentConfig

configure

protected void configure(GlContext ctx,
                         Scope scope,
                         MessageBundle msgs,
                         Component comp)
Description copied from class: ComponentConfig
Configures the specified component.

Overrides:
configure in class ComponentConfig