Package com.luciad.tea.viewshed
Class TLcdMaximalVisibilityComposite
java.lang.Object
com.luciad.tea.viewshed.TLcdMaximalVisibilityComposite
- All Implemented Interfaces:
ILcdVisibilityComposite
This ILcdVisibilityComposite will output the maximum of all provided viewshed
visibilities.
For instance, if an instance of TLcdMaximalVisibilityComposite
would obtain 3 visibilities 0.2, 0.5 and 0.8 respectively, then
the result of this composite would be 0.8.
![]() |
- Since:
- 11.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecompose(double aPreviousVisibility, double aCurrentVisibility) Performs one compositing step by combining the previously accumulated visibility value with a new value.doubleReturns the visibility value with which the compositing should be initialized.booleanstop(double aVisibility) Checks whether additional compositing steps are useful.
-
Constructor Details
-
TLcdMaximalVisibilityComposite
public TLcdMaximalVisibilityComposite()Creates a new instance ofTLcdMaximalVisibilityComposite
-
-
Method Details
-
initialVisibility
public double initialVisibility()Description copied from interface:ILcdVisibilityCompositeReturns the visibility value with which the compositing should be initialized.- Specified by:
initialVisibilityin interfaceILcdVisibilityComposite- Returns:
- the visibility value with which the compositing should be initialized.
-
compose
public double compose(double aPreviousVisibility, double aCurrentVisibility) Description copied from interface:ILcdVisibilityCompositePerforms one compositing step by combining the previously accumulated visibility value with a new value.- Specified by:
composein interfaceILcdVisibilityComposite- Parameters:
aPreviousVisibility- the previously accumulated visibility valueaCurrentVisibility- new visibility value- Returns:
- the new composited visibility value
-
stop
public boolean stop(double aVisibility) Description copied from interface:ILcdVisibilityCompositeChecks whether additional compositing steps are useful.- Specified by:
stopin interfaceILcdVisibilityComposite- Parameters:
aVisibility- the accumulated visibility value so far.- Returns:
- whether compositing should be terminated
-
