com.threerings.opengl.effect.config
Class PlacerConfig.SimplePlacer

java.lang.Object
  extended by com.threerings.opengl.effect.config.PlacerConfig.SimplePlacer
All Implemented Interfaces:
Placer
Enclosing class:
PlacerConfig

protected abstract static class PlacerConfig.SimplePlacer
extends Object
implements Placer

Base class for simple emitter space placers.


Field Summary
protected  BaseParticleSystem.Layer _layer
          The owning layer.
 
Constructor Summary
PlacerConfig.SimplePlacer(BaseParticleSystem.Layer layer)
           
 
Method Summary
 void place(Particle particle)
          Configures the supplied particle with an initial position.
protected abstract  Vector3f place(Vector3f position)
          Sets the position in emitter space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_layer

protected BaseParticleSystem.Layer _layer
The owning layer.

Constructor Detail

PlacerConfig.SimplePlacer

public PlacerConfig.SimplePlacer(BaseParticleSystem.Layer layer)
Method Detail

place

public void place(Particle particle)
Description copied from interface: Placer
Configures the supplied particle with an initial position.

Specified by:
place in interface Placer

place

protected abstract Vector3f place(Vector3f position)
Sets the position in emitter space.

Returns:
a reference to the position point, for chaining.