|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.material.Material
public abstract class Material
A Material represents a description of the bulk physical properties of an object: internal color and transparency, index of refraction, etc. This is distinct from the surface properties, which are described by a Texture object.
Constructor Summary | |
---|---|
Material()
|
Method Summary | |
---|---|
void |
assignNewID()
Assign a new ID number to this material, to reflect the fact that it has changed. |
abstract boolean |
castsShadows()
Return true if this material should cast shadows. |
abstract Material |
duplicate()
Create a duplicate of the material. |
abstract void |
edit(BFrame fr,
Scene sc)
Allow the user to interactively edit the material. |
abstract MaterialMapping |
getDefaultMapping(Object3D obj)
Get a default MaterialMapping for the material. |
int |
getID()
Get an ID number which is unique (within this session) for this material. |
java.lang.String |
getName()
Get the name of the material. |
double |
getStepSize()
Get the step size to be used for integrating this material. |
static java.lang.String |
getTypeName()
Get the name of this type of material. |
double |
indexOfRefraction()
Get the index of refraction. |
abstract boolean |
isScattering()
Return true if this material has internal scattering. |
void |
setID(int newid)
Set the ID number for this material. |
void |
setIndexOfRefraction(double n)
Set the index of refraction. |
void |
setName(java.lang.String name)
Change the name of the material. |
boolean |
usesImage(ImageMap image)
Return true if this Material makes use of the specified ImageMap. |
abstract void |
writeToFile(java.io.DataOutputStream out,
Scene theScene)
The following method writes the material's data to an output stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Material()
Method Detail |
---|
public static java.lang.String getTypeName()
public java.lang.String getName()
public void setName(java.lang.String name)
public double indexOfRefraction()
public void setIndexOfRefraction(double n)
public double getStepSize()
public boolean usesImage(ImageMap image)
public abstract boolean isScattering()
public abstract boolean castsShadows()
public int getID()
public void assignNewID()
public void setID(int newid)
public abstract MaterialMapping getDefaultMapping(Object3D obj)
public abstract Material duplicate()
public abstract void edit(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 |