Class TLcdKML22LatLonAltBox
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdBounds,ILcdShape,ILcdExtrudedShape,ILcdCloneable,ILcdDeepCloneable,Serializable,Cloneable
OGC KML Specification description:
This element can be used wherever the following element is referenced:
-kml:AbstractObjectGroup
NOTE: The schema type for kml:LatLonAltBox derives by extension from the schema type for
kml:AbstractLatLonAltBoxGroup, even though it does not substitute for it.
Specifies the extent of a 3D bounding box, such that:
- kml:north is greater than kml:south;
- kml:east is greater than kml:west;
- kml:minAltitude is less than or equal to kml:maxAltitude;
- if kml:minAltitude and kml:maxAltitude are both present, kml:altitudeMode
shall not have a value of clampToGround.
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theAbstractLatLonBoxObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractLatLonBoxSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to thealtitudeModeGroupelement.static final TLcdDataPropertyData property that maps to theeastelement.static final TLcdDataPropertyData property that maps to theLatLonAltBoxObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theLatLonAltBoxSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to themaxAltitudeelement.static final TLcdDataPropertyData property that maps to theminAltitudeelement.static final TLcdDataPropertyData property that maps to thenorthelement.static final TLcdDataPropertyData property that maps to thesouthelement.static final TLcdDataPropertyData property that maps to thewestelement.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newTLcdKML22LatLonAltBoxwith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a deep clone of this object.Returns a deep clone of this object.Returns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds.Returns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds.booleancontains2D(double aX, double aY) Checks whether thisILcdShapecontains the given point in the 2D space.booleancontains2D(double aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBoundsobject contains the given rectangle in the 2D space.booleancontains2D(ILcdBounds aBounds) Checks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 2D space.booleancontains2D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 2D space.booleancontains3D(double aX, double aY, double aZ) Checks whether thisILcdShapecontains the given point in the 3D space.booleancontains3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBoundsobject contains the given box in the 3D space.booleancontains3D(ILcdBounds aBounds) Checks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 3D space.booleancontains3D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Returns the value of the property that maps to thealtitudeModeGroupelement.Returns the shape that is used as a base for extrusion.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.doublegetDepth()Returns the depth of the bounding box.getEast()Returns the value of the property that maps to theeastelement.Returns the focus point of thisILcdShape.doubleReturns the height of the bounding box.Returns the location of the bounding box (smallest x and y coordinates).Returns the value of the property that maps to themaxAltitudeelement.doubleReturns the maximum Z value for extrusion.Returns the value of the property that maps to theminAltitudeelement.doubleReturns the minimum Z value for extrusion.getNorth()Returns the value of the property that maps to thenorthelement.getSouth()Returns the value of the property that maps to thesouthelement.getWest()Returns the value of the property that maps to thewestelement.doublegetWidth()Returns the width of the bounding box.booleaninteracts2D(double aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBoundsobject interacts with the given rectangle in the 2D space.booleaninteracts2D(ILcdBounds aBounds) Checks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject in the 2D space.booleaninteracts3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBoundsobject interacts with the given box in the 3D space.booleaninteracts3D(ILcdBounds aBounds) Checks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject.booleanIndicates whether this bounds object is valid.voidsetAltitudeMode(ELcdKML22AltitudeMode aValue) Sets the value of the property that maps to thealtitudeModeGroupelement.voidSets the value of the property that maps to theeastelement.voidsetMaxAltitude(Double aValue) Sets the value of the property that maps to themaxAltitudeelement.voidsetMinAltitude(Double aValue) Sets the value of the property that maps to theminAltitudeelement.voidSets the value of the property that maps to thenorthelement.voidSets the value of the property that maps to thesouthelement.voidSets the value of the property that maps to thewestelement.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetIdMethods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
-
Field Details
-
MIN_ALTITUDE_PROPERTY
Data property that maps to theminAltitudeelement. The possible values for this property are instances ofDouble. -
MAX_ALTITUDE_PROPERTY
Data property that maps to themaxAltitudeelement. The possible values for this property are instances ofDouble. -
ALTITUDE_MODE_PROPERTY
Data property that maps to thealtitudeModeGroupelement. The possible values for this property are instances ofELcdKML22AltitudeMode. -
LAT_LON_ALT_BOX_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theLatLonAltBoxSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
LAT_LON_ALT_BOX_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theLatLonAltBoxObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>. -
NORTH_PROPERTY
Data property that maps to thenorthelement. The possible values for this property are instances ofDouble. -
SOUTH_PROPERTY
Data property that maps to thesouthelement. The possible values for this property are instances ofDouble. -
EAST_PROPERTY
Data property that maps to theeastelement. The possible values for this property are instances ofDouble. -
WEST_PROPERTY
Data property that maps to thewestelement. The possible values for this property are instances ofDouble. -
ABSTRACT_LAT_LON_BOX_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractLatLonBoxSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
ABSTRACT_LAT_LON_BOX_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractLatLonBoxObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22LatLonAltBox
Creates a newTLcdKML22LatLonAltBoxwith a customTLcdDataType.- Parameters:
aType- a customTLcdDataType
-
-
Method Details
-
getBaseShape
Description copied from interface:ILcdExtrudedShapeReturns the shape that is used as a base for extrusion.- Specified by:
getBaseShapein interfaceILcdExtrudedShape- Returns:
- the shape that is used as a base for extrusion.
-
getMinimumZ
public double getMinimumZ()Description copied from interface:ILcdExtrudedShapeReturns the minimum Z value for extrusion.- Specified by:
getMinimumZin interfaceILcdExtrudedShape- Returns:
- the minimum Z value for extrusion.
-
getMaximumZ
public double getMaximumZ()Description copied from interface:ILcdExtrudedShapeReturns the maximum Z value for extrusion.- Specified by:
getMaximumZin interfaceILcdExtrudedShape- Returns:
- the maximum Z value for extrusion.
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map).- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdDataObject- Returns:
- a deep clone of this object
- See Also:
-
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
-
cloneAs2DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Specified by:
cloneAs2DEditableBoundsin interfaceILcdBounds- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-
cloneAs3DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Specified by:
cloneAs3DEditableBoundsin interfaceILcdBounds- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-
contains2D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 2D space. Only the first two dimensions of theILcdBoundsobjects are considered.If either bounds is
undefined, the result is false.- Specified by:
contains2Din interfaceILcdBounds- Parameters:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
isDefined
public boolean isDefined()Description copied from interface:ILcdBoundsIndicates whether this bounds object is valid.- If
true, this bounds describes a valid geographic region. - If
false, this bounds does not represent a geographic region, and its location, width, height and depth should not be used.
- Specified by:
isDefinedin interfaceILcdBounds- Returns:
trueif this object describes actual bounds,falseif not
- If
-
contains2D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 2D space. Only the first two dimensions of theILcdShapeand theILcdPointare considered.- Specified by:
contains2Din interfaceILcdShape- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered.- Specified by:
contains2Din interfaceILcdShape- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains2D
public boolean contains2D(double aX, double aY, double aWidth, double aHeight) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the given rectangle in the 2D space. Only the first two dimensions of theILcdBoundsobject are considered.If this bounds is
undefined, the result is false.- Specified by:
contains2Din interfaceILcdBounds- Parameters:
aX- the x coordinate of the rectangle.aY- the y coordinate of the rectangle.aWidth- the width of the rectangle.aHeight- the height of the rectangle.- Returns:
- the boolean result of the containment test.
-
contains3D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 3D space.If either bounds is
undefined, the result is false.- Specified by:
contains3Din interfaceILcdBounds- Parameters:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 3D space.- Specified by:
contains3Din interfaceILcdShape- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 3D space.- Specified by:
contains3Din interfaceILcdShape- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains3D
public boolean contains3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the given box in the 3D space.If this bounds is
undefined, the result is false.- Specified by:
contains3Din interfaceILcdBounds- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.aWidth- the width of the box.aHeight- the height of the box.aDepth- the depth of the box.- Returns:
- the boolean result of the containment test.
- See Also:
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Returns:
- the focus point of this
ILcdShape.
-
getHeight
public double getHeight()Description copied from interface:ILcdBoundsReturns the height of the bounding box. The height has to be larger than or equal to 0.- Specified by:
getHeightin interfaceILcdBounds- Returns:
- the height of the bounding box.
-
getLocation
Description copied from interface:ILcdBoundsReturns the location of the bounding box (smallest x and y coordinates).- Specified by:
getLocationin interfaceILcdBounds- Returns:
- the location of the bounding box.
-
getWidth
public double getWidth()Description copied from interface:ILcdBoundsReturns the width of the bounding box. The width has to be larger than or equal to 0.- Specified by:
getWidthin interfaceILcdBounds- Returns:
- the width of the bounding box.
-
interacts2D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject in the 2D space. Only the first two dimensions of theILcdBoundsobjects are considered.If either bounds is
undefined, the result is false.- Specified by:
interacts2Din interfaceILcdBounds- Parameters:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the interaction test.
- See Also:
-
interacts2D
public boolean interacts2D(double aX, double aY, double aWidth, double aHeight) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the given rectangle in the 2D space. Only the first two dimensions of theILcdBoundsobject are considered.If this bounds is
undefined, the result is false.- Specified by:
interacts2Din interfaceILcdBounds- Parameters:
aX- the x coordinate of the rectangle.aY- the y coordinate of the rectangle.aWidth- the width of the rectangle.aHeight- the height of the rectangle.- Returns:
trueif thisILcdBoundsobject touches or overlaps to any extent with the given rectangle,falseotherwise.
-
interacts3D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject.If either bounds is
undefined, the result is false.- Specified by:
interacts3Din interfaceILcdBounds- Parameters:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the interaction test.
- See Also:
-
interacts3D
public boolean interacts3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the given box in the 3D space.If this bounds is
undefined, the result is false.- Specified by:
interacts3Din interfaceILcdBounds- Parameters:
aX- the x coordinate of the box.aY- the y coordinate of the box.aZ- the z coordinate of the box.aWidth- the width of the box.aHeight- the height of the box.aDepth- the depth of the box.- Returns:
trueif thisILcdBoundsobject touches or overlaps to any extent with the given box,falseotherwise.
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
getDepth
public double getDepth()Description copied from interface:ILcdBoundsReturns the depth of the bounding box. The depth has to be larger than or equal to 0.- Specified by:
getDepthin interfaceILcdBounds- Returns:
- the depth of the bounding box.
-
getMinAltitude
Returns the value of the property that maps to theminAltitudeelement.- Returns:
- the value of the
MIN_ALTITUDE_PROPERTYproperty.
-
setMinAltitude
Sets the value of the property that maps to theminAltitudeelement.- Parameters:
aValue- the value to set for theMIN_ALTITUDE_PROPERTYproperty.
-
getMaxAltitude
Returns the value of the property that maps to themaxAltitudeelement.- Returns:
- the value of the
MAX_ALTITUDE_PROPERTYproperty.
-
setMaxAltitude
Sets the value of the property that maps to themaxAltitudeelement.- Parameters:
aValue- the value to set for theMAX_ALTITUDE_PROPERTYproperty.
-
getAltitudeMode
Returns the value of the property that maps to thealtitudeModeGroupelement.- Returns:
- the value of the
ALTITUDE_MODE_PROPERTYproperty.
-
setAltitudeMode
Sets the value of the property that maps to thealtitudeModeGroupelement.- Parameters:
aValue- the value to set for theALTITUDE_MODE_PROPERTYproperty.
-
getNorth
Returns the value of the property that maps to thenorthelement.- Returns:
- the value of the
NORTH_PROPERTYproperty.
-
setNorth
Sets the value of the property that maps to thenorthelement.- Parameters:
aValue- the value to set for theNORTH_PROPERTYproperty.
-
getSouth
Returns the value of the property that maps to thesouthelement.- Returns:
- the value of the
SOUTH_PROPERTYproperty.
-
setSouth
Sets the value of the property that maps to thesouthelement.- Parameters:
aValue- the value to set for theSOUTH_PROPERTYproperty.
-
getEast
Returns the value of the property that maps to theeastelement.- Returns:
- the value of the
EAST_PROPERTYproperty.
-
setEast
Sets the value of the property that maps to theeastelement.- Parameters:
aValue- the value to set for theEAST_PROPERTYproperty.
-
getWest
Returns the value of the property that maps to thewestelement.- Returns:
- the value of the
WEST_PROPERTYproperty.
-
setWest
Sets the value of the property that maps to thewestelement.- Parameters:
aValue- the value to set for theWEST_PROPERTYproperty.
-