Class TLspDirectionalLight
java.lang.Object
com.luciad.view.lightspeed.services.effects.ALspGraphicsEffect
com.luciad.view.lightspeed.services.effects.ALspLight
com.luciad.view.lightspeed.services.effects.ALspDirectionalLight
com.luciad.view.lightspeed.services.effects.TLspDirectionalLight
A directional light with a user-specified direction vector.
- Since:
- 2013.0
-
Constructor Summary
ConstructorDescriptionDefault constructor.TLspDirectionalLight
(Color aColor, ILcdPoint aDirectionVector) Creates a directional light with the given color and direction. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the vector pointing towards the light source.int
hashCode()
void
setDirectionVector
(ILcdPoint aDirectionVector) Sets the direction vector of the light.Methods inherited from class com.luciad.view.lightspeed.services.effects.ALspLight
getColor, setColor
Methods inherited from class com.luciad.view.lightspeed.services.effects.ALspGraphicsEffect
addPropertyChangeListener, firePropertyChange, isEnabled, removePropertyChangeListener, setEnabled
-
Constructor Details
-
TLspDirectionalLight
public TLspDirectionalLight()Default constructor. The direction vector is set to ( 0, 0, 1 ), i.e. along the Z axis. The color is set to white. -
TLspDirectionalLight
Creates a directional light with the given color and direction.- Parameters:
aColor
- the light's coloraDirectionVector
- the light's direction vector (in world coordinates)
-
-
Method Details
-
getDirectionVector
Description copied from class:ALspDirectionalLight
Returns the vector pointing towards the light source. The vector is defined in world coordinates and does not have to be normalized.- Specified by:
getDirectionVector
in classALspDirectionalLight
- Returns:
- a vector towards the light
-
setDirectionVector
Sets the direction vector of the light.- Parameters:
aDirectionVector
- the direction towards the light, in world coordinates
-
equals
-
hashCode
public int hashCode()
-