|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.texture.Texture
artofillusion.texture.Texture2D
artofillusion.texture.ImageMapTexture
public class ImageMapTexture
ImageMapTexture represents a texture whose properties are defined by images.
Field Summary | |
---|---|
ImageOrValue |
bump
|
ImageOrValue |
cloudiness
|
ImageOrColor |
diffuseColor
|
ImageOrValue |
displacement
|
ImageOrColor |
emissiveColor
|
boolean |
mirrorX
|
boolean |
mirrorY
|
ImageOrValue |
roughness
|
ImageOrValue |
shininess
|
ImageOrColor |
specularColor
|
ImageOrValue |
specularity
|
boolean |
tileX
|
boolean |
tileY
|
ImageOrValue |
transparency
|
ImageOrColor |
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 | |
---|---|
ImageMapTexture()
|
|
ImageMapTexture(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 texture. |
void |
getAverageSpec(TextureSpec spec,
double time,
double[] param)
Get a TextureSpec which represents the average surface properties of this texture. |
double |
getDisplacement(double x,
double y,
double xsize,
double ysize,
double t,
double[] param)
Textures which use displacement mapping should override this method to return the displacement at the given point. |
void |
getTextureSpec(TextureSpec spec,
double x,
double y,
double xsize,
double ysize,
double angle,
double t,
double[] param)
Get the surface properties at point in the texture. |
void |
getTransparency(RGBColor trans,
double x,
double y,
double xsize,
double ysize,
double angle,
double t,
double[] param)
Same as above, except only return the transparent color. |
static java.lang.String |
getTypeName()
|
boolean |
hasComponent(int component)
Determine whether this texture has a non-zero value anywhere for a particular component. |
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.Texture2D |
---|
createComponentImage, displacementMapped, getDefaultMapping |
Methods inherited from class artofillusion.texture.Texture |
---|
assignNewID, getID, getName, getParameters, setID, setName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ImageOrColor diffuseColor
public ImageOrColor specularColor
public ImageOrColor transparentColor
public ImageOrColor emissiveColor
public ImageOrValue roughness
public ImageOrValue cloudiness
public ImageOrValue transparency
public ImageOrValue specularity
public ImageOrValue shininess
public ImageOrValue bump
public ImageOrValue displacement
public boolean tileX
public boolean tileY
public boolean mirrorX
public boolean mirrorY
Constructor Detail |
---|
public ImageMapTexture()
public ImageMapTexture(java.io.DataInputStream in, Scene theScene) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
Method Detail |
---|
public static java.lang.String getTypeName()
public void getTextureSpec(TextureSpec spec, double x, double y, double xsize, double ysize, double angle, double t, double[] param)
Texture2D
getTextureSpec
in class Texture2D
spec
- the surface properties will be stored in thisx
- the x coordinate at which to evaluate the texturey
- the y coordinate at which to evaluate the texturexsize
- the range of x over which to average the surface propertiesysize
- the range of z over which to average the surface propertiesangle
- the dot product of the view direction with the surface normalt
- the time at which to evaluate the surface propertiesparam
- the texture parameter values at the pointpublic void getTransparency(RGBColor trans, double x, double y, double xsize, double ysize, double angle, double t, double[] param)
Texture2D
getTransparency
in class Texture2D
public double getDisplacement(double x, double y, double xsize, double ysize, double t, double[] param)
Texture2D
getDisplacement
in class Texture2D
public void getAverageSpec(TextureSpec spec, double time, double[] param)
Texture
getAverageSpec
in class Texture
public boolean usesImage(ImageMap image)
usesImage
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 |