Package com.luciad.format.kml22.view.gxy
Class TLcdKML22GXYRegionFilter
java.lang.Object
com.luciad.format.kml22.view.gxy.TLcdKML22GXYRegionFilter
- All Implemented Interfaces:
ILcdKML22RegionFilter
A KML region filter for 2D views
This region filter will make use of model-to-view transformations, specific to 2D views, to calculate the activity of TLcdKML22Region instances
- Since:
- 10.0
-
Constructor Summary
ConstructorDescriptionCreates a region filter with a given view -
Method Summary
Modifier and TypeMethodDescriptionReturns the view used by this region filter to calculate region activity.double
getRegionActivity
(TLcdKML22Region aRegion) Calculates the activity of a region.
-
Constructor Details
-
TLcdKML22GXYRegionFilter
Creates a region filter with a given view
- Parameters:
aView
- the view for which to create a region filter
-
-
Method Details
-
getGXYView
Returns the view used by this region filter to calculate region activity.- Returns:
- an
ILcdGXYView
-
getRegionActivity
Description copied from interface:ILcdKML22RegionFilter
Calculates the activity of a region.
- Specified by:
getRegionActivity
in interfaceILcdKML22RegionFilter
- Parameters:
aRegion
- The region of which to calculate the activity of.- Returns:
- a double in the interval of [0.0d, 1.0d]. In this interval a value of 0.0 defines a non-active region, a value of (0.0d, 1.0d) defines a partially active region, while a value of 1.0d defines a fully active region.
-