public class TLcdGML2GeometryCollection extends TLcdGML2AbstractGeometryCollectionBase implements ILcdShapeList, ILcdInvalidateable
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
GEOMETRY_MEMBER_PROPERTY
Data property that maps to the
geometryMember element. |
GID_PROPERTY, SRS_PROPERTY
Constructor and Description |
---|
TLcdGML2GeometryCollection() |
TLcdGML2GeometryCollection(TLcdDataType aType) |
Modifier and Type | Method and Description |
---|---|
void |
addShape(ILcdShape aShape) |
void |
addShape(int aIndex,
ILcdShape aShape) |
void |
addShapes(ILcdShape[] aShapes) |
void |
clearShapes() |
TLcdGML2GeometryCollection |
clone()
Returns a deep clone of this object.
|
TLcdDataObject |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
boolean |
contains2D(double aX,
double aY)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double aX,
double aY,
double aZ)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
protected ILcdEditableShapeList |
createDelegateShape() |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
List<TLcdGML2GeometryAssociation> |
getGeometryMember()
Returns the value of the property that maps to the
geometryMember element. |
ILcdShape |
getShape(int aIndex)
Returns the
ILcdShape at the given index. |
int |
getShapeCount()
Returns the number of
ILcdShape objects in the list. |
void |
invalidateObject()
Invalidates all cached values of this object.
|
boolean |
removeShape(ILcdShape aShape) |
ILcdShape |
removeShape(int aIndex) |
void |
removeShapes(ILcdShape[] aShapes) |
ILcdShape |
setShape(int aIndex,
ILcdShape aShape) |
void |
setShapes(ILcdShape[] aShapes) |
void |
shapeChanged(ILcdShape aShape) |
void |
shapeChanged(int aIndex) |
void |
shapesChanged() |
getGid, getSrs, setGid, setSrs
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeature
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
public static final TLcdDataProperty GEOMETRY_MEMBER_PROPERTY
geometryMember
element.
The possible values for this property are instances of List<TLcdGML2GeometryAssociation>
.public TLcdGML2GeometryCollection()
public TLcdGML2GeometryCollection(TLcdDataType aType)
public void addShape(int aIndex, ILcdShape aShape)
public void addShape(ILcdShape aShape)
public void addShapes(ILcdShape[] aShapes)
public void clearShapes()
public ILcdShape removeShape(int aIndex)
public boolean removeShape(ILcdShape aShape)
public void removeShapes(ILcdShape[] aShapes)
public void setShapes(ILcdShape[] aShapes)
public void shapeChanged(int aIndex)
public void shapeChanged(ILcdShape aShape)
public void shapesChanged()
public int getShapeCount()
ILcdShapeList
ILcdShape
objects in the list.getShapeCount
in interface ILcdShapeList
ILcdShape
objects in the list.public ILcdShape getShape(int aIndex)
ILcdShapeList
ILcdShape
at the given index.getShape
in interface ILcdShapeList
aIndex
- a valid index in the list of ILcdShape
objects.ILcdShape
at the given index.public boolean contains2D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
contains2D
in class TLcdGML2AbstractGeometry
aPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains3D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
contains3D
in class TLcdGML2AbstractGeometry
aPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains3D(double aX, double aY, double aZ)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
contains3D
in class TLcdGML2AbstractGeometry
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.public boolean contains2D(double aX, double aY)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
contains2D
in class TLcdGML2AbstractGeometry
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
getFocusPoint
in class TLcdGML2AbstractGeometry
ILcdShape
.public TLcdGML2GeometryCollection clone()
TLcdDataObject
TLcdDataObject.clone(Map)
.clone
in interface ILcdCloneable
clone
in class TLcdDataObject
Object.clone()
public TLcdDataObject clone(Map aObjectDictionary)
TLcdDataObject
ILcdDataObject
, the value is cloned by first creating a new instance via
the value.getDataType().newInstance()
method, and then cloning its properties one by one.ILcdDeepCloneable
or
ILcdCloneable
then this interface is used to clone the value.clone
in interface ILcdDeepCloneable
clone
in class TLcdDataObject
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
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
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
getBounds
in class TLcdGML2AbstractGeometry
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.protected ILcdEditableShapeList createDelegateShape()
public void invalidateObject()
ILcdInvalidateable
invalidateObject
in interface ILcdInvalidateable
public List<TLcdGML2GeometryAssociation> getGeometryMember()
geometryMember
element.GEOMETRY_MEMBER_PROPERTY
property.