com.threerings.opengl.model.config
Class ScriptedConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.model.config.ModelConfig.Implementation
          extended by com.threerings.opengl.model.config.ScriptedConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class ScriptedConfig
extends ModelConfig.Implementation

A scripted model implementation.


Nested Class Summary
static class ScriptedConfig.TimeAction
          An action to perform after a specific time interval.
 
Field Summary
 ScriptedConfig.TimeAction[] actions
          The actions to perform.
 float boundsExpansion
          A fixed amount by which to expand the bounds.
 InfluenceFlagConfig influences
          The influences allowed to affect this model.
 float loopDuration
          The loop duration, or zero for unlooped.
 SceneElement.TickPolicy tickPolicy
          The model's tick policy.
 
Constructor Summary
ScriptedConfig()
           
 
Method Summary
 Model.Implementation getModelImplementation(GlContext ctx, Scope scope, Model.Implementation impl)
          Creates or updates a model implementation for this configuration.
 
Methods inherited from class com.threerings.opengl.model.config.ModelConfig.Implementation
getConfigManager, getOriginal, getParticleGeometry, getParticleMaterial, getUpdateReferences, invalidate, updateFromSource
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

loopDuration

@Editable(min=0.0,
          step=0.01,
          hgroup="l")
public float loopDuration
The loop duration, or zero for unlooped.


boundsExpansion

@Editable(min=0.0,
          step=0.01,
          hgroup="l")
public float boundsExpansion
A fixed amount by which to expand the bounds.


tickPolicy

@Editable
public SceneElement.TickPolicy tickPolicy
The model's tick policy.


influences

@Editable
public InfluenceFlagConfig influences
The influences allowed to affect this model.


actions

@Editable
public ScriptedConfig.TimeAction[] actions
The actions to perform.

Constructor Detail

ScriptedConfig

public ScriptedConfig()
Method Detail

getModelImplementation

public Model.Implementation getModelImplementation(GlContext ctx,
                                                   Scope scope,
                                                   Model.Implementation impl)
Description copied from class: ModelConfig.Implementation
Creates or updates a model implementation for this configuration.

Specified by:
getModelImplementation in class ModelConfig.Implementation
scope - the model's expression scope.
impl - an existing implementation to reuse, if possible.
Returns:
either a reference to the existing implementation (if reused), a new implementation, or null if no implementation could be created.


Copyright © 2011. All Rights Reserved.