Class TLcdKML22Lod
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.kml22.model.TLcdKML22AbstractObject
com.luciad.format.kml22.model.behavior.TLcdKML22Lod
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Domain class modeling the KML LodType type.
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractObjectGroup Specifies the level of detail to use when displaying a kml:Region. An earth browser should calculate the size of the kml:Region when projected onto screen space then compute the square root of the kml:Region's area. For example, if an untiled kml:Region is square and the viewpoint is directly above the kml:Region, this measurement is equal to the width of the projected kml:Region. If this measurement falls within the limits defined by kml:minLodPixels and kml:maxLodPixels, and if the kml:LatLonAltBox is in view, then the kml:Region should be activated. If this limit is not reached, the associated geometry should not be drawn since it would be too far from the user's viewpoint to be visible. kml:minLodPixels shall be less than kml:maxLodPixels (where a value of -1 = infinite). It is also advised that kml:minFadeExtent + kml:maxFadeExtent is less than or equal to kml:maxLodPixels - kml:minLodPixels. The following diagram demonstrates how kml:Lod is used in the determination of the visibility of a region: In the following diagram, if P=the calculated projected pixel size, the circled numbers indicate the following: if (P < minLodPixels) opacity=0 //#1 in diagram else if(P < minLodPixels + minFadeExtent) opacity=(P - minLodPixels)/minFadeExtent //#2 in diagram else if (P < maxLodPixels - maxFadeExtent) opacity=1 //#3 in diagram else if (P < maxLodPixels) opacity=(maxLodPixels-P)/maxFadeExtent //#4 in diagram else opacity=0 //#5 in diagram kml:Lod shall contain the kml:minLodPixels outside of an update context, that is when not a descendant of kml:Update. See also 9.13 kml:Region.
- Since:
- 10.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theLodObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theLodSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to themaxFadeExtent
element.static final TLcdDataProperty
Data property that maps to themaxLodPixels
element.static final TLcdDataProperty
Data property that maps to theminFadeExtent
element.static final TLcdDataProperty
Data property that maps to theminLodPixels
element.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
-
Constructor Summary
ConstructorDescriptionTLcdKML22Lod
(TLcdDataType aType) Creates a newTLcdKML22Lod
with a customTLcdDataType
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to themaxFadeExtent
element.Returns the value of the property that maps to themaxLodPixels
element.Returns the value of the property that maps to theminFadeExtent
element.Returns the value of the property that maps to theminLodPixels
element.void
setMaxFadeExtent
(Double aValue) Sets the value of the property that maps to themaxFadeExtent
element.void
setMaxLodPixels
(Double aValue) Sets the value of the property that maps to themaxLodPixels
element.void
setMinFadeExtent
(Double aValue) Sets the value of the property that maps to theminFadeExtent
element.void
setMinLodPixels
(Double aValue) Sets the value of the property that maps to theminLodPixels
element.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetId
-
Field Details
-
MIN_LOD_PIXELS_PROPERTY
Data property that maps to theminLodPixels
element. The possible values for this property are instances ofDouble
. -
MAX_LOD_PIXELS_PROPERTY
Data property that maps to themaxLodPixels
element. The possible values for this property are instances ofDouble
. -
MIN_FADE_EXTENT_PROPERTY
Data property that maps to theminFadeExtent
element. The possible values for this property are instances ofDouble
. -
MAX_FADE_EXTENT_PROPERTY
Data property that maps to themaxFadeExtent
element. The possible values for this property are instances ofDouble
. -
LOD_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theLodSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
LOD_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theLodObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
.
-
-
Constructor Details
-
TLcdKML22Lod
Creates a newTLcdKML22Lod
with a customTLcdDataType
.- Parameters:
aType
- aTLcdDataType
.
-
-
Method Details
-
getMinLodPixels
Returns the value of the property that maps to theminLodPixels
element.- Returns:
- the value of the
MIN_LOD_PIXELS_PROPERTY
property.
-
setMinLodPixels
Sets the value of the property that maps to theminLodPixels
element.- Parameters:
aValue
- the value to set for theMIN_LOD_PIXELS_PROPERTY
property.
-
getMaxLodPixels
Returns the value of the property that maps to themaxLodPixels
element.- Returns:
- the value of the
MAX_LOD_PIXELS_PROPERTY
property.
-
setMaxLodPixels
Sets the value of the property that maps to themaxLodPixels
element.- Parameters:
aValue
- the value to set for theMAX_LOD_PIXELS_PROPERTY
property.
-
getMinFadeExtent
Returns the value of the property that maps to theminFadeExtent
element.- Returns:
- the value of the
MIN_FADE_EXTENT_PROPERTY
property.
-
setMinFadeExtent
Sets the value of the property that maps to theminFadeExtent
element.- Parameters:
aValue
- the value to set for theMIN_FADE_EXTENT_PROPERTY
property.
-
getMaxFadeExtent
Returns the value of the property that maps to themaxFadeExtent
element.- Returns:
- the value of the
MAX_FADE_EXTENT_PROPERTY
property.
-
setMaxFadeExtent
Sets the value of the property that maps to themaxFadeExtent
element.- Parameters:
aValue
- the value to set for theMAX_FADE_EXTENT_PROPERTY
property.
-