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
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theLatLonAltBoxelement.static final TLcdDataPropertyData property that maps to theLodelement.static final TLcdDataPropertyData property that maps to theRegionObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theRegionSimpleExtensionGroupelement.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionTLcdKML22Region(TLcdDataType aType) Creates a newTLcdKML22Regionwith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears 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 theLatLonAltBoxelement.getLod()Returns the value of the property that maps to theLodelement.voidinsertIntoCache(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.voidsetLatLonAltBox(TLcdKML22LatLonAltBox aValue) Sets the value of the property that maps to theLatLonAltBoxelement.voidsetLod(TLcdKML22Lod aValue) Sets the value of the property that maps to theLodelement.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetIdMethods 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 theLatLonAltBoxelement. The possible values for this property are instances ofTLcdKML22LatLonAltBox. -
LOD_PROPERTY
Data property that maps to theLodelement. The possible values for this property are instances ofTLcdKML22Lod. -
REGION_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theRegionSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
REGION_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theRegionObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22Region
Creates a newTLcdKML22Regionwith a customTLcdDataType.- Parameters:
aType- aTLcdDataType.
-
-
Method Details
-
clearCache
public void clearCache()Description copied from interface:ILcdCacheClears the cache.- Specified by:
clearCachein interfaceILcdCache
-
getCachedObject
Description copied from interface:ILcdCacheLooks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObjectin 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:ILcdCacheInserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCachein 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:ILcdCacheLooks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObjectin 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:TLcdDataObjectReturns 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
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein 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 theLatLonAltBoxelement.- Returns:
- the value of the
LAT_LON_ALT_BOX_PROPERTYproperty.
-
setLatLonAltBox
Sets the value of the property that maps to theLatLonAltBoxelement.- Parameters:
aValue- the value to set for theLAT_LON_ALT_BOX_PROPERTYproperty.
-
getLod
Returns the value of the property that maps to theLodelement.- Returns:
- the value of the
LOD_PROPERTYproperty.
-
setLod
Sets the value of the property that maps to theLodelement.- Parameters:
aValue- the value to set for theLOD_PROPERTYproperty.
-