de.javagl.utils.obj
Interface Mtl

All Known Implementing Classes:
DefaultMtl

public interface Mtl

An interface for classes providing parts of the material data that is contained in an MTL file. The data represented by this interface is:
Ka - Ambient component
Ks - Specular component
Kd - Diffuse component
map_Kd - Diffuse map
Ns - Shininess
D - Opacity


Method Summary
 float getD()
          Returns the opacity of the material
 FloatTuple getKa()
          Returns the ambient component of the material
 FloatTuple getKd()
          Returns the diffuse component of the material
 FloatTuple getKs()
          Returns the specular component of the material
 String getMapKd()
          Returns the name of the diffuse map of the material, or null if it has not map.
 String getName()
          Return the name of the material
 float getNs()
          Returns the shininess of the material.
 

Method Detail

getName

String getName()
Return the name of the material

Returns:
The name of the material

getKa

FloatTuple getKa()
Returns the ambient component of the material

Returns:
The ambient component of the material

getKs

FloatTuple getKs()
Returns the specular component of the material

Returns:
The specular component of the material

getKd

FloatTuple getKd()
Returns the diffuse component of the material

Returns:
The diffuse component of the material

getMapKd

String getMapKd()
Returns the name of the diffuse map of the material, or null if it has not map.

Returns:
The name of the diffuse map of the material

getNs

float getNs()
Returns the shininess of the material.

Returns:
The shininess of the material.

getD

float getD()
Returns the opacity of the material

Returns:
The opacity of the material.