FileDocCategorySizeDatePackage
Material_Info.javaAPI DocExample1738Fri Dec 10 12:56:38 GMT 1999com.tornadolabs.j3dtree

Material_Info

public class Material_Info extends ObjectInfo

Fields Summary
private static final int[]
m_kCapabilityArray
Constructors Summary
public Material_Info()


	 
	
	
Methods Summary
public int[]getCapabilityBits()

		return createCompoundArray( m_kCapabilityArray, super.getCapabilityBits() );
	
java.util.EnumerationgetChildren(java.lang.Object obj)

		return super.getChildren( obj );
	
public java.lang.StringgetInfo(java.lang.Object obj)

		String szText = super.getInfo( obj );

		szText = insertSectionBreak( szText );
		szText += "Material\r\n";
		
		Material material = (Material) obj;
		
		Color3f color = new Color3f();
		material.getAmbientColor( color );
		szText += "Ambient Color: " + color.toString() + "\r\n";
		
		material.getDiffuseColor( color );
		szText += "Diffuse Color: " + color.toString() + "\r\n";
		
		material.getEmissiveColor( color );
		szText += "Emissive Color: " + color.toString() + "\r\n";

		material.getSpecularColor( color );
		szText += "Specular Color: " + color.toString() + "\r\n";

		szText += "Enable: " + material.getLightingEnable() + "\r\n";
		
		szText += "Shininess: " + material.getShininess() + "\r\n";

		return szText;