Package com.luciad.tea.viewshed
Class TLcdCompositeViewshed
java.lang.Object
com.luciad.tea.viewshed.ALcdCompositeViewshed
com.luciad.tea.viewshed.TLcdCompositeViewshed
- All Implemented Interfaces:
ILcdViewshed
A concrete implementation of ALcdCompositeViewshed
.
- Since:
- 11.0
-
Constructor Summary
ConstructorDescriptionCreates a new empty composite viewshed.TLcdCompositeViewshed
(List<ILcdViewshed> aViewshedList) Creates a new composite viewshed with the given list of viewsheds to delegate to. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addViewshed
(ILcdViewshed aViewshed) Adds a viewshed to this composite viewshed.Returns the reference in which this viewshed is defined.double
getVisibility
(ILcdPoint aPoint) Returns the visibility of a given point.Methods inherited from class com.luciad.tea.viewshed.ALcdCompositeViewshed
getComposite, setComposite
-
Constructor Details
-
TLcdCompositeViewshed
public TLcdCompositeViewshed()Creates a new empty composite viewshed. -
TLcdCompositeViewshed
Creates a new composite viewshed with the given list of viewsheds to delegate to. All given viewsheds should be defined in the same reference.- Parameters:
aViewshedList
- a list of viewsheds
-
-
Method Details
-
getVisibility
Description copied from interface:ILcdViewshed
Returns the visibility of a given point.- Parameters:
aPoint
- The point to check visibility of. The point must be given in the reference in which the viewshed is defined.- Returns:
- A double indicating the visibility of the point. This value will be bound between 0 and 1. 0 represents non-visible. 1 represents fully visible. Anything in between 0 and 1 is partially visible, depending on specific cases.
-
getReference
Returns the reference in which this viewshed is defined.- Returns:
- null if this composite viewshed contains no viewsheds; otherwise the common reference of all contained viewsheds.
-
addViewshed
Adds a viewshed to this composite viewshed.- Parameters:
aViewshed
- a viewshed
-