com.threerings.tudey.tools
Class TudeyTool

java.lang.Object
  extended by com.threerings.expr.DynamicScope
      extended by com.threerings.opengl.GlApp
          extended by com.threerings.opengl.GlCanvasApp
              extended by com.threerings.opengl.GlCanvasTool
                  extended by com.threerings.tudey.tools.TudeyTool
All Implemented Interfaces:
CrowdContext, EditorContext, Scope, ScopeUpdateListener, AlContext, Enqueueable, GlContext, PresentsContext, TudeyContext, WhirledContext, ActionListener, EventListener
Direct Known Subclasses:
SceneEditor

public abstract class TudeyTool
extends GlCanvasTool
implements TudeyContext

Base class for Tudey tools.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.GlCanvasTool
GlCanvasTool.CanvasToolPrefs
 
Field Summary
protected  ChatDirector _chatdir
          Handles chat requests.
protected  Client _client
          The Presents client.
protected  Config _config
          The tool configuration.
protected  LocationDirector _locdir
          Handles requests to change location.
protected  OccupantDirector _occdir
          Provides access to occupant lists.
protected  Root _root
          The user interface root.
protected  SceneDirector _scenedir
          Handles scene access.
protected  ToolServer _server
          The tool server.
protected  GlView _view
          The current view, if any.
 
Fields inherited from class com.threerings.opengl.GlCanvasTool
_bounds, _compass, _eprefs, _grid, _msgs, _pdialog, _showBounds, _showCompass, _showGrid, _showStats, _stats
 
Fields inherited from class com.threerings.opengl.GlCanvasApp
_canvas, _canvasRoot, _frame, _keymgr
 
Fields inherited from class com.threerings.opengl.GlApp
_at, _billboardRotation, _camhand, _cfgmgr, _clipprov, _colorpos, _compatibilityMode, _compositor, _epoch, _imgcache, _msgmgr, _now, _renderEffects, _renderer, _renderScheme, _rsrcmgr, _shadcache, _soundmgr, _streamGain, _up, _viewTransform, _viewTransformState, _worldTransform, PIXEL_FORMATS
 
Fields inherited from class com.threerings.expr.DynamicScope
_compoundDepth, _listeners, _owner, _parentScope, _scopeName, _symbols, INVALID_SCOPE
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
TudeyTool(String msgs)
          Creates a new tool.
 
Method Summary
 void clearPlaceView(PlaceView view)
           
protected  void compositeView()
          Gives the application a chance to composite anything it might want rendered.
protected  void didInit()
          Override to perform custom initialization after the render context is valid.
 ChatDirector getChatDirector()
           
 Client getClient()
           
 Config getConfig()
           
 DObjectManager getDObjectManager()
           
 LocationDirector getLocationDirector()
           
 OccupantDirector getOccupantDirector()
           
 Root getRoot()
          Returns a reference to the UI root.
 SceneDirector getSceneDirector()
           
protected  void initSharedManagers()
          Initializes the references to the resource manager, config manager, and color pository.
 void setPlaceView(PlaceView view)
           
protected  void setView(GlView view)
          Sets the current view.
protected  void updateView(float elapsed)
          Performs any updates that are necessary even when not rendering.
protected  void willShutdown()
          Override to perform cleanup before the application exits.
 
Methods inherited from class com.threerings.opengl.GlCanvasTool
actionPerformed, createAction, createAction, createBounds, createButton, createButton, createCameraHandler, createCheckBoxMenuItem, createCheckBoxMenuItem, createEditablePrefs, createGrid, createMenu, createMenuItem, createMenuItem, shouldCheckTimestamps
 
Methods inherited from class com.threerings.opengl.GlCanvasApp
createCanvas, createCanvasContainer, createRoot, getCanvas, getFrame, getMouseRay, getPickRay, getRunQueue, initRenderer, makeCurrent, shutdown, startup
 
Methods inherited from class com.threerings.opengl.GlApp
createSnapshot, enqueue, getApp, getCameraHandler, getClipProvider, getColorPository, getCompatibilityMode, getCompositor, getConfigManager, getImageCache, getMessageManager, getRenderEffects, getRenderer, getRenderScheme, getResourceManager, getScope, getShaderCache, getSoundManager, getStreamGain, init, renderView, setCameraHandler, setCompatibilityMode, setRenderEffects, setRenderer, setRenderScheme, updateView, xlate
 
Methods inherited from class com.threerings.expr.DynamicScope
addListener, dispose, endCompoundUpdate, get, getParentScope, getScopeName, put, remove, removeListener, scopeUpdated, setParentScope, startCompoundUpdate, wasUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.threerings.opengl.util.GlContext
getApp, getCameraHandler, getColorPository, getCompositor, getConfigManager, getImageCache, getMessageManager, getRenderer, getResourceManager, getScope, getShaderCache, makeCurrent, setCameraHandler, setRenderer
 
Methods inherited from interface com.threerings.openal.util.AlContext
getClipProvider, getSoundManager
 
Methods inherited from interface com.threerings.crowd.util.CrowdContext
getMessageManager
 

Field Detail

_config

protected Config _config
The tool configuration.


_client

protected Client _client
The Presents client.


_server

protected ToolServer _server
The tool server.


_locdir

protected LocationDirector _locdir
Handles requests to change location.


_occdir

protected OccupantDirector _occdir
Provides access to occupant lists.


_chatdir

protected ChatDirector _chatdir
Handles chat requests.


_scenedir

protected SceneDirector _scenedir
Handles scene access.


_root

protected Root _root
The user interface root.


_view

protected GlView _view
The current view, if any.

Constructor Detail

TudeyTool

public TudeyTool(String msgs)
Creates a new tool.

Method Detail

getConfig

public Config getConfig()
Specified by:
getConfig in interface PresentsContext

getClient

public Client getClient()
Specified by:
getClient in interface PresentsContext

getDObjectManager

public DObjectManager getDObjectManager()
Specified by:
getDObjectManager in interface PresentsContext

getLocationDirector

public LocationDirector getLocationDirector()
Specified by:
getLocationDirector in interface CrowdContext

getOccupantDirector

public OccupantDirector getOccupantDirector()
Specified by:
getOccupantDirector in interface CrowdContext

getChatDirector

public ChatDirector getChatDirector()
Specified by:
getChatDirector in interface CrowdContext

setPlaceView

public void setPlaceView(PlaceView view)
Specified by:
setPlaceView in interface CrowdContext

clearPlaceView

public void clearPlaceView(PlaceView view)
Specified by:
clearPlaceView in interface CrowdContext

getSceneDirector

public SceneDirector getSceneDirector()
Specified by:
getSceneDirector in interface WhirledContext

getRoot

public Root getRoot()
Description copied from interface: TudeyContext
Returns a reference to the UI root.

Specified by:
getRoot in interface TudeyContext

initSharedManagers

protected void initSharedManagers()
Description copied from class: GlApp
Initializes the references to the resource manager, config manager, and color pository. By default this creates new managers, but it may be overridden to copy references to existing ones.

Overrides:
initSharedManagers in class GlApp

didInit

protected void didInit()
Description copied from class: GlApp
Override to perform custom initialization after the render context is valid.

Overrides:
didInit in class GlCanvasTool

willShutdown

protected void willShutdown()
Description copied from class: GlApp
Override to perform cleanup before the application exits.

Overrides:
willShutdown in class GlCanvasApp

updateView

protected void updateView(float elapsed)
Description copied from class: GlApp
Performs any updates that are necessary even when not rendering.

Overrides:
updateView in class GlApp
Parameters:
elapsed - the elapsed time since the last update, in seconds.

compositeView

protected void compositeView()
Description copied from class: GlApp
Gives the application a chance to composite anything it might want rendered.

Overrides:
compositeView in class GlCanvasTool

setView

protected void setView(GlView view)
Sets the current view.