|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.loaders.ac3d.Ac3dMaterial
public class Ac3dMaterial
Defines a model to represent the properties of a surface material in the AC3D file format.
Constructor Summary | |
---|---|
Ac3dMaterial()
Default constructor. |
Method Summary | |
---|---|
void |
getAmbientColor(float[] rgb)
Get the current ambient colour set. |
void |
getEmissiveColor(float[] rgb)
Get the current emissive colour set. |
int |
getIndex()
Get the index of this material in the file. |
java.lang.String |
getName()
Get the currently set name. |
void |
getRGBColor(float[] rgb)
Get the current base colour set. |
float |
getShininess()
Get the shininess factor of the object. |
void |
getSpecularColor(float[] rgb)
Get the current specular colour set. |
float |
getTransparency()
Get the transparency amount. |
void |
setAmbientColor(float[] rgb)
Set the ambient colour of this material. |
void |
setEmissiveColor(float[] rgb)
Set the emissive colour of this material. |
void |
setIndex(int index)
Set the index of this material in the file. |
void |
setName(java.lang.String name)
Set the name of this material. |
void |
setRGBColor(float[] rgb)
Set the base colour of this material. |
void |
setShininess(float factor)
Set the shininess factor of the object. |
void |
setSpecularColor(float[] rgb)
Set the specular colour of this material. |
void |
setTransparency(float trans)
Set the transparency amount. |
java.lang.String |
toString()
Provides a humantext string version of the current object state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Ac3dMaterial()
Method Detail |
---|
public void setName(java.lang.String name)
name
- The new name to associate with this materialpublic java.lang.String getName()
public void setRGBColor(float[] rgb)
rgb
- The components of the colour to set in R, G, B orderpublic void getRGBColor(float[] rgb)
rgb
- An array of length 3 to cop the values in to.public void setAmbientColor(float[] rgb)
rgb
- The components of the colour to set in R, G, B orderpublic void getAmbientColor(float[] rgb)
rgb
- An array of length 3 to cop the values in to.public void setEmissiveColor(float[] rgb)
rgb
- The components of the colour to set in R, G, B orderpublic void getEmissiveColor(float[] rgb)
rgb
- An array of length 3 to cop the values in to.public void setSpecularColor(float[] rgb)
rgb
- The components of the colour to set in R, G, B orderpublic void getSpecularColor(float[] rgb)
rgb
- An array of length 3 to cop the values in to.public void setShininess(float factor)
factor
- The shininess factor valuepublic float getShininess()
public void setTransparency(float trans)
trans
- The value of transparency between 0 and 1public float getTransparency()
public void setIndex(int index)
index
- A zero or positive numberpublic int getIndex()
public java.lang.String toString()
toString
in class java.lang.Object
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |