|
|||||||||
| 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.scene.Scene
com.threerings.opengl.scene.SimpleScene
public class SimpleScene
A simple, "flat" scene implementation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.opengl.scene.Scene |
|---|
Scene.Transient |
| Field Summary | |
|---|---|
protected ArrayList<ViewerEffect> |
_effects
The list of all viewer effects. |
protected ArrayList<SceneElement> |
_elements
The list of all scene elements. |
protected ArrayList<SceneInfluence> |
_influences
The list of all scene influences. |
| Fields inherited from class com.threerings.opengl.scene.Scene |
|---|
_alwaysTick, _clipmgr, _ctx, _disposed, _neffects, _result, _soundGroup, _transientObserver, _transientPool, _updateArray, _updateInfluences, _updateInfluencesCount, _viewer, _visible, DEFAULT_SOURCES |
| 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 | |
|---|---|
SimpleScene(GlContext ctx)
Creates a new simple scene. |
|
SimpleScene(GlContext ctx,
int sources)
Creates a new simple scene. |
|
| Method Summary | |
|---|---|
protected void |
addToSpatial(SceneElement element)
Adds an element to the scene's spatial data structure. |
protected void |
addToSpatial(SceneInfluence influence)
Adds an influence to the scene's spatial data structure. |
protected void |
addToSpatial(ViewerEffect effect)
Adds an effect to the scene's spatial data structure. |
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
void |
getEffects(Box bounds,
Collection<ViewerEffect> results)
Retrieves all viewer effects whose bounds intersect the provided region. |
void |
getElements(Box bounds,
Collection<SceneElement> results)
Retrieves all scene elements whose bounds intersect the provided region. |
void |
getInfluences(Box bounds,
Collection<SceneInfluence> results)
Retrieves all scene influences whose bounds intersect the provided region. |
SceneElement |
getIntersection(Ray3D ray,
Vector3f location,
com.google.common.base.Predicate<? super SceneElement> filter)
Checks for an intersection between the provided ray and the contents of the scene. |
protected void |
removeFromSpatial(SceneElement element)
Removes an element from the scene's spatial data structure. |
protected void |
removeFromSpatial(SceneInfluence influence)
Removes an influence from the scene's spatial data structure. |
protected void |
removeFromSpatial(ViewerEffect effect)
Removes an effect from the scene's spatial data structure. |
| Methods inherited from class com.threerings.opengl.scene.Scene |
|---|
add, add, add, addAll, addToTick, boundsDidChange, boundsDidChange, boundsDidChange, boundsWillChange, boundsWillChange, boundsWillChange, clearEffects, composite, composite, dispose, dumpViewerEffects, getAlwaysTickCount, getFromTransientPool, getIntersecting, getIntersection, getIntersection, getUpdateInfluencesCount, getViewerEffectCount, getVisibleTickCount, remove, remove, remove, remove, removeAll, removeAll, removeFromTick, returnToTransientPool, setEffects, spawnTransient, tick, tickPolicyDidChange, tickPolicyWillChange |
| Methods inherited from class com.threerings.expr.DynamicScope |
|---|
addListener, 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 |
| Field Detail |
|---|
protected ArrayList<SceneElement> _elements
protected ArrayList<SceneInfluence> _influences
protected ArrayList<ViewerEffect> _effects
| Constructor Detail |
|---|
public SimpleScene(GlContext ctx)
public SimpleScene(GlContext ctx,
int sources)
sources - the number of simultaneous sound sources to allow.| Method Detail |
|---|
public void composite()
CompositableDependencys and Enqueueables to the compositor in
preparation for rendering.
public SceneElement getIntersection(Ray3D ray,
Vector3f location,
com.google.common.base.Predicate<? super SceneElement> filter)
Scene
getIntersection in class Scenelocation - a vector to populate with the location of the intersection, if any.filter - a predicate to use in filtering the results of the test.
null for
none.
public void getElements(Box bounds,
Collection<SceneElement> results)
Scene
getElements in class Sceneresults - a list to hold the results of the search.
public void getInfluences(Box bounds,
Collection<SceneInfluence> results)
Scene
getInfluences in class Scene
public void getEffects(Box bounds,
Collection<ViewerEffect> results)
Scene
getEffects in class Sceneprotected void addToSpatial(SceneElement element)
Scene
addToSpatial in class Sceneprotected void removeFromSpatial(SceneElement element)
Scene
removeFromSpatial in class Sceneprotected void addToSpatial(SceneInfluence influence)
Scene
addToSpatial in class Sceneprotected void removeFromSpatial(SceneInfluence influence)
Scene
removeFromSpatial in class Sceneprotected void addToSpatial(ViewerEffect effect)
Scene
addToSpatial in class Sceneprotected void removeFromSpatial(ViewerEffect effect)
Scene
removeFromSpatial in class Scene
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||