public final class TLcdDirectionalViewshedObserver extends ALcdViewshedObserver
Extension of ALcdViewshedObserver
. Defines a viewing direction
for a ILcdViewshed
.
An example use case for a directional observer is to model shadows cast by the sun. In
this approximation, the sun is set at infinite distance, and only a direction is necessary to
calculate the shadows. This direction can be modeled using TLcdDirectionalViewshedObserver
.
The resulting shadows will run parallel with the direction
specified by this viewshed observer.
Constructor and Description |
---|
TLcdDirectionalViewshedObserver(ILcdPoint aDirection)
Creates a new
TLcdDirectionalViewshedObserver for a given
direction. |
Modifier and Type | Method and Description |
---|---|
ILcdPoint |
getDirection()
Returns the direction of the viewshed observer, defined in the reference of the viewshed.
|
public TLcdDirectionalViewshedObserver(ILcdPoint aDirection)
Creates a new TLcdDirectionalViewshedObserver
for a given
direction.
aDirection
- A direction that represents the viewing
direction of the observer. The reference of the
direction should be defined in the same reference as the
viewshed for which it is used.public ILcdPoint getDirection()
Returns the direction of the viewshed observer, defined in the reference of the viewshed.
ILcdPoint
that should be interpreted as a vector direction of the viewshed,
defined in the reference of the viewshed.