|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.texture.Texture
public abstract class Texture
A Texture represents a description of the surface properties of an object: color, transparency, displacement, etc. This is distinct from the interior bulk properties, which are described by a Material object.
| Field Summary | |
|---|---|
static int |
BUMP_COMPONENT
|
static int |
DIFFUSE_COLOR_COMPONENT
|
static int |
DISPLACEMENT_COMPONENT
|
static int |
EMISSIVE_COLOR_COMPONENT
|
static int |
HILIGHT_COLOR_COMPONENT
|
static int |
SPECULAR_COLOR_COMPONENT
|
static int |
TRANSPARENT_COLOR_COMPONENT
|
| Constructor Summary | |
|---|---|
Texture()
|
|
| Method Summary | |
|---|---|
void |
assignNewID()
Assign a new ID number to this texture, to reflect the fact that it has changed. |
abstract Texture |
duplicate()
Create a duplicate of the texture. |
abstract void |
edit(buoy.widget.BFrame fr,
Scene sc)
Allow the user to interactively edit the texture. |
abstract void |
getAverageSpec(TextureSpec spec,
double time,
double[] param)
Get a TextureSpec which represents the average surface properties of this texture. |
abstract TextureMapping |
getDefaultMapping(Object3D object)
Get a default TextureMapping for the texture. |
int |
getID()
Get an ID number which is unique (within this session) for this texture. |
java.lang.String |
getName()
Get the name of the texture. |
TextureParameter[] |
getParameters()
Get the list of parameters for this texture. |
static java.lang.String |
getTypeName()
Get the name of this type of texture. |
abstract boolean |
hasComponent(int component)
Determine whether this texture has a non-zero value anywhere for a particular component. |
void |
setID(int newid)
Set the ID number for this texture. |
void |
setName(java.lang.String name)
Change the name of the texture. |
boolean |
usesImage(ImageMap image)
Return true if this Texture makes use of the specified ImageMap. |
abstract void |
writeToFile(java.io.DataOutputStream out,
Scene theScene)
The following method writes the texture's data to an output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DIFFUSE_COLOR_COMPONENT
public static final int SPECULAR_COLOR_COMPONENT
public static final int TRANSPARENT_COLOR_COMPONENT
public static final int HILIGHT_COLOR_COMPONENT
public static final int EMISSIVE_COLOR_COMPONENT
public static final int BUMP_COMPONENT
public static final int DISPLACEMENT_COMPONENT
| Constructor Detail |
|---|
public Texture()
| Method Detail |
|---|
public static java.lang.String getTypeName()
public java.lang.String getName()
public void setName(java.lang.String name)
public abstract boolean hasComponent(int component)
component - the texture component to check for (one of the *_COMPONENT constants)public TextureParameter[] getParameters()
public boolean usesImage(ImageMap image)
public int getID()
public void assignNewID()
public void setID(int newid)
public abstract void getAverageSpec(TextureSpec spec,
double time,
double[] param)
public abstract TextureMapping getDefaultMapping(Object3D object)
public abstract Texture duplicate()
public abstract void edit(buoy.widget.BFrame fr,
Scene sc)
public abstract void writeToFile(java.io.DataOutputStream out,
Scene theScene)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||