public class TLcdAverageVisibilityComposite extends Object implements ILcdVisibilityComposite
This ILcdVisibilityComposite
will output an average of all the provided
viewshed visibilities.
For instance, if an instance of TLcdAverageVisibilityComposite
would obtain visibilities 0.0, 0.0 and 1.0 respectively, then the result of this composite would
be (1.0/3.0).
A possible use case for this composite implementation is the combination of multiple observers for the same 3D scene. The values can be interpreted as gradations of visibility as a function of visibility to amount of observers. For the above example of three observers this would mean that that the returned visibility times 3 can be interpreted the amount of observers the point is visible to. (1.0/3.0) means the point is visible to only one of three observers.
![]() |
Constructor and Description |
---|
TLcdAverageVisibilityComposite(int aNbViewsheds)
Creates a new instance of
TLcdAverageVisibilityComposite |
Modifier and Type | Method and Description |
---|---|
double |
compose(double aPreviousVisibility,
double aCurrentVisibility)
Performs one compositing step by combining the previously accumulated visibility value with a
new value.
|
double |
initialVisibility()
Returns the visibility value with which the compositing should be initialized.
|
boolean |
stop(double aVisibility)
Checks whether additional compositing steps are useful.
|
public TLcdAverageVisibilityComposite(int aNbViewsheds)
TLcdAverageVisibilityComposite
aNbViewsheds
- The number of viewsheds for which the average is computedpublic double initialVisibility()
ILcdVisibilityComposite
initialVisibility
in interface ILcdVisibilityComposite
public double compose(double aPreviousVisibility, double aCurrentVisibility)
ILcdVisibilityComposite
compose
in interface ILcdVisibilityComposite
aPreviousVisibility
- the previously accumulated visibility valueaCurrentVisibility
- new visibility valuepublic boolean stop(double aVisibility)
ILcdVisibilityComposite
stop
in interface ILcdVisibilityComposite
aVisibility
- the accumulated visibility value so far.