Class TLcdKML22Region
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.kml22.model.TLcdKML22AbstractObject
com.luciad.format.kml22.model.behavior.TLcdKML22Region
- All Implemented Interfaces:
ILcdDataObject
,ILcdCache
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Domain class modeling the KML RegionType type.
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractObjectGroup Affects the visibility of the kml:AbstractFeatureGroup. A kml:AbstractFeatureGroup associated with a kml:Region is drawn only when the kml:Region is active. A kml:Region affects visibility of a kml:AbstractFeatureGroup. kml:Regions define both culling and level-of-detail control over the display of the kml:AbstractFeatureGroup. A region shall specify a kml:LatLonAltBox element that describes an area of interest defined by geographic coordinates and altitudes. In addition, a kml:Region contains a kml:Lod element that defines a validity range of the associated kml:Region in terms of projected screen size. Regions are inherited through a kml:AbstractFeatureGroup hierarchy and affect the visibility of kml:AbstractFeatureGroup elements that are defined lower in the hierarchy. A kml:Region is said to be "active" when the bounding box is within the user's view and the LOD requirements are met. kml:AbstractFeatureGroup elements associated with a kml:Region are drawn only when the kml:Region is active. When the kml:viewRefreshMode is onRegion, the kml:Link or kml:Icon is loaded only when the kml:Region is active. In a kml:AbstractContainerGroup or kml:NetworkLink hierarchy, this calculation uses the kml:Region that is the closest ancestor in the hierarchy. See also 9.6 kml:AbstractContainerGroup regarding the inheritance of kml:Region within KML feature hierarchies. kml:Region shall contain the kml:LatLonAltBox and kml:Lod child elements outside of an update context, that is when not a descendant of kml:Update.
- Since:
- 10.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theLatLonAltBox
element.static final TLcdDataProperty
Data property that maps to theLod
element.static final TLcdDataProperty
Data property that maps to theRegionObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theRegionSimpleExtensionGroup
element.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
-
Constructor Summary
ConstructorDescriptionTLcdKML22Region
(TLcdDataType aType) Creates a newTLcdKML22Region
with a customTLcdDataType
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the cache.Returns a deep clone of this object.getCachedObject
(Object aKey) Looks up and returns the cached Object corresponding to the given key.Returns the value of the property that maps to theLatLonAltBox
element.getLod()
Returns the value of the property that maps to theLod
element.void
insertIntoCache
(Object aKey, Object aObject) Inserts a cache Object corresponding to the given key Object.removeCachedObject
(Object aKey) Looks up and removes the cached Object corresponding to the given key.void
setLatLonAltBox
(TLcdKML22LatLonAltBox aValue) Sets the value of the property that maps to theLatLonAltBox
element.void
setLod
(TLcdKML22Lod aValue) Sets the value of the property that maps to theLod
element.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetId
Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
-
Field Details
-
LAT_LON_ALT_BOX_PROPERTY
Data property that maps to theLatLonAltBox
element. The possible values for this property are instances ofTLcdKML22LatLonAltBox
. -
LOD_PROPERTY
Data property that maps to theLod
element. The possible values for this property are instances ofTLcdKML22Lod
. -
REGION_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theRegionSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
REGION_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theRegionObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
.
-
-
Constructor Details
-
TLcdKML22Region
Creates a newTLcdKML22Region
with a customTLcdDataType
.- Parameters:
aType
- aTLcdDataType
.
-
-
Method Details
-
clearCache
public void clearCache()Description copied from interface:ILcdCache
Clears the cache.- Specified by:
clearCache
in interfaceILcdCache
-
getCachedObject
Description copied from interface:ILcdCache
Looks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObject
in interfaceILcdCache
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there is no Object corresponding to the given key.
-
insertIntoCache
Description copied from interface:ILcdCache
Inserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCache
in interfaceILcdCache
- Parameters:
aKey
- the key Object that will be used to identify the Object. The key must therefore be a unique identifier, typically the caller itself:insertIntoCache(this, ...)
.aObject
- the Object to be cached.
-
removeCachedObject
Description copied from interface:ILcdCache
Looks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObject
in interfaceILcdCache
- Parameters:
aKey
- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there was no Object corresponding to the given key.
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject
, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()
method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneable
orILcdCloneable
then this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clone
in interfaceILcdDeepCloneable
- Overrides:
clone
in classTLcdDataObject
- Parameters:
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
getLatLonAltBox
Returns the value of the property that maps to theLatLonAltBox
element.- Returns:
- the value of the
LAT_LON_ALT_BOX_PROPERTY
property.
-
setLatLonAltBox
Sets the value of the property that maps to theLatLonAltBox
element.- Parameters:
aValue
- the value to set for theLAT_LON_ALT_BOX_PROPERTY
property.
-
getLod
Returns the value of the property that maps to theLod
element.- Returns:
- the value of the
LOD_PROPERTY
property.
-
setLod
Sets the value of the property that maps to theLod
element.- Parameters:
aValue
- the value to set for theLOD_PROPERTY
property.
-