|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.expr.DynamicScope
com.threerings.opengl.GlApp
com.threerings.opengl.GlCanvasApp
com.threerings.opengl.GlCanvasTool
com.threerings.tudey.tools.TudeyTool
com.threerings.tudey.tools.SceneEditor
public class SceneEditor
The scene editor application.
| Field Summary | |
|---|---|
static Predicate<Object> |
DEFAULT_ENTRY_FILTER
Allows all entries except globals. |
static Function<TudeySceneModel.Entry,Object> |
ENTRY_TO_KEY
A function that transforms an Entry to its key. |
static Predicate<Object> |
PLACEABLE_ENTRY_FILTER
Allows only placeable entries. |
static Predicate<Object> |
TILE_ENTRY_FILTER
Allows only tile entries. |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
SceneEditor(String scene)
Creates the scene editor with (optionally) the path to a scene to load. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
|
void |
addEntries(TudeySceneModel.Entry... entries)
Adds entries to the scene. |
void |
clearPlaceView(com.threerings.crowd.client.PlaceView view)
|
void |
clearSelection()
Clears the selection. |
void |
deleteMouseEntry()
Attempts to delete the entry under the mouse cursor on the currently selected layer. |
void |
deleteMouseEntry(Predicate<? super TudeySceneModel.Entry> filter)
Attempts to delete the entry under the mouse cursor on the currently selected layer. |
boolean |
dispatchKeyEvent(KeyEvent event)
|
void |
editMouseEntry()
Attempts to edit the entry under the mouse cursor on the currently selected layer. |
void |
entryAdded(TudeySceneModel.Entry entry)
Notes that an entry has been added to the scene. |
void |
entryRemoved(TudeySceneModel.Entry oentry)
Notes that an entry has been removed from the scene. |
void |
entryUpdated(TudeySceneModel.Entry oentry,
TudeySceneModel.Entry nentry)
Notes that an entry has been updated within the scene. |
ConfigManager |
getConfigManager()
Returns a reference to the configuration manager. |
EditorGrid |
getGrid()
Returns a reference to the editor grid. |
Predicate<TudeySceneModel.Entry> |
getLayerPredicate()
Returns a Predicate that selects entries only on the current layer. |
TudeySceneModel.Entry |
getMouseEntry()
Returns a reference to the entry under the mouse cursor on the currently selected layer. |
TudeySceneModel.Entry |
getMouseEntry(Predicate<? super TudeySceneModel.Entry> filter)
Returns a reference to the entry under the mouse cursor on the currently selected layer. |
TudeySceneModel.Entry[] |
getSelection()
Returns the selected elements. |
TudeySceneView |
getView()
Returns a reference to the scene view. |
void |
incrementEditId()
Increments the edit id, ensuring that any further edits will not be merged with previous ones. |
boolean |
isAltDown()
Checks whether the alt key is being held down. |
boolean |
isControlDown()
Checks whether the control key is being held down. |
boolean |
isFirstButtonDown()
Checks whether the first mouse button is being held down on the canvas. |
boolean |
isSecondButtonDown()
Checks whether the second mouse button is being held down on the canvas. |
boolean |
isSelected(TudeySceneModel.Entry entry)
Determines whether the specified entry is selected. |
boolean |
isShiftDown()
Checks whether the shift key is being held down. |
boolean |
isSpecialDown()
Checks whether either of the special modifiers (control or alt) is down. |
boolean |
isThirdButtonDown()
Checks whether the third mouse button is being held down on the canvas. |
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
|
static void |
main(String[] args)
The program entry point. |
void |
mouseClicked(MouseEvent event)
|
void |
mouseEntered(MouseEvent event)
|
void |
mouseExited(MouseEvent event)
|
void |
mousePressed(MouseEvent event)
|
void |
mouseReleased(MouseEvent event)
|
void |
move(TudeySceneModel.Entry... entries)
Activates the supplied entries in the mover tool. |
void |
moveSelection()
Starts moving the current selection. |
void |
overwriteEntries(TudeySceneModel.Entry... entries)
Adds an entry, removing any conflicting entries if necessary. |
void |
removeAndMove(TudeySceneModel.Entry... entries)
Removes the specified entries, then activates them in the mover tool. |
void |
removeEntries(Collection<? extends TudeySceneModel.Entry> coll)
Removes the specified entries from the scene. |
void |
removeEntries(Object... keys)
Removes entries from the scene. |
void |
select(TudeySceneModel.Entry... selection)
Selects the specified entries and switches to either the selector tool or the arrow tool, depending on whether multiple entries are selected. |
void |
setPaint(Rectangle region,
TudeySceneModel.Paint paint)
Sets or clears the paint for a region in the scene. |
void |
setPlaceView(com.threerings.crowd.client.PlaceView view)
|
void |
setSelection(TudeySceneModel.Entry... selection)
Sets the selected elements. |
void |
shutdown()
Shuts down the application. |
void |
updateEntries(TudeySceneModel.Entry... entries)
Updates entries within the scene. |
void |
useMouseEntry()
Attempts to "use" the entry under the mouse cursor on the currently selected layer. |
| Methods inherited from class com.threerings.tudey.tools.TudeyTool |
|---|
getChatDirector, getClient, getConfig, getDObjectManager, getLocationDirector, getOccupantDirector, getRoot, getSceneDirector |
| Methods inherited from class com.threerings.opengl.GlCanvasTool |
|---|
shouldCheckTimestamps |
| Methods inherited from class com.threerings.opengl.GlCanvasApp |
|---|
createRoot, getCanvas, getFrame, getMouseRay, getPickRay, getRunQueue, makeCurrent, startup |
| Methods inherited from class com.threerings.opengl.GlApp |
|---|
createSnapshot, enqueue, getApp, getCameraHandler, getClipProvider, getColorPository, getCompatibilityMode, getCompositor, getImageCache, getMessageManager, getRenderEffects, getRenderer, getRenderScheme, getResourceManager, getScope, getShaderCache, getSoundManager, getStreamGain, setCameraHandler, setCompatibilityMode, setRenderEffects, setRenderer, setRenderScheme, 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.threerings.opengl.util.GlContext |
|---|
getApp, getCameraHandler, getColorPository, getCompositor, 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 |
|---|
public static final Predicate<Object> TILE_ENTRY_FILTER
public static final Predicate<Object> PLACEABLE_ENTRY_FILTER
public static final Predicate<Object> DEFAULT_ENTRY_FILTER
public static final Function<TudeySceneModel.Entry,Object> ENTRY_TO_KEY
| Constructor Detail |
|---|
public SceneEditor(String scene)
| Method Detail |
|---|
public static void main(String[] args)
throws Exception
Exceptionpublic TudeySceneView getView()
public EditorGrid getGrid()
public boolean isShiftDown()
public boolean isSpecialDown()
public boolean isControlDown()
public boolean isAltDown()
public boolean isFirstButtonDown()
public boolean isSecondButtonDown()
public boolean isThirdButtonDown()
public void clearSelection()
public Predicate<TudeySceneModel.Entry> getLayerPredicate()
public void select(TudeySceneModel.Entry... selection)
public void setSelection(TudeySceneModel.Entry... selection)
public TudeySceneModel.Entry[] getSelection()
public boolean isSelected(TudeySceneModel.Entry entry)
public void editMouseEntry()
public void deleteMouseEntry()
public void deleteMouseEntry(Predicate<? super TudeySceneModel.Entry> filter)
public void useMouseEntry()
public TudeySceneModel.Entry getMouseEntry()
public TudeySceneModel.Entry getMouseEntry(Predicate<? super TudeySceneModel.Entry> filter)
public void moveSelection()
public void removeAndMove(TudeySceneModel.Entry... entries)
public void move(TudeySceneModel.Entry... entries)
public void incrementEditId()
public void overwriteEntries(TudeySceneModel.Entry... entries)
public void addEntries(TudeySceneModel.Entry... entries)
EntryManipulator
addEntries in interface EntryManipulatorpublic void updateEntries(TudeySceneModel.Entry... entries)
EntryManipulator
updateEntries in interface EntryManipulatorpublic void removeEntries(Object... keys)
EntryManipulator
removeEntries in interface EntryManipulatorpublic void removeEntries(Collection<? extends TudeySceneModel.Entry> coll)
EntryManipulator
removeEntries in interface EntryManipulator
public void setPaint(Rectangle region,
TudeySceneModel.Paint paint)
EntryManipulator
setPaint in interface EntryManipulatorpublic void entryAdded(TudeySceneModel.Entry entry)
TudeySceneModel.Observer
entryAdded in interface TudeySceneModel.Observer
public void entryUpdated(TudeySceneModel.Entry oentry,
TudeySceneModel.Entry nentry)
TudeySceneModel.Observer
entryUpdated in interface TudeySceneModel.Observerpublic void entryRemoved(TudeySceneModel.Entry oentry)
TudeySceneModel.Observer
entryRemoved in interface TudeySceneModel.Observerpublic boolean dispatchKeyEvent(KeyEvent event)
dispatchKeyEvent in interface KeyEventDispatcherpublic void mouseClicked(MouseEvent event)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent event)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent event)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent event)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent event)
mouseExited in interface MouseListener
public void lostOwnership(Clipboard clipboard,
Transferable contents)
lostOwnership in interface ClipboardOwnerpublic ConfigManager getConfigManager()
GlContext
getConfigManager in interface EditorContextgetConfigManager in interface AlContextgetConfigManager in interface GlContextgetConfigManager in class GlApppublic void setPlaceView(com.threerings.crowd.client.PlaceView view)
setPlaceView in interface com.threerings.crowd.util.CrowdContextsetPlaceView in class TudeyToolpublic void clearPlaceView(com.threerings.crowd.client.PlaceView view)
clearPlaceView in interface com.threerings.crowd.util.CrowdContextclearPlaceView in class TudeyToolpublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListeneractionPerformed in class GlCanvasToolpublic void shutdown()
GlApp
shutdown in class GlCanvasApp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||