public class TLspHeadLight extends ALspDirectionalLight
yaw offset
property. The vertical orientation, or pitch, of the camera does not impact
the direction of the headlight; instead, it uses its own independent
pitch
property.Constructor and Description |
---|
TLspHeadLight(ILspView aView)
Creates a new headlight for the given view.
|
TLspHeadLight(ILspView aView,
Color aColor)
Creates a new headlight with the given color.
|
Modifier and Type | Method and Description |
---|---|
ILcdPoint |
getDirectionVector()
Returns a direction vector computed from the orientation of the viewer.
|
double |
getPitch()
Returns the pitch of the headlight, in degrees.
|
double |
getYawOffset()
Returns the yaw offset of the headlight.
|
void |
setPitch(double aPitch)
Sets the pitch of the headlight.
|
void |
setYawOffset(double aYawOffset)
Sets the yaw offset of the headlight.
|
equals, getColor, hashCode, setColor
addPropertyChangeListener, firePropertyChange, isEnabled, removePropertyChangeListener, setEnabled
public TLspHeadLight(ILspView aView)
aView
- the view in which the light will be usedpublic ILcdPoint getDirectionVector()
yaw offset
. The pitch is fixed as per getPitch()
.getDirectionVector
in class ALspDirectionalLight
public double getYawOffset()
TLspViewXYZWorldTransformation3D.lookAt(com.luciad.shape.ILcdPoint, double, double, double, double)
public void setYawOffset(double aYawOffset)
aYawOffset
- the yaw offsetgetYawOffset()
public double getPitch()
public void setPitch(double aPitch)
aPitch
- the pitch of the headlightgetPitch()