|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.texture.Texture
artofillusion.texture.Texture2D
public abstract class Texture2D
Texture2D represents a Texture whose surface properties are defined in 2D. This 2D surface can be mapped onto a 3D object by a variety of different mappings.
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 | |
---|---|
Texture2D()
|
Method Summary | |
---|---|
java.awt.Image |
createComponentImage(double minu,
double maxu,
double minv,
double maxv,
int width,
int height,
int component,
double time,
double[] param)
Create an Image which represents a particular component of this texture. |
boolean |
displacementMapped()
Determine whether the texture is displacement mapped based on the value returned by getDisplacement(). |
TextureMapping |
getDefaultMapping(Object3D object)
For the default mapping, use a basic projection. |
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. |
abstract 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. |
abstract 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. |
Methods inherited from class artofillusion.texture.Texture |
---|
assignNewID, duplicate, edit, getAverageSpec, getID, getName, getParameters, getTypeName, hasComponent, setID, setName, usesImage, writeToFile |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Texture2D()
Method Detail |
---|
public abstract void getTextureSpec(TextureSpec spec, double x, double y, double xsize, double ysize, double angle, double t, double[] param)
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 abstract void getTransparency(RGBColor trans, double x, double y, double xsize, double ysize, double angle, double t, double[] param)
public TextureMapping getDefaultMapping(Object3D object)
getDefaultMapping
in class Texture
public double getDisplacement(double x, double y, double xsize, double ysize, double t, double[] param)
public boolean displacementMapped()
public java.awt.Image createComponentImage(double minu, double maxu, double minv, double maxv, int width, int height, int component, double time, double[] param)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |