com.threerings.opengl.model.config
Class ModelConfig.Derived

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.ModelConfig.Derived
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ModelConfig

public static class ModelConfig.Derived
extends ModelConfig.Implementation

A derived implementation.


Field Summary
 ConfigReference<ModelConfig> model
          The model reference.
 
Constructor Summary
ModelConfig.Derived()
           
 
Method Summary
 ConfigManager getConfigManager(ConfigManager cfgmgr)
          Returns a reference to the config manager to use when resolving references.
 Model.Implementation getModelImplementation(GlContext ctx, Scope scope, Model.Implementation impl)
          Creates or updates a model implementation for this configuration.
 ModelConfig.Implementation getOriginal(ConfigManager cfgmgr)
          Retrieves a reference to the underlying original implementation.
 GeometryConfig getParticleGeometry(GlContext ctx)
          Returns the GeometryConfig to use when this model is selected for use within a particle system (or null if it cannot be used).
 ConfigReference<MaterialConfig> getParticleMaterial(GlContext ctx)
          Returns a reference to the material to use when this model is selected for use within a particle system.
 void getUpdateReferences(ConfigReferenceSet refs)
          Adds the implementation's update references to the provided set.
 
Methods inherited from class com.threerings.opengl.model.config.ModelConfig.Implementation
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

model

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

Constructor Detail

ModelConfig.Derived

public ModelConfig.Derived()
Method Detail

getOriginal

public ModelConfig.Implementation getOriginal(ConfigManager cfgmgr)
Description copied from class: ModelConfig.Implementation
Retrieves a reference to the underlying original implementation.

Overrides:
getOriginal in class ModelConfig.Implementation

getUpdateReferences

public void getUpdateReferences(ConfigReferenceSet refs)
Description copied from class: ModelConfig.Implementation
Adds the implementation's update references to the provided set.

Overrides:
getUpdateReferences in class ModelConfig.Implementation

getConfigManager

public ConfigManager getConfigManager(ConfigManager cfgmgr)
Description copied from class: ModelConfig.Implementation
Returns a reference to the config manager to use when resolving references.

Overrides:
getConfigManager in class ModelConfig.Implementation
Parameters:
cfgmgr - the config manager of the config containing the implementation.

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.

getParticleGeometry

public GeometryConfig getParticleGeometry(GlContext ctx)
Description copied from class: ModelConfig.Implementation
Returns the GeometryConfig to use when this model is selected for use within a particle system (or null if it cannot be used).

Overrides:
getParticleGeometry in class ModelConfig.Implementation

getParticleMaterial

public ConfigReference<MaterialConfig> getParticleMaterial(GlContext ctx)
Description copied from class: ModelConfig.Implementation
Returns a reference to the material to use when this model is selected for use within a particle system.

Overrides:
getParticleMaterial in class ModelConfig.Implementation


Copyright © 2011. All Rights Reserved.