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
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theLodObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theLodSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to themaxFadeExtentelement.static final TLcdDataPropertyData property that maps to themaxLodPixelselement.static final TLcdDataPropertyData property that maps to theminFadeExtentelement.static final TLcdDataPropertyData property that maps to theminLodPixelselement.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionTLcdKML22Lod(TLcdDataType aType) Creates a newTLcdKML22Lodwith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to themaxFadeExtentelement.Returns the value of the property that maps to themaxLodPixelselement.Returns the value of the property that maps to theminFadeExtentelement.Returns the value of the property that maps to theminLodPixelselement.voidsetMaxFadeExtent(Double aValue) Sets the value of the property that maps to themaxFadeExtentelement.voidsetMaxLodPixels(Double aValue) Sets the value of the property that maps to themaxLodPixelselement.voidsetMinFadeExtent(Double aValue) Sets the value of the property that maps to theminFadeExtentelement.voidsetMinLodPixels(Double aValue) Sets the value of the property that maps to theminLodPixelselement.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 theminLodPixelselement. The possible values for this property are instances ofDouble. -
MAX_LOD_PIXELS_PROPERTY
Data property that maps to themaxLodPixelselement. The possible values for this property are instances ofDouble. -
MIN_FADE_EXTENT_PROPERTY
Data property that maps to theminFadeExtentelement. The possible values for this property are instances ofDouble. -
MAX_FADE_EXTENT_PROPERTY
Data property that maps to themaxFadeExtentelement. The possible values for this property are instances ofDouble. -
LOD_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theLodSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
LOD_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theLodObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22Lod
Creates a newTLcdKML22Lodwith a customTLcdDataType.- Parameters:
aType- aTLcdDataType.
-
-
Method Details
-
getMinLodPixels
Returns the value of the property that maps to theminLodPixelselement.- Returns:
- the value of the
MIN_LOD_PIXELS_PROPERTYproperty.
-
setMinLodPixels
Sets the value of the property that maps to theminLodPixelselement.- Parameters:
aValue- the value to set for theMIN_LOD_PIXELS_PROPERTYproperty.
-
getMaxLodPixels
Returns the value of the property that maps to themaxLodPixelselement.- Returns:
- the value of the
MAX_LOD_PIXELS_PROPERTYproperty.
-
setMaxLodPixels
Sets the value of the property that maps to themaxLodPixelselement.- Parameters:
aValue- the value to set for theMAX_LOD_PIXELS_PROPERTYproperty.
-
getMinFadeExtent
Returns the value of the property that maps to theminFadeExtentelement.- Returns:
- the value of the
MIN_FADE_EXTENT_PROPERTYproperty.
-
setMinFadeExtent
Sets the value of the property that maps to theminFadeExtentelement.- Parameters:
aValue- the value to set for theMIN_FADE_EXTENT_PROPERTYproperty.
-
getMaxFadeExtent
Returns the value of the property that maps to themaxFadeExtentelement.- Returns:
- the value of the
MAX_FADE_EXTENT_PROPERTYproperty.
-
setMaxFadeExtent
Sets the value of the property that maps to themaxFadeExtentelement.- Parameters:
aValue- the value to set for theMAX_FADE_EXTENT_PROPERTYproperty.
-