com.threerings.opengl.scene
Class ViewerAffecter

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.opengl.model.Model.Implementation
          extended by com.threerings.opengl.scene.ViewerAffecter
All Implemented Interfaces:
Scope, ScopeUpdateListener, Compositable, Intersectable, Tickable

public class ViewerAffecter
extends Model.Implementation

A model implementation that exerts an effect on the viewer.


Field Summary
 
Fields inherited from interface com.threerings.expr.Scope
EPOCH, NOW
 
Constructor Summary
ViewerAffecter(GlContext ctx, Scope parentScope, ViewerAffecterConfig config)
          Creates a new affecter implementation.
 
Method Summary
 void drawBounds()
          Draws the bounds of the model in immediate mode.
 Box getBounds()
          Returns a reference to the bounds of the model.
 int getInfluenceFlags()
          Returns a set of flags indicating the types of influences that affect the model.
 boolean hasCompleted()
          Determines whether the model (such as a transient effect) has completed.
 void reset()
          Resets the state of this model.
 void setConfig(ViewerAffecterConfig config)
          Sets the configuration of this model.
 void updateBounds()
          Updates the bounds of the model.
 void wasAdded()
          Notes that the model was added to a scene.
 void willBeRemoved()
          Notes that the model will be removed from the scene.
 
Methods inherited from class com.threerings.opengl.model.Model.Implementation
attach, composite, createAnimation, detach, detachAll, getAnimation, getAnimations, getIntersection, getPlayingAnimations, getPointWorldTransform, getScopeName, getTickPolicy, isImplementation, setTickPolicy, tick
 
Methods inherited from class com.threerings.expr.SimpleScope
addListener, dispose, get, getParentScope, removeListener, scopeUpdated
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewerAffecter

public ViewerAffecter(GlContext ctx,
                      Scope parentScope,
                      ViewerAffecterConfig config)
Creates a new affecter implementation.

Method Detail

setConfig

public void setConfig(ViewerAffecterConfig config)
Sets the configuration of this model.


hasCompleted

public boolean hasCompleted()
Description copied from class: Model.Implementation
Determines whether the model (such as a transient effect) has completed.

Overrides:
hasCompleted in class Model.Implementation

reset

public void reset()
Description copied from class: Model.Implementation
Resets the state of this model.

Overrides:
reset in class Model.Implementation

getInfluenceFlags

public int getInfluenceFlags()
Description copied from class: Model.Implementation
Returns a set of flags indicating the types of influences that affect the model.

Overrides:
getInfluenceFlags in class Model.Implementation

getBounds

public Box getBounds()
Description copied from class: Model.Implementation
Returns a reference to the bounds of the model.

Overrides:
getBounds in class Model.Implementation

updateBounds

public void updateBounds()
Description copied from class: Model.Implementation
Updates the bounds of the model.

Overrides:
updateBounds in class Model.Implementation

drawBounds

public void drawBounds()
Description copied from class: Model.Implementation
Draws the bounds of the model in immediate mode.

Overrides:
drawBounds in class Model.Implementation

wasAdded

public void wasAdded()
Description copied from class: Model.Implementation
Notes that the model was added to a scene.

Overrides:
wasAdded in class Model.Implementation

willBeRemoved

public void willBeRemoved()
Description copied from class: Model.Implementation
Notes that the model will be removed from the scene.

Overrides:
willBeRemoved in class Model.Implementation


Copyright © 2011. All Rights Reserved.