|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Material
Material describes the surface properties of an object using ambient, diffuse and specular components.
Field Summary | |
Colour |
Ambient
Holds the ambient component of this surface |
Colour |
Diffuse
Holds the ambient component of this surface |
double |
Shininess
Holds the shininess factor this surface |
Colour |
Specular
Holds the specular component of this surface |
Constructor Summary | |
Material()
Create a default material |
|
Material(Material m)
Create a new material by copying an existing material. |
Method Summary | |
void |
print(SceneWriter os)
Print a human readable version of the material definition to the given destination |
void |
read(SceneReader is)
Read the material from the given source |
void |
write(SceneWriter os)
Write the material to the given destination |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public Colour Ambient
public Colour Diffuse
public Colour Specular
public double Shininess
Constructor Detail |
public Material()
public Material(Material m)
m
- the material to copyMethod Detail |
public void read(SceneReader is) throws java.io.IOException, java.lang.NumberFormatException
is
- the source to read frompublic void write(SceneWriter os) throws java.io.IOException
os
- the destination to write topublic void print(SceneWriter os) throws java.io.IOException
os
- the destination to write to
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |