com.mascotcapsule.micro3d.v3
Class Light

java.lang.Object
  extended bycom.mascotcapsule.micro3d.v3.Light

public class Light
extends java.lang.Object

This class holds the data concerning light.


Constructor Summary
Light()
          Creates a light object.
Light(Vector3D dir, int dirIntensity, int ambIntensity)
          Creates a light object.
 
Method Summary
 int getAmbientIntensity()
          Gets the ambient light intensity setting.
 int getAmbIntensity()
          Deprecated. Method to be eliminated in the near future.
 Vector3D getDirection()
          Deprecated. Method to be eliminated in the near future.
 int getDirIntensity()
          Deprecated. Method to be eliminated in the near future.
 Vector3D getParallelLightDirection()
          Gets the parallel light vector (parallel light direction) setting.
 int getParallelLightIntensity()
          Gets the parallel light intensity settings.
 void setAmbientIntensity(int p)
          Enters the ambient light setting.
 void setAmbIntensity(int p)
          Deprecated. Method to be eliminated in the near future.
 void setDirection(Vector3D v)
          Deprecated. Method to be eliminated in the near future.
 void setDirIntensity(int p)
          Deprecated. Method to be eliminated in the near future.
 void setParallelLightDirection(Vector3D v)
          Enters the light vector (parallel light direction) setting.
 void setParallelLightIntensity(int p)
          Enters the parallel light intensity setting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Light

public Light()
Creates a light object. The results will be the same as when calling Light(new Vector(0, 0, 4096), 4096, 0).


Light

public Light(Vector3D dir,
             int dirIntensity,
             int ambIntensity)
Creates a light object.

Parameters:
dir - Light vector (parallel light direction)
dirIntensity - Parallel light intensity. At 0, 0?“, at 4096, 100?“.
ambIntensity - Ambient light intensity. At 0, 0?“, at 4096, 100?“.
Throws:
java.lang.NullPointerException - When argument dir is null.
Method Detail

getDirIntensity

public final int getDirIntensity()
Deprecated. Method to be eliminated in the near future.

See Also:
getParallelLightIntensity()

getParallelLightIntensity

public final int getParallelLightIntensity()
Gets the parallel light intensity settings.

Returns:
Parallel light intensity

setDirIntensity

public final void setDirIntensity(int p)
Deprecated. Method to be eliminated in the near future.

See Also:
setParallelLightIntensity(int)

setParallelLightIntensity

public final void setParallelLightIntensity(int p)
Enters the parallel light intensity setting.

Parameters:
p - Parallel light intensity

getAmbIntensity

public final int getAmbIntensity()
Deprecated. Method to be eliminated in the near future.

See Also:
getAmbientIntensity()

getAmbientIntensity

public final int getAmbientIntensity()
Gets the ambient light intensity setting.

Returns:
Ambient light intensity

setAmbIntensity

public final void setAmbIntensity(int p)
Deprecated. Method to be eliminated in the near future.

See Also:
setAmbientIntensity(int)

setAmbientIntensity

public final void setAmbientIntensity(int p)
Enters the ambient light setting.

Parameters:
p - Ambient light setting

getDirection

public final Vector3D getDirection()
Deprecated. Method to be eliminated in the near future.

See Also:
getParallelLightDirection()

getParallelLightDirection

public final Vector3D getParallelLightDirection()
Gets the parallel light vector (parallel light direction) setting.

Returns:
Light vector

setDirection

public final void setDirection(Vector3D v)
Deprecated. Method to be eliminated in the near future.

See Also:
setParallelLightDirection(com.mascotcapsule.micro3d.v3.Vector3D)

setParallelLightDirection

public final void setParallelLightDirection(Vector3D v)
Enters the light vector (parallel light direction) setting.

Parameters:
v - Light vector
Throws:
java.lang.NullPointerException - When argument v is null.