|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.model.config.ModelConfig.Implementation
com.threerings.opengl.model.config.ModelConfig.Imported
com.threerings.opengl.model.config.StaticConfig
public class StaticConfig
An original static implementation.
| Nested Class Summary | |
|---|---|
static class |
StaticConfig.Resolved
Contains the resolved derived config bits. |
| 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. |
ModelConfig.MeshSet |
meshes
The meshes comprising this model. |
| Fields inherited from class com.threerings.opengl.model.config.ModelConfig.Imported |
|---|
_reload, _source, boundsExpansion, generateTangents, ignoreRootTransforms, influences, materialMappings, scale |
| Constructor Summary | |
|---|---|
StaticConfig()
|
|
| Method Summary | |
|---|---|
Model.Implementation |
getModelImplementation(GlContext ctx,
Scope scope,
Model.Implementation impl)
Creates or updates a model implementation for this configuration. |
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 |
|---|
@Shallow public ModelConfig.MeshSet meshes
@DeepOmit protected transient SoftReference<StaticConfig.Resolved> _resolved
| Constructor Detail |
|---|
public StaticConfig()
| Method Detail |
|---|
public Model.Implementation getModelImplementation(GlContext ctx,
Scope scope,
Model.Implementation impl)
ModelConfig.Implementation
getModelImplementation in class ModelConfig.Importedscope - the model's expression scope.impl - an existing implementation to reuse, if possible.
null if no implementation could be created.public void invalidate()
ModelConfig.Implementation
invalidate in class ModelConfig.Implementationprotected ModelConfig.VisibleMesh getParticleMesh()
ModelConfig.ImportedModelConfig.VisibleMesh to use when this model is selected for use within a
particle system (or null if it cannot be used).
getParticleMesh in class ModelConfig.Importedprotected void updateFromSource(ModelDef def)
ModelConfig.Imported
updateFromSource in class ModelConfig.Importedprotected void getTextures(TreeSet<String> textures)
ModelConfig.Imported
getTextures in class ModelConfig.Importedprotected void getTextureTagPairs(TreeSet<ComparableTuple<String,String>> pairs)
ModelConfig.Imported
getTextureTagPairs in class ModelConfig.Imported
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||