|
||||||||||
| 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
public static class ModelConfig.Imported
Superclass of the imported implementations (this is not abstract because in order for the exporter to create a prototype of MaterialMapping, it must be able to instantiate this class).
| Nested Class Summary | |
|---|---|
class |
ModelConfig.Imported.MaterialMapping
Represents a mapping from texture name to material. |
| Field Summary | |
|---|---|
float |
boundsExpansion
A fixed amount by which to expand the bounds (to account for skinning). |
boolean |
generateTangents
If true, generate tangent attributes for meshes. |
boolean |
ignoreRootTransforms
If true, ignore the transforms of the top-level children. |
InfluenceFlagConfig |
influences
The influences allowed to affect this model. |
ModelConfig.Imported.MaterialMapping[] |
materialMappings
The mappings from texture name to material. |
float |
scale
The model scale. |
| Constructor Summary | |
|---|---|
ModelConfig.Imported()
|
|
| Method Summary | |
|---|---|
Model.Implementation |
getModelImplementation(GlContext ctx,
Scope scope,
Model.Implementation impl)
Creates or updates a model implementation for this configuration. |
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. |
String |
getSource()
Returns the source file. |
void |
setSource(String source)
Sets the source file from which to load the animation data. |
void |
updateFromSource(EditorContext ctx,
boolean force)
Updates this implementation from its external source, if any. |
| Methods inherited from class com.threerings.opengl.model.config.ModelConfig.Implementation |
|---|
getConfigManager, getOriginal, getUpdateReferences, invalidate |
| 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 |
|---|
@Editable(min=0.0,
step=0.01,
hgroup="s")
public float scale
@Editable(min=0.0,
step=0.01,
hgroup="s")
public float boundsExpansion
@Editable(hgroup="i") public boolean ignoreRootTransforms
@Editable(hgroup="i") public boolean generateTangents
@Editable public InfluenceFlagConfig influences
@Editable(depends="source") public ModelConfig.Imported.MaterialMapping[] materialMappings
| Constructor Detail |
|---|
public ModelConfig.Imported()
| Method Detail |
|---|
@Editable(editor="resource",
nullable=true)
@FileConstraints(description="m.exported_models",
extensions=".mxml",
directory="exported_model_dir")
public void setSource(String source)
@Editable public String getSource()
public void updateFromSource(EditorContext ctx,
boolean force)
ModelConfig.Implementation
updateFromSource in class ModelConfig.Implementationforce - if true, reload the source data even if it has already been loaded.
public Model.Implementation getModelImplementation(GlContext ctx,
Scope scope,
Model.Implementation impl)
ModelConfig.Implementation
getModelImplementation in class ModelConfig.Implementationscope - the model's expression scope.impl - an existing implementation to reuse, if possible.
null if no implementation could be created.public GeometryConfig getParticleGeometry(GlContext ctx)
ModelConfig.ImplementationGeometryConfig to use when this model is selected for use within a
particle system (or null if it cannot be used).
getParticleGeometry in class ModelConfig.Implementationpublic ConfigReference<MaterialConfig> getParticleMaterial(GlContext ctx)
ModelConfig.Implementation
getParticleMaterial in class ModelConfig.Implementation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||