Class ALspDirectionalLight
java.lang.Object
com.luciad.view.lightspeed.services.effects.ALspGraphicsEffect
com.luciad.view.lightspeed.services.effects.ALspLight
com.luciad.view.lightspeed.services.effects.ALspDirectionalLight
- Direct Known Subclasses:
TLspDirectionalLight
,TLspHeadLight
Base class for directional light sources. A directional light is defined by
a vector in world coordinates.
- Since:
- 2013.0
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a directional light with the default color, which is white.protected
ALspDirectionalLight
(Color aColor) Creates a directional light with the given color. -
Method Summary
Modifier and TypeMethodDescriptionabstract ILcdPoint
Returns the vector pointing towards the light source.Methods inherited from class com.luciad.view.lightspeed.services.effects.ALspLight
equals, getColor, hashCode, setColor
Methods inherited from class com.luciad.view.lightspeed.services.effects.ALspGraphicsEffect
addPropertyChangeListener, firePropertyChange, isEnabled, removePropertyChangeListener, setEnabled
-
Constructor Details
-
ALspDirectionalLight
Creates a directional light with the given color.- Parameters:
aColor
- the light's color
-
ALspDirectionalLight
protected ALspDirectionalLight()Creates a directional light with the default color, which is white.
-
-
Method Details
-
getDirectionVector
Returns the vector pointing towards the light source. The vector is defined in world coordinates and does not have to be normalized.- Returns:
- a vector towards the light
-