|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.texture.Texture
artofillusion.texture.UniformTexture
public class UniformTexture
UniformMaterial represents a material whose properties do not vary with position.
Field Summary | |
---|---|
double |
cloudiness
|
RGBColor |
diffuseColor
|
RGBColor |
emissiveColor
|
double |
roughness
|
float |
shininess
|
RGBColor |
specularColor
|
float |
specularity
|
float |
transparency
|
RGBColor |
transparentColor
|
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 | |
---|---|
UniformTexture()
|
|
UniformTexture(java.io.DataInputStream in,
Scene theScene)
The following two methods are used for reading and writing files. |
Method Summary | |
---|---|
Texture |
duplicate()
Create a duplicate of the texture. |
void |
edit(BFrame fr,
Scene sc)
Allow the user to interactively edit the material. |
void |
getAverageSpec(TextureSpec spec,
double time,
double[] param)
Get a TextureSpec which represents the average surface properties of this texture. |
TextureMapping |
getDefaultMapping(Object3D object)
The only TextureMapping which can be used for a UniformTexture is a UniformMapping. |
void |
getTextureSpec(TextureSpec spec)
|
void |
getTransparency(RGBColor trans)
|
static java.lang.String |
getTypeName()
|
boolean |
hasComponent(int component)
Determine whether this texture has a non-zero value anywhere for a particular component. |
static UniformTexture |
invisibleTexture()
Create a texture which is completely invisible. |
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, setID, setName, usesImage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public RGBColor diffuseColor
public RGBColor specularColor
public RGBColor transparentColor
public RGBColor emissiveColor
public double roughness
public double cloudiness
public float transparency
public float specularity
public float shininess
Constructor Detail |
---|
public UniformTexture()
public UniformTexture(java.io.DataInputStream in, Scene theScene) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
Method Detail |
---|
public static UniformTexture invisibleTexture()
public static java.lang.String getTypeName()
public void getTextureSpec(TextureSpec spec)
public void getTransparency(RGBColor trans)
public void getAverageSpec(TextureSpec spec, double time, double[] param)
Texture
getAverageSpec
in class Texture
public TextureMapping getDefaultMapping(Object3D object)
getDefaultMapping
in class Texture
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 |