com.threerings.opengl.model.config
Class StaticSetConfig

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.Imported
              extended by com.threerings.opengl.model.config.StaticSetConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class StaticSetConfig
extends ModelConfig.Imported

An original static set implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.model.config.ModelConfig.Imported
ModelConfig.Imported.MaterialMapping
 
Field Summary
protected  SoftReference<StaticConfig.Resolved> _resolved
          The cached resolved config bits.
 TreeMap<String,ModelConfig.MeshSet> meshes
          Maps top-level node names to meshes.
 String model
          The selected model.
 
Fields inherited from class com.threerings.opengl.model.config.ModelConfig.Imported
_reload, _source, boundsExpansion, generateTangents, ignoreRootTransforms, influences, materialMappings, scale
 
Constructor Summary
StaticSetConfig()
           
 
Method Summary
 Model.Implementation getModelImplementation(GlContext ctx, Scope scope, Model.Implementation impl)
          Creates or updates a model implementation for this configuration.
 String[] getModelOptions()
          Returns the options for the model field.
protected  ModelConfig.VisibleMesh getParticleMesh()
          Returns the ModelConfig.VisibleMesh to use when this model is selected for use within a particle system (or null if it cannot be used).
protected  void getTextures(TreeSet<String> textures)
          Populates the supplied set with the names of all referenced textures.
protected  void getTextureTagPairs(TreeSet<ComparableTuple<String,String>> pairs)
          Populates the supplied set with the names of all referenced texture/tag pairs.
 void invalidate()
          Invalidates any cached data.
protected  void updateFromSource(ModelDef def)
          Updates from a parsed model definition.
 
Methods inherited from class com.threerings.opengl.model.config.ModelConfig.Imported
createDefaultMaterialMappings, getGeometryMaterials, getMaterialMapping, getParticleGeometry, getParticleMaterial, getSource, setSource, updateFromSource
 
Methods inherited from class com.threerings.opengl.model.config.ModelConfig.Implementation
getConfigManager, getOriginal, getUpdateReferences
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

model

@Editable(editor="choice",
          depends="source")
public String model
The selected model.


meshes

@Shallow
public TreeMap<String,ModelConfig.MeshSet> meshes
Maps top-level node names to meshes.


_resolved

@DeepOmit
protected transient SoftReference<StaticConfig.Resolved> _resolved
The cached resolved config bits.

Constructor Detail

StaticSetConfig

public StaticSetConfig()
Method Detail

getModelOptions

@Keep
public String[] getModelOptions()
Returns the options for the model field.


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.

Overrides:
getModelImplementation in class ModelConfig.Imported
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

getParticleMesh

protected ModelConfig.VisibleMesh getParticleMesh()
Description copied from class: ModelConfig.Imported
Returns the ModelConfig.VisibleMesh to use when this model is selected for use within a particle system (or null if it cannot be used).

Overrides:
getParticleMesh in class ModelConfig.Imported

updateFromSource

protected void updateFromSource(ModelDef def)
Description copied from class: ModelConfig.Imported
Updates from a parsed model definition.

Overrides:
updateFromSource in class ModelConfig.Imported

getTextures

protected void getTextures(TreeSet<String> textures)
Description copied from class: ModelConfig.Imported
Populates the supplied set with the names of all referenced textures.

Overrides:
getTextures in class ModelConfig.Imported

getTextureTagPairs

protected void getTextureTagPairs(TreeSet<ComparableTuple<String,String>> pairs)
Description copied from class: ModelConfig.Imported
Populates the supplied set with the names of all referenced texture/tag pairs.

Overrides:
getTextureTagPairs in class ModelConfig.Imported