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
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theAbstractLatLonBoxObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractLatLonBoxSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to thealtitudeModeGroup
element.static final TLcdDataProperty
Data property that maps to theeast
element.static final TLcdDataProperty
Data property that maps to theLatLonAltBoxObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theLatLonAltBoxSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to themaxAltitude
element.static final TLcdDataProperty
Data property that maps to theminAltitude
element.static final TLcdDataProperty
Data property that maps to thenorth
element.static final TLcdDataProperty
Data property that maps to thesouth
element.static final TLcdDataProperty
Data property that maps to thewest
element.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdKML22LatLonAltBox
with 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 thisILcdBounds
object that is also anILcd2DEditableBounds
.Returns a copy of thisILcdBounds
object that is also anILcd3DEditableBounds
.boolean
contains2D
(double aX, double aY) Checks whether thisILcdShape
contains the given point in the 2D space.boolean
contains2D
(double aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBounds
object contains the given rectangle in the 2D space.boolean
contains2D
(ILcdBounds aBounds) Checks whether thisILcdBounds
object contains the givenILcdBounds
object in the 2D space.boolean
contains2D
(ILcdPoint aPoint) Checks whether thisILcdShape
contains the givenILcdPoint
in the 2D space.boolean
contains3D
(double aX, double aY, double aZ) Checks whether thisILcdShape
contains the given point in the 3D space.boolean
contains3D
(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBounds
object contains the given box in the 3D space.boolean
contains3D
(ILcdBounds aBounds) Checks whether thisILcdBounds
object contains the givenILcdBounds
object in the 3D space.boolean
contains3D
(ILcdPoint aPoint) Checks whether thisILcdShape
contains the givenILcdPoint
in the 3D space.Returns the value of the property that maps to thealtitudeModeGroup
element.Returns the shape that is used as a base for extrusion.Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.double
getDepth()
Returns the depth of the bounding box.getEast()
Returns the value of the property that maps to theeast
element.Returns the focus point of thisILcdShape
.double
Returns 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 themaxAltitude
element.double
Returns the maximum Z value for extrusion.Returns the value of the property that maps to theminAltitude
element.double
Returns the minimum Z value for extrusion.getNorth()
Returns the value of the property that maps to thenorth
element.getSouth()
Returns the value of the property that maps to thesouth
element.getWest()
Returns the value of the property that maps to thewest
element.double
getWidth()
Returns the width of the bounding box.boolean
interacts2D
(double aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBounds
object interacts with the given rectangle in the 2D space.boolean
interacts2D
(ILcdBounds aBounds) Checks whether thisILcdBounds
object interacts with the givenILcdBounds
object in the 2D space.boolean
interacts3D
(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBounds
object interacts with the given box in the 3D space.boolean
interacts3D
(ILcdBounds aBounds) Checks whether thisILcdBounds
object interacts with the givenILcdBounds
object.boolean
Indicates whether this bounds object is valid.void
setAltitudeMode
(ELcdKML22AltitudeMode aValue) Sets the value of the property that maps to thealtitudeModeGroup
element.void
Sets the value of the property that maps to theeast
element.void
setMaxAltitude
(Double aValue) Sets the value of the property that maps to themaxAltitude
element.void
setMinAltitude
(Double aValue) Sets the value of the property that maps to theminAltitude
element.void
Sets the value of the property that maps to thenorth
element.void
Sets the value of the property that maps to thesouth
element.void
Sets the value of the property that maps to thewest
element.Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetId
Methods 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 theminAltitude
element. The possible values for this property are instances ofDouble
. -
MAX_ALTITUDE_PROPERTY
Data property that maps to themaxAltitude
element. The possible values for this property are instances ofDouble
. -
ALTITUDE_MODE_PROPERTY
Data property that maps to thealtitudeModeGroup
element. The possible values for this property are instances ofELcdKML22AltitudeMode
. -
LAT_LON_ALT_BOX_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theLatLonAltBoxSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
LAT_LON_ALT_BOX_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theLatLonAltBoxObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
. -
NORTH_PROPERTY
Data property that maps to thenorth
element. The possible values for this property are instances ofDouble
. -
SOUTH_PROPERTY
Data property that maps to thesouth
element. The possible values for this property are instances ofDouble
. -
EAST_PROPERTY
Data property that maps to theeast
element. The possible values for this property are instances ofDouble
. -
WEST_PROPERTY
Data property that maps to thewest
element. The possible values for this property are instances ofDouble
. -
ABSTRACT_LAT_LON_BOX_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractLatLonBoxSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
ABSTRACT_LAT_LON_BOX_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractLatLonBoxObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
.
-
-
Constructor Details
-
TLcdKML22LatLonAltBox
Creates a newTLcdKML22LatLonAltBox
with a customTLcdDataType
.- Parameters:
aType
- a customTLcdDataType
-
-
Method Details
-
getBaseShape
Description copied from interface:ILcdExtrudedShape
Returns the shape that is used as a base for extrusion.- Specified by:
getBaseShape
in interfaceILcdExtrudedShape
- Returns:
- the shape that is used as a base for extrusion.
-
getMinimumZ
public double getMinimumZ()Description copied from interface:ILcdExtrudedShape
Returns the minimum Z value for extrusion.- Specified by:
getMinimumZ
in interfaceILcdExtrudedShape
- Returns:
- the minimum Z value for extrusion.
-
getMaximumZ
public double getMaximumZ()Description copied from interface:ILcdExtrudedShape
Returns the maximum Z value for extrusion.- Specified by:
getMaximumZ
in interfaceILcdExtrudedShape
- Returns:
- the maximum Z value for extrusion.
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map)
.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLcdDataObject
- Returns:
- a deep clone of this object
- See Also:
-
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
-
cloneAs2DEditableBounds
Description copied from interface:ILcdBounds
Returns a copy of thisILcdBounds
object that is also anILcd2DEditableBounds
. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only.- Specified by:
cloneAs2DEditableBounds
in interfaceILcdBounds
- Returns:
- a copy of this
ILcdBounds
object that is also anILcd2DEditableBounds
. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only. - See Also:
-
cloneAs3DEditableBounds
Description copied from interface:ILcdBounds
Returns a copy of thisILcdBounds
object that is also anILcd3DEditableBounds
. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only.- Specified by:
cloneAs3DEditableBounds
in interfaceILcdBounds
- Returns:
- a copy of this
ILcdBounds
object that is also anILcd3DEditableBounds
. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBounds
object may be read-only. - See Also:
-
contains2D
Description copied from interface:ILcdBounds
Checks whether thisILcdBounds
object contains the givenILcdBounds
object in the 2D space. Only the first two dimensions of theILcdBounds
objects are considered.If either bounds is
undefined
, the result is false.- Specified by:
contains2D
in interfaceILcdBounds
- Parameters:
aBounds
- theILcdBounds
to compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
isDefined
public boolean isDefined()Description copied from interface:ILcdBounds
Indicates 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:
isDefined
in interfaceILcdBounds
- Returns:
true
if this object describes actual bounds,false
if not
- If
-
contains2D
Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the givenILcdPoint
in the 2D space. Only the first two dimensions of theILcdShape
and theILcdPoint
are considered.- Specified by:
contains2D
in interfaceILcdShape
- Parameters:
aPoint
- theILcdPoint
to test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the given point in the 2D space. Only the first two dimensions of theILcdShape
are considered.- Specified by:
contains2D
in 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:ILcdBounds
Checks whether thisILcdBounds
object contains the given rectangle in the 2D space. Only the first two dimensions of theILcdBounds
object are considered.If this bounds is
undefined
, the result is false.- Specified by:
contains2D
in 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:ILcdBounds
Checks whether thisILcdBounds
object contains the givenILcdBounds
object in the 3D space.If either bounds is
undefined
, the result is false.- Specified by:
contains3D
in interfaceILcdBounds
- Parameters:
aBounds
- theILcdBounds
to compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the givenILcdPoint
in the 3D space.- Specified by:
contains3D
in interfaceILcdShape
- Parameters:
aPoint
- theILcdPoint
to 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:ILcdShape
Checks whether thisILcdShape
contains the given point in the 3D space.- Specified by:
contains3D
in 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:ILcdBounds
Checks whether thisILcdBounds
object contains the given box in the 3D space.If this bounds is
undefined
, the result is false.- Specified by:
contains3D
in 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:ILcdShape
Returns the focus point of thisILcdShape
.- Specified by:
getFocusPoint
in interfaceILcdShape
- Returns:
- the focus point of this
ILcdShape
.
-
getHeight
public double getHeight()Description copied from interface:ILcdBounds
Returns the height of the bounding box. The height has to be larger than or equal to 0.- Specified by:
getHeight
in interfaceILcdBounds
- Returns:
- the height of the bounding box.
-
getLocation
Description copied from interface:ILcdBounds
Returns the location of the bounding box (smallest x and y coordinates).- Specified by:
getLocation
in interfaceILcdBounds
- Returns:
- the location of the bounding box.
-
getWidth
public double getWidth()Description copied from interface:ILcdBounds
Returns the width of the bounding box. The width has to be larger than or equal to 0.- Specified by:
getWidth
in interfaceILcdBounds
- Returns:
- the width of the bounding box.
-
interacts2D
Description copied from interface:ILcdBounds
Checks whether thisILcdBounds
object interacts with the givenILcdBounds
object in the 2D space. Only the first two dimensions of theILcdBounds
objects are considered.If either bounds is
undefined
, the result is false.- Specified by:
interacts2D
in interfaceILcdBounds
- Parameters:
aBounds
- theILcdBounds
to 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:ILcdBounds
Checks whether thisILcdBounds
object interacts with the given rectangle in the 2D space. Only the first two dimensions of theILcdBounds
object are considered.If this bounds is
undefined
, the result is false.- Specified by:
interacts2D
in 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:
true
if thisILcdBounds
object touches or overlaps to any extent with the given rectangle,false
otherwise.
-
interacts3D
Description copied from interface:ILcdBounds
Checks whether thisILcdBounds
object interacts with the givenILcdBounds
object.If either bounds is
undefined
, the result is false.- Specified by:
interacts3D
in interfaceILcdBounds
- Parameters:
aBounds
- theILcdBounds
to 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:ILcdBounds
Checks whether thisILcdBounds
object interacts with the given box in the 3D space.If this bounds is
undefined
, the result is false.- Specified by:
interacts3D
in 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:
true
if thisILcdBounds
object touches or overlaps to any extent with the given box,false
otherwise.
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
object 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
undefined
bounds. You can create undefined bounds using the default constructors ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-
getDepth
public double getDepth()Description copied from interface:ILcdBounds
Returns the depth of the bounding box. The depth has to be larger than or equal to 0.- Specified by:
getDepth
in interfaceILcdBounds
- Returns:
- the depth of the bounding box.
-
getMinAltitude
Returns the value of the property that maps to theminAltitude
element.- Returns:
- the value of the
MIN_ALTITUDE_PROPERTY
property.
-
setMinAltitude
Sets the value of the property that maps to theminAltitude
element.- Parameters:
aValue
- the value to set for theMIN_ALTITUDE_PROPERTY
property.
-
getMaxAltitude
Returns the value of the property that maps to themaxAltitude
element.- Returns:
- the value of the
MAX_ALTITUDE_PROPERTY
property.
-
setMaxAltitude
Sets the value of the property that maps to themaxAltitude
element.- Parameters:
aValue
- the value to set for theMAX_ALTITUDE_PROPERTY
property.
-
getAltitudeMode
Returns the value of the property that maps to thealtitudeModeGroup
element.- Returns:
- the value of the
ALTITUDE_MODE_PROPERTY
property.
-
setAltitudeMode
Sets the value of the property that maps to thealtitudeModeGroup
element.- Parameters:
aValue
- the value to set for theALTITUDE_MODE_PROPERTY
property.
-
getNorth
Returns the value of the property that maps to thenorth
element.- Returns:
- the value of the
NORTH_PROPERTY
property.
-
setNorth
Sets the value of the property that maps to thenorth
element.- Parameters:
aValue
- the value to set for theNORTH_PROPERTY
property.
-
getSouth
Returns the value of the property that maps to thesouth
element.- Returns:
- the value of the
SOUTH_PROPERTY
property.
-
setSouth
Sets the value of the property that maps to thesouth
element.- Parameters:
aValue
- the value to set for theSOUTH_PROPERTY
property.
-
getEast
Returns the value of the property that maps to theeast
element.- Returns:
- the value of the
EAST_PROPERTY
property.
-
setEast
Sets the value of the property that maps to theeast
element.- Parameters:
aValue
- the value to set for theEAST_PROPERTY
property.
-
getWest
Returns the value of the property that maps to thewest
element.- Returns:
- the value of the
WEST_PROPERTY
property.
-
setWest
Sets the value of the property that maps to thewest
element.- Parameters:
aValue
- the value to set for theWEST_PROPERTY
property.
-