com.vodafone.v10.graphics.j3d
Class Light

java.lang.Object
  |
  +--com.vodafone.v10.graphics.j3d.Light

public class Light
extends java.lang.Object

Light class.


Constructor Summary
Light()
          Light constructor This has the same effect as executing Light( new Vector3D( 0, 0, 4096 ), 4096, 0 ).
Light(Vector3D dir, int dirIntensity, int ambIntensity)
          Light constructor
 
Method Summary
 int getAmbIntensity()
          Gets the ambient light intensity.
 Vector3D getDirection()
          Gets the direction of direct light.
 int getDirIntensity()
          Gets the direct light intensity.
 void setAmbIntensity(int ambIntensity)
          Sets the ambient light intensity.
 void setDirection(Vector3D dir)
          Sets the direction of direct light.
 void setDirIntensity(int dirIntensity)
          Sets the direct light intensity.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Light

public Light()
Light constructor This has the same effect as executing Light( new Vector3D( 0, 0, 4096 ), 4096, 0 ).

Light

public Light(Vector3D dir,
             int dirIntensity,
             int ambIntensity)
Light constructor
Parameters:
dir - The direction of direct light
dirIntensity - Direct light intensity. 4096 indicates 100.
ambIntensity - Ambient light intensity. 4096 indicates 100.
Throws:
NullPointerException - if dir is null.
Method Detail

getDirIntensity

public int getDirIntensity()
Gets the direct light intensity.
Returns:
int - Intensity

setDirIntensity

public void setDirIntensity(int dirIntensity)
Sets the direct light intensity.
Parameters:
dirIntensity - The new intensity setting.

getAmbIntensity

public int getAmbIntensity()
Gets the ambient light intensity.
Returns:
int - Intensity

setAmbIntensity

public void setAmbIntensity(int ambIntensity)
Sets the ambient light intensity.
Parameters:
ambIntensity - The new intensity setting.

getDirection

public Vector3D getDirection()
Gets the direction of direct light.
Returns:
Vector3D - Direction

setDirection

public void setDirection(Vector3D dir)
Sets the direction of direct light.
Parameters:
dir - The new direction
Throws:
NullPointerException - if dir is null.


Copyright 2002,2003 Aplix Corporation. All rights reserved. Aplix Confidential and Restricted.