Package org.gvsig.fmap.geom.primitive
Interface Appearance.Material
- Enclosing interface:
Appearance
public static interface Appearance.Material
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionGet the ambient color of the materialGet the diffuse color of the materialGet the emissive color of the materialgetFace()Gets the face to apply the materialfloatGet the shininess of the materialGet the specular color of the materialvoidsetAmbient(Color ambient) Set the ambient color of the materialvoidsetDiffuse(Color diffuse) Set the diffuse color of the materialvoidsetEmission(Color emission) Set the emissive color of the materialvoidSets the face where the material will be appliedvoidsetShininess(float shininess) Set the shininess of the materialvoidsetSpecular(Color specular) Set the specular color of the material
-
Method Details
-
getFace
Appearance.Material.Face getFace()Gets the face to apply the material- Returns:
- the face
-
setFace
Sets the face where the material will be applied- Parameters:
face- the face
-
getAmbient
Color getAmbient()Get the ambient color of the material- Returns:
- the ambien color
-
setAmbient
Set the ambient color of the material- Parameters:
ambient- the ambien color
-
getDiffuse
Color getDiffuse()Get the diffuse color of the material- Returns:
- the diffuse color
-
setDiffuse
Set the diffuse color of the material- Parameters:
diffuse- the diffuse color
-
getSpecular
Color getSpecular()Get the specular color of the material- Returns:
- the specular color
-
setSpecular
Set the specular color of the material- Parameters:
specular- the specular color
-
getEmission
Color getEmission()Get the emissive color of the material- Returns:
- the emissive color
-
setEmission
Set the emissive color of the material- Parameters:
emission- the emissive color
-
getShininess
float getShininess()Get the shininess of the material- Returns:
- a float representing the shininess
-
setShininess
void setShininess(float shininess) Set the shininess of the material- Parameters:
shininess- a float representing the shininess
-