com.threerings.opengl.model.config
Class ConditionalConfig

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.ConditionalConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class ConditionalConfig
extends ModelConfig.Implementation

A conditional model implementation.


Nested Class Summary
static class ConditionalConfig.Case
          Represents one of the cases that makes up the conditional.
 
Field Summary
 ConditionalConfig.Case[] cases
          The condition cases.
 ConfigReference<ModelConfig> defaultModel
          The default model reference.
 Transform3D defaultTransform
          The default model transform.
 InfluenceFlagConfig influences
          The influences allowed to affect this model.
 SceneElement.TickPolicy tickPolicy
          The model's tick policy.
 
Constructor Summary
ConditionalConfig()
           
 
Method Summary
 Model.Implementation getModelImplementation(GlContext ctx, Scope scope, Model.Implementation impl)
          Creates or updates a model implementation for this configuration.
 void invalidate()
          Invalidates any cached data.
 
Methods inherited from class com.threerings.opengl.model.config.ModelConfig.Implementation
getConfigManager, getOriginal, getParticleGeometry, getParticleMaterial, getUpdateReferences, 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

tickPolicy

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


influences

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


cases

@Editable
public ConditionalConfig.Case[] cases
The condition cases.


defaultModel

@Editable(nullable=true)
public ConfigReference<ModelConfig> defaultModel
The default model reference.


defaultTransform

@Editable(step=0.01)
public Transform3D defaultTransform
The default model transform.

Constructor Detail

ConditionalConfig

public ConditionalConfig()
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.

invalidate

public void invalidate()
Description copied from class: ModelConfig.Implementation
Invalidates any cached data.

Overrides:
invalidate in class ModelConfig.Implementation


Copyright © 2011. All Rights Reserved.