|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.tudey.client.cursor.Cursor
com.threerings.tudey.client.cursor.EntryCursor
com.threerings.tudey.client.cursor.PathCursor
public class PathCursor
Represents a path entry.
| Nested Class Summary | |
|---|---|
static class |
PathCursor.Implementation
The actual cursor implementation. |
static class |
PathCursor.Original
An original implementation. |
| Field Summary | |
|---|---|
protected PathConfig |
_config
The path configuration. |
protected TudeySceneModel.PathEntry |
_entry
The scene entry. |
protected PathCursor.Implementation |
_impl
The path implementation. |
protected static PathCursor.Implementation |
NULL_IMPLEMENTATION
An implementation that does nothing. |
| Fields inherited from class com.threerings.tudey.client.cursor.EntryCursor |
|---|
FOOTPRINT_COLOR |
| Fields inherited from class com.threerings.tudey.client.cursor.Cursor |
|---|
_ctx |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
PathCursor(TudeyContext ctx,
TudeySceneView view,
TudeySceneModel.PathEntry entry)
Creates a new path cursor. |
|
| Method Summary | |
|---|---|
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
void |
configUpdated(ConfigEvent<PathConfig> event)
Called when a configuration has been updated. |
void |
dispose()
Releases the resources associated with this scope. |
TudeySceneModel.Entry |
getEntry()
Returns a reference to the most recently set entry state. |
Shape |
getShape()
Returns a reference to the shape of the entry (or null for none). |
static Model[] |
maybeResize(Model[] omodels,
int ncount,
TudeyContext ctx,
Scope parentScope,
String name,
ColorState colorState)
Resizes the specified array of models if necessary, adding new models or removing models as required. |
protected void |
setConfig(ConfigReference<PathConfig> ref)
Sets the configuration of this path. |
protected void |
setConfig(PathConfig config)
Sets the configuration of this path. |
void |
tick(float elapsed)
Updates the state of this object based on the elapsed time in seconds. |
void |
update(TudeySceneModel.Entry entry)
Updates the cursor with new entry state. |
protected void |
updateFromConfig()
Updates the path to match its new or modified configuration. |
| Methods inherited from class com.threerings.tudey.client.cursor.Cursor |
|---|
getScopeName |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TudeySceneModel.PathEntry _entry
protected PathConfig _config
protected PathCursor.Implementation _impl
protected static final PathCursor.Implementation NULL_IMPLEMENTATION
| Constructor Detail |
|---|
public PathCursor(TudeyContext ctx,
TudeySceneView view,
TudeySceneModel.PathEntry entry)
| Method Detail |
|---|
public static Model[] maybeResize(Model[] omodels,
int ncount,
TudeyContext ctx,
Scope parentScope,
String name,
ColorState colorState)
public void configUpdated(ConfigEvent<PathConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<PathConfig>public TudeySceneModel.Entry getEntry()
EntryCursor
getEntry in class EntryCursorpublic Shape getShape()
EntryCursornull for none).
getShape in class EntryCursorpublic void update(TudeySceneModel.Entry entry)
EntryCursor
update in class EntryCursorpublic void tick(float elapsed)
Tickable
tick in interface Tickabletick in class Cursorpublic void composite()
CompositableDependencys and Enqueueables to the compositor in
preparation for rendering.
composite in interface Compositablecomposite in class Cursorpublic void dispose()
SimpleScope
dispose in class SimpleScopeprotected void setConfig(ConfigReference<PathConfig> ref)
protected void setConfig(PathConfig config)
protected void updateFromConfig()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||