FileDocCategorySizeDatePackage
Light_Info.javaAPI DocExample2150Mon Oct 25 09:02:24 BST 1999com.tornadolabs.j3dtree

Light_Info

public class Light_Info extends Leaf_Info

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


	 
	
	
Methods Summary
public int[]getCapabilityBits()

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

		// add the Bounding Leaf as a child object
		Light light = (Light) obj;
		return createCompoundEnumeration( super.getChildren( obj ), light.getInfluencingBoundingLeaf() );
	
public java.lang.StringgetInfo(java.lang.Object obj)

		Light light = (Light) obj;
			
		String szText = super.getInfo( obj );
		szText = insertSectionBreak( szText );
		
		szText += "Light\r\n";
		
		Color3f color = new Color3f();
		light.getColor( color );
		szText += "Color: " + color + "\r\n";
		szText += "Enable: " + light.getEnable() + "\r\n";
		szText += "Influencing Bounds: " + light.getInfluencingBounds() + "\r\n";
		
		try
		{
			szText += "Number of Scopes: " + light.numScopes() + "\r\n";
			
			java.util.Enumeration enumScopes = light.getAllScopes();
			
			if( enumScopes != null )
			{
				while( enumScopes.hasMoreElements() == true )
					szText += "  Group: " + enumScopes.nextElement() + "\r\n";
			}
			else
				System.err.println( "Warning. Scope for Light is null" );
		}
		catch( Exception e )
		{
			System.err.println( "Warning. Unable to read Scope for Light" );
		}
		
		return szText;