public class TLcdGML32MultiSurface extends TLcdGML32AbstractGeometricAggregate implements ILcdEditableShapeList
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
AGGREGATION_TYPE_PROPERTY
Data property that maps to the
aggregationType attribute. |
static TLcdDataProperty |
SURFACE_MEMBER_PROPERTY
Data property that maps to the
surfaceMember element. |
static TLcdDataProperty |
SURFACE_MEMBERS_PROPERTY
Data property that maps to the
surfaceMembers element. |
SRS_PROPERTY
DESCRIPTION_PROPERTY, DESCRIPTION_REFERENCE_PROPERTY, ID_PROPERTY, IDENTIFIER_PROPERTY, META_DATA_PROPERTY_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
TLcdGML32MultiSurface() |
TLcdGML32MultiSurface(ILcdModelReference aSrs)
Constructs a multi surface and initializes its
model reference (srs).
|
TLcdGML32MultiSurface(TLcdDataType aType) |
TLcdGML32MultiSurface(TLcdDataType aDataType,
ILcdModelReference aSrs)
Constructs a multi surface and initializes its
model reference (srs).
|
Modifier and Type | Method and Description |
---|---|
void |
addShape(ILcdShape aShape)
Appends the specified shape to the end of this
ILcdShapeList . |
void |
addShape(int aIndex,
ILcdShape aShape)
Inserts the specified shape at the specified position in this
ILcdShapeList . |
void |
addShapes(ILcdShape[] aShapes)
Appends the specified array of shapes to the end of this
ILcdShapeList . |
void |
clearShapes()
Removes all of the shapes from this
ILcdShapeList . |
TLcdGML32MultiSurface |
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. |
ELcdGML32Aggregation |
getAggregationType()
Returns the value of the property that maps to the
aggregationType attribute. |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
ILcdShape |
getShape(int aIndex)
Returns the
ILcdShape at the given index. |
int |
getShapeCount()
Returns the number of
ILcdShape objects in the list. |
List<TLcdGML32AbstractSurface> |
getSurfaceMember()
Returns the value of the property that maps to the
surfaceMember element. |
List<TLcdGML32AbstractSurface> |
getSurfaceMembers()
Returns the role value contained in the value of the
SURFACE_MEMBERS_PROPERTY property. |
boolean |
removeShape(ILcdShape aShape)
Removes the first occurrence of the specified shape in this
ILcdShapeList . |
ILcdShape |
removeShape(int aIndex)
Removes the shape at the specified position in this
ILcdShapeList . |
void |
removeShapes(ILcdShape[] aShapes)
Removes all shapes from this
ILcdShapeList that are contained in the specified
array of shapes. |
void |
setAggregationType(ELcdGML32Aggregation aValue)
Sets the value of the property that maps to the
aggregationType attribute. |
ILcdShape |
setShape(int aIndex,
ILcdShape aShape)
Replaces the shape at the specified position in this
ILcdShapeList with the
specified shape. |
void |
setShapes(ILcdShape[] aShapes)
Replace the list of shapes contained in this
ILcdShapeList with the specified
array of shapes. |
void |
setSurfaceMembers(List<TLcdGML32AbstractSurface> aValue)
Sets the value of the property that maps to the
surfaceMembers element. |
void |
shapeChanged(ILcdShape aShape)
Notifies this
ILcdShapeList that the specified shape has changed. |
void |
shapeChanged(int aIndex)
Notifies this
ILcdShapeList that the shape at the specified position has changed. |
void |
shapesChanged()
Notifies this
ILcdShapeList that some (possibly all) of its shapes have changed. |
invalidateObject
getSrs, setSrs, toString
getDescription, getDescriptionReference, getId, getIdentifier, getMetaDataProperty, getName, setDescription, setDescriptionReference, setId, setIdentifier
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public static final TLcdDataProperty SURFACE_MEMBER_PROPERTY
surfaceMember
element.
The possible values for this property are instances of List<TLcdGML32SurfaceProperty>
.public static final TLcdDataProperty SURFACE_MEMBERS_PROPERTY
surfaceMembers
element.
The possible values for this property are instances of TLcdGML32SurfaceArrayProperty
.public static final TLcdDataProperty AGGREGATION_TYPE_PROPERTY
aggregationType
attribute.
The possible values for this property are instances of ELcdGML32Aggregation
.public TLcdGML32MultiSurface()
public TLcdGML32MultiSurface(TLcdDataType aType)
public TLcdGML32MultiSurface(ILcdModelReference aSrs)
aSrs
- the model reference for this objectTLcdGML32AbstractGeometry.setSrs(ILcdModelReference)
public TLcdGML32MultiSurface(TLcdDataType aDataType, ILcdModelReference aSrs)
aDataType
- the data type for this objectaSrs
- the model reference for this objectTLcdGML32AbstractGeometry.setSrs(ILcdModelReference)
public void addShape(int aIndex, ILcdShape aShape)
ILcdEditableShapeList
ILcdShapeList
.addShape
in interface ILcdEditableShapeList
addShape
in class TLcdGML32AbstractGeometricAggregate
aIndex
- the index at which the shape is to be inserted.aShape
- the shape to be inserted.public void addShape(ILcdShape aShape)
ILcdEditableShapeList
ILcdShapeList
.addShape
in interface ILcdEditableShapeList
addShape
in class TLcdGML32AbstractGeometricAggregate
aShape
- the shape to be appended to this ILcdShapeList
.public void addShapes(ILcdShape[] aShapes)
ILcdEditableShapeList
ILcdShapeList
.addShapes
in interface ILcdEditableShapeList
addShapes
in class TLcdGML32AbstractGeometricAggregate
aShapes
- the array of shapes to be appended to this ILcdShapeList
.public void clearShapes()
ILcdEditableShapeList
ILcdShapeList
.clearShapes
in interface ILcdEditableShapeList
clearShapes
in class TLcdGML32AbstractGeometricAggregate
public ILcdShape removeShape(int aIndex)
ILcdEditableShapeList
ILcdShapeList
. Shifts any
subsequent shapes to the left. Returns the shape that was removed from this
ILcdShapeList
.removeShape
in interface ILcdEditableShapeList
removeShape
in class TLcdGML32AbstractGeometricAggregate
aIndex
- the index of the shape to removed.public boolean removeShape(ILcdShape aShape)
ILcdEditableShapeList
ILcdShapeList
. If this
ILcdShapeList
does not contain the shape, it is unchanged.removeShape
in interface ILcdEditableShapeList
removeShape
in class TLcdGML32AbstractGeometricAggregate
aShape
- the shape to be removed, if present.true
if this ILcdShapeList
contained the specified element.public void removeShapes(ILcdShape[] aShapes)
ILcdEditableShapeList
ILcdShapeList
that are contained in the specified
array of shapes.removeShapes
in interface ILcdEditableShapeList
removeShapes
in class TLcdGML32AbstractGeometricAggregate
aShapes
- the array of shapes to be removed from this ILcdShapeList
.public ILcdShape setShape(int aIndex, ILcdShape aShape)
ILcdEditableShapeList
ILcdShapeList
with the
specified shape.setShape
in interface ILcdEditableShapeList
setShape
in class TLcdGML32AbstractGeometricAggregate
aIndex
- index of shape to replace.aShape
- the shape to be stored at the specified position.public void setShapes(ILcdShape[] aShapes)
ILcdEditableShapeList
ILcdShapeList
with the specified
array of shapes.setShapes
in interface ILcdEditableShapeList
setShapes
in class TLcdGML32AbstractGeometricAggregate
aShapes
- the array of shapes to be stored in this ILcdShapeList
.public void shapeChanged(int aIndex)
ILcdEditableShapeList
ILcdShapeList
that the shape at the specified position has changed.shapeChanged
in interface ILcdEditableShapeList
shapeChanged
in class TLcdGML32AbstractGeometricAggregate
aIndex
- the index of the shape that has changed.public void shapeChanged(ILcdShape aShape)
ILcdEditableShapeList
ILcdShapeList
that the specified shape has changed.shapeChanged
in interface ILcdEditableShapeList
shapeChanged
in class TLcdGML32AbstractGeometricAggregate
aShape
- the shape that has changed.public void shapesChanged()
ILcdEditableShapeList
ILcdShapeList
that some (possibly all) of its shapes have changed.shapesChanged
in interface ILcdEditableShapeList
shapesChanged
in class TLcdGML32AbstractGeometricAggregate
public int getShapeCount()
ILcdShapeList
ILcdShape
objects in the list.getShapeCount
in interface ILcdShapeList
getShapeCount
in class TLcdGML32AbstractGeometricAggregate
ILcdShape
objects in the list.public ILcdShape getShape(int aIndex)
ILcdShapeList
ILcdShape
at the given index.getShape
in interface ILcdShapeList
getShape
in class TLcdGML32AbstractGeometricAggregate
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 TLcdGML32AbstractGeometry
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 TLcdGML32AbstractGeometry
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 TLcdGML32AbstractGeometry
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 TLcdGML32AbstractGeometry
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 TLcdGML32AbstractGeometry
ILcdShape
.public TLcdGML32MultiSurface 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 TLcdGML32AbstractGeometry
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public List<TLcdGML32AbstractSurface> getSurfaceMember()
surfaceMember
element.
This property element either references a surface via the XLink-attributes or contains the surface element. A surface element is any element, which is substitutable for gml:AbstractSurface.
SURFACE_MEMBER_PROPERTY
property.List
public List<TLcdGML32AbstractSurface> getSurfaceMembers()
SURFACE_MEMBERS_PROPERTY
property. Returns null
if the value of the SURFACE_MEMBERS_PROPERTY
property is null
.
This property element contains a list of surfaces. The order of the elements is significant and shall be preserved when processing the array.
SURFACE_MEMBERS_PROPERTY
property.TLcdGML32SurfaceArrayProperty
public void setSurfaceMembers(List<TLcdGML32AbstractSurface> aValue)
surfaceMembers
element. to a new instance of the association class TLcdGML32SurfaceArrayProperty
initialized with the given role value. In case the given role value is null
, the SURFACE_MEMBERS_PROPERTY
property is set to null
.
This property element contains a list of surfaces. The order of the elements is significant and shall be preserved when processing the array.
aValue
- the role value to set for the SURFACE_MEMBERS_PROPERTY
property.public ELcdGML32Aggregation getAggregationType()
aggregationType
attribute.AGGREGATION_TYPE_PROPERTY
property.public void setAggregationType(ELcdGML32Aggregation aValue)
aggregationType
attribute.aValue
- the value to set for the AGGREGATION_TYPE_PROPERTY
property.