|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.texture.Texture
artofillusion.texture.LayeredTexture
public class LayeredTexture
LayeredTexture represents a texture which is composed of other textures layered on top of each other. This class serves mainly as a placeholder - most of the real work is done by LayeredMapping.
Field Summary |
---|
Fields inherited from class artofillusion.texture.Texture |
---|
BUMP_COMPONENT, DIFFUSE_COLOR_COMPONENT, DISPLACEMENT_COMPONENT, EMISSIVE_COLOR_COMPONENT, HILIGHT_COLOR_COMPONENT, SPECULAR_COLOR_COMPONENT, TRANSPARENT_COLOR_COMPONENT |
Constructor Summary | |
---|---|
LayeredTexture(java.io.DataInputStream in,
Scene theScene)
|
|
LayeredTexture(LayeredMapping map)
|
|
LayeredTexture(Object3D obj)
|
Method Summary | |
---|---|
Texture |
duplicate()
There shouldn't ever be a reason to call this. |
void |
edit(BFrame fr,
Scene sc)
LayeredTexture does not provide its own editor, since this is done directly through the ObjectTextureDialog. |
void |
getAverageSpec(TextureSpec spec,
double time,
double[] param)
For the average properties, use the average properties of the bottom layer. |
TextureMapping |
getDefaultMapping(Object3D object)
Every LayeredTexture has a unique LayeredMapping object associated with it. |
boolean |
hasComponent(int component)
Determine whether this texture has a non-zero value anywhere for a particular component. |
void |
setMapping(LayeredMapping map)
Set the mapping for this texture. |
boolean |
usesImage(ImageMap image)
Determine whether this Texture uses the specified image. |
void |
writeToFile(java.io.DataOutputStream out,
Scene theScene)
The following method writes the texture's data to an output stream. |
Methods inherited from class artofillusion.texture.Texture |
---|
assignNewID, getID, getName, getParameters, getTypeName, setID, setName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayeredTexture(Object3D obj)
public LayeredTexture(LayeredMapping map)
public LayeredTexture(java.io.DataInputStream in, Scene theScene) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
Method Detail |
---|
public boolean usesImage(ImageMap image)
usesImage
in class Texture
public void getAverageSpec(TextureSpec spec, double time, double[] param)
getAverageSpec
in class Texture
public TextureMapping getDefaultMapping(Object3D object)
getDefaultMapping
in class Texture
public void setMapping(LayeredMapping map)
public Texture duplicate()
duplicate
in class Texture
public boolean hasComponent(int component)
hasComponent
in class Texture
component
- the texture component to check for (one of the *_COMPONENT constants)public void edit(BFrame fr, Scene sc)
edit
in class Texture
public void writeToFile(java.io.DataOutputStream out, Scene theScene) throws java.io.IOException
Texture
writeToFile
in class Texture
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |