Class TLcdGML32MultiGeometry
- All Implemented Interfaces:
ILcdDataObject
,ILcdBounded
,ILcdEditableShapeList
,ILcdShape
,ILcdShapeList
,ILcdCloneable
,ILcdDeepCloneable
,ILcdInvalidateable
,Serializable
,Cloneable
gml:MultiGeometry is a collection of one or more GML geometry objects of arbitrary type.
The members of the geometric aggregate may be specified either using the "standard" property (gml:geometryMember) or the array property (gml:geometryMembers). It is also valid to use both the "standard" and the array properties in the same collection.
- Since:
- 10.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theaggregationType
attribute.static final TLcdDataProperty
Data property that maps to thegeometryMember
element.static final TLcdDataProperty
Data property that maps to thegeometryMembers
element.Fields inherited from class com.luciad.format.gml32.model.TLcdGML32AbstractGeometry
SRS_PROPERTY
Fields inherited from class com.luciad.format.gml32.model.TLcdGML32AbstractGML
DESCRIPTION_PROPERTY, DESCRIPTION_REFERENCE_PROPERTY, ID_PROPERTY, IDENTIFIER_PROPERTY, META_DATA_PROPERTY_PROPERTY, NAME_PROPERTY
-
Constructor Summary
ConstructorDescriptionTLcdGML32MultiGeometry
(TLcdDataType aDataType, ILcdModelReference aSrs) Constructs a multi geometry and initializes its model reference (srs).Constructs a multi geometry and initializes its model reference (srs). -
Method Summary
Modifier and TypeMethodDescriptionvoid
Inserts the specified shape at the specified position in thisILcdShapeList
.void
Appends the specified shape to the end of thisILcdShapeList
.void
Appends the specified array of shapes to the end of thisILcdShapeList
.void
Removes all of the shapes from thisILcdShapeList
.clone()
Returns a deep clone of this object.Returns a deep clone of this object.boolean
contains2D
(double aX, double aY) Checks whether thisILcdShape
contains the given point 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
(ILcdPoint aPoint) Checks whether thisILcdShape
contains the givenILcdPoint
in the 3D space.Returns the value of the property that maps to theaggregationType
attribute.Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.Returns the focus point of thisILcdShape
.Returns the value of the property that maps to thegeometryMember
element.Returns the role value contained in the value of theGEOMETRY_MEMBERS_PROPERTY
property.getShape
(int aIndex) Returns theILcdShape
at the given index.int
Returns the number ofILcdShape
objects in the list.removeShape
(int aIndex) Removes the shape at the specified position in thisILcdShapeList
.boolean
removeShape
(ILcdShape aShape) Removes the first occurrence of the specified shape in thisILcdShapeList
.void
removeShapes
(ILcdShape[] aShapes) Removes all shapes from thisILcdShapeList
that are contained in the specified array of shapes.void
Sets the value of the property that maps to theaggregationType
attribute.void
Sets the value of the property that maps to thegeometryMembers
element.Replaces the shape at the specified position in thisILcdShapeList
with the specified shape.void
Replace the list of shapes contained in thisILcdShapeList
with the specified array of shapes.void
shapeChanged
(int aIndex) Notifies thisILcdShapeList
that the shape at the specified position has changed.void
shapeChanged
(ILcdShape aShape) Notifies thisILcdShapeList
that the specified shape has changed.void
Notifies thisILcdShapeList
that some (possibly all) of its shapes have changed.Methods inherited from class com.luciad.format.gml32.model.TLcdGML32AbstractGeometricAggregate
invalidateObject
Methods inherited from class com.luciad.format.gml32.model.TLcdGML32AbstractGeometry
getSrs, setSrs, toString
Methods inherited from class com.luciad.format.gml32.model.TLcdGML32AbstractGML
getDescription, getDescriptionReference, getId, getIdentifier, getMetaDataProperty, getName, setDescription, setDescriptionReference, setId, setIdentifier
Methods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
Field Details
-
GEOMETRY_MEMBER_PROPERTY
Data property that maps to thegeometryMember
element. The possible values for this property are instances ofList<TLcdGML32GeometryProperty>
. -
GEOMETRY_MEMBERS_PROPERTY
Data property that maps to thegeometryMembers
element. The possible values for this property are instances ofTLcdGML32GeometryArrayProperty
. -
AGGREGATION_TYPE_PROPERTY
Data property that maps to theaggregationType
attribute. The possible values for this property are instances ofELcdGML32Aggregation
.
-
-
Constructor Details
-
TLcdGML32MultiGeometry
public TLcdGML32MultiGeometry() -
TLcdGML32MultiGeometry
-
TLcdGML32MultiGeometry
Constructs a multi geometry and initializes its model reference (srs).- Parameters:
aSrs
- the model reference for this object- See Also:
-
TLcdGML32MultiGeometry
Constructs a multi geometry and initializes its model reference (srs).- Parameters:
aDataType
- the data type for this objectaSrs
- the model reference for this object- See Also:
-
-
Method Details
-
addShape
Description copied from interface:ILcdEditableShapeList
Inserts the specified shape at the specified position in thisILcdShapeList
.- Specified by:
addShape
in interfaceILcdEditableShapeList
- Overrides:
addShape
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aIndex
- the index at which the shape is to be inserted.aShape
- the shape to be inserted.
-
addShape
Description copied from interface:ILcdEditableShapeList
Appends the specified shape to the end of thisILcdShapeList
.- Specified by:
addShape
in interfaceILcdEditableShapeList
- Overrides:
addShape
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aShape
- the shape to be appended to thisILcdShapeList
.
-
addShapes
Description copied from interface:ILcdEditableShapeList
Appends the specified array of shapes to the end of thisILcdShapeList
.- Specified by:
addShapes
in interfaceILcdEditableShapeList
- Overrides:
addShapes
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aShapes
- the array of shapes to be appended to thisILcdShapeList
.
-
clearShapes
public void clearShapes()Description copied from interface:ILcdEditableShapeList
Removes all of the shapes from thisILcdShapeList
.- Specified by:
clearShapes
in interfaceILcdEditableShapeList
- Overrides:
clearShapes
in classTLcdGML32AbstractGeometricAggregate
-
removeShape
Description copied from interface:ILcdEditableShapeList
Removes the shape at the specified position in thisILcdShapeList
. Shifts any subsequent shapes to the left. Returns the shape that was removed from thisILcdShapeList
.- Specified by:
removeShape
in interfaceILcdEditableShapeList
- Overrides:
removeShape
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aIndex
- the index of the shape to removed.- Returns:
- the shape previously at the specified position.
-
removeShape
Description copied from interface:ILcdEditableShapeList
Removes the first occurrence of the specified shape in thisILcdShapeList
. If thisILcdShapeList
does not contain the shape, it is unchanged.- Specified by:
removeShape
in interfaceILcdEditableShapeList
- Overrides:
removeShape
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aShape
- the shape to be removed, if present.- Returns:
true
if thisILcdShapeList
contained the specified element.
-
removeShapes
Description copied from interface:ILcdEditableShapeList
Removes all shapes from thisILcdShapeList
that are contained in the specified array of shapes.- Specified by:
removeShapes
in interfaceILcdEditableShapeList
- Overrides:
removeShapes
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aShapes
- the array of shapes to be removed from thisILcdShapeList
.
-
setShape
Description copied from interface:ILcdEditableShapeList
Replaces the shape at the specified position in thisILcdShapeList
with the specified shape.- Specified by:
setShape
in interfaceILcdEditableShapeList
- Overrides:
setShape
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aIndex
- index of shape to replace.aShape
- the shape to be stored at the specified position.- Returns:
- the shape previously at the specified position.
-
setShapes
Description copied from interface:ILcdEditableShapeList
Replace the list of shapes contained in thisILcdShapeList
with the specified array of shapes.- Specified by:
setShapes
in interfaceILcdEditableShapeList
- Overrides:
setShapes
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aShapes
- the array of shapes to be stored in thisILcdShapeList
.
-
shapeChanged
public void shapeChanged(int aIndex) Description copied from interface:ILcdEditableShapeList
Notifies thisILcdShapeList
that the shape at the specified position has changed.- Specified by:
shapeChanged
in interfaceILcdEditableShapeList
- Overrides:
shapeChanged
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aIndex
- the index of the shape that has changed.
-
shapeChanged
Description copied from interface:ILcdEditableShapeList
Notifies thisILcdShapeList
that the specified shape has changed.- Specified by:
shapeChanged
in interfaceILcdEditableShapeList
- Overrides:
shapeChanged
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aShape
- the shape that has changed.
-
shapesChanged
public void shapesChanged()Description copied from interface:ILcdEditableShapeList
Notifies thisILcdShapeList
that some (possibly all) of its shapes have changed.- Specified by:
shapesChanged
in interfaceILcdEditableShapeList
- Overrides:
shapesChanged
in classTLcdGML32AbstractGeometricAggregate
-
getShapeCount
public int getShapeCount()Description copied from interface:ILcdShapeList
Returns the number ofILcdShape
objects in the list.- Specified by:
getShapeCount
in interfaceILcdShapeList
- Overrides:
getShapeCount
in classTLcdGML32AbstractGeometricAggregate
- Returns:
- the number of
ILcdShape
objects in the list.
-
getShape
Description copied from interface:ILcdShapeList
Returns theILcdShape
at the given index.- Specified by:
getShape
in interfaceILcdShapeList
- Overrides:
getShape
in classTLcdGML32AbstractGeometricAggregate
- Parameters:
aIndex
- a valid index in the list ofILcdShape
objects.- Returns:
- the
ILcdShape
at the given index.
-
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
- Overrides:
contains2D
in classTLcdGML32AbstractGeometry
- Parameters:
aPoint
- theILcdPoint
to test.- 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
- Overrides:
contains3D
in classTLcdGML32AbstractGeometry
- 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
- Overrides:
contains3D
in classTLcdGML32AbstractGeometry
- 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.
-
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
- Overrides:
contains2D
in classTLcdGML32AbstractGeometry
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
getFocusPoint
Description copied from interface:ILcdShape
Returns the focus point of thisILcdShape
.- Specified by:
getFocusPoint
in interfaceILcdShape
- Overrides:
getFocusPoint
in classTLcdGML32AbstractGeometry
- Returns:
- the focus point of this
ILcdShape
.
-
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
-
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
- Overrides:
getBounds
in classTLcdGML32AbstractGeometry
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-
getGeometryMember
Returns the value of the property that maps to thegeometryMember
element.This property element either references a geometry element via the XLink-attributes or contains the geometry element.
- Returns:
- the value of the
GEOMETRY_MEMBER_PROPERTY
property. - See Also:
-
getGeometryMembers
Returns the role value contained in the value of theGEOMETRY_MEMBERS_PROPERTY
property. Returnsnull
if the value of theGEOMETRY_MEMBERS_PROPERTY
property isnull
.This property element contains a list of geometry elements. The order of the elements is significant and shall be preserved when processing the array.
- Returns:
- the role value of the
GEOMETRY_MEMBERS_PROPERTY
property. - See Also:
-
setGeometryMembers
Sets the value of the property that maps to thegeometryMembers
element. to a new instance of the association classTLcdGML32GeometryArrayProperty
initialized with the given role value. In case the given role value isnull
, theGEOMETRY_MEMBERS_PROPERTY
property is set tonull
.This property element contains a list of geometry elements. The order of the elements is significant and shall be preserved when processing the array.
- Parameters:
aValue
- the role value to set for theGEOMETRY_MEMBERS_PROPERTY
property.
-
getAggregationType
Returns the value of the property that maps to theaggregationType
attribute.- Returns:
- the value of the
AGGREGATION_TYPE_PROPERTY
property.
-
setAggregationType
Sets the value of the property that maps to theaggregationType
attribute.- Parameters:
aValue
- the value to set for theAGGREGATION_TYPE_PROPERTY
property.
-