Class TLcdGML32MultiSurface
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdEditableShapeList,ILcdShape,ILcdShapeList,ILcdCloneable,ILcdDeepCloneable,ILcdInvalidateable,Serializable,Cloneable
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theaggregationTypeattribute.static final TLcdDataPropertyData property that maps to thesurfaceMemberelement.static final TLcdDataPropertyData property that maps to thesurfaceMemberselement.Fields inherited from class com.luciad.format.gml32.model.TLcdGML32AbstractGeometry
SRS_PROPERTYFields 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
ConstructorsConstructorDescriptionTLcdGML32MultiSurface(TLcdDataType aDataType, ILcdModelReference aSrs) Constructs a multi surface and initializes its model reference (srs).Constructs a multi surface and initializes its model reference (srs). -
Method Summary
Modifier and TypeMethodDescriptionvoidInserts the specified shape at the specified position in thisILcdShapeList.voidAppends the specified shape to the end of thisILcdShapeList.voidAppends the specified array of shapes to the end of thisILcdShapeList.voidRemoves all of the shapes from thisILcdShapeList.clone()Returns a deep clone of this object.Returns a deep clone of this object.booleancontains2D(double aX, double aY) Checks whether thisILcdShapecontains the given point 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(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Returns the value of the property that maps to theaggregationTypeattribute.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.Returns the focus point of thisILcdShape.getShape(int aIndex) Returns theILcdShapeat the given index.intReturns the number ofILcdShapeobjects in the list.Returns the value of the property that maps to thesurfaceMemberelement.Returns the role value contained in the value of theSURFACE_MEMBERS_PROPERTYproperty.removeShape(int aIndex) Removes the shape at the specified position in thisILcdShapeList.booleanremoveShape(ILcdShape aShape) Removes the first occurrence of the specified shape in thisILcdShapeList.voidremoveShapes(ILcdShape[] aShapes) Removes all shapes from thisILcdShapeListthat are contained in the specified array of shapes.voidSets the value of the property that maps to theaggregationTypeattribute.Replaces the shape at the specified position in thisILcdShapeListwith the specified shape.voidReplace the list of shapes contained in thisILcdShapeListwith the specified array of shapes.voidSets the value of the property that maps to thesurfaceMemberselement.voidshapeChanged(int aIndex) Notifies thisILcdShapeListthat the shape at the specified position has changed.voidshapeChanged(ILcdShape aShape) Notifies thisILcdShapeListthat the specified shape has changed.voidNotifies thisILcdShapeListthat some (possibly all) of its shapes have changed.Methods inherited from class com.luciad.format.gml32.model.TLcdGML32AbstractGeometricAggregate
invalidateObjectMethods inherited from class com.luciad.format.gml32.model.TLcdGML32AbstractGeometry
getSrs, setSrs, toStringMethods inherited from class com.luciad.format.gml32.model.TLcdGML32AbstractGML
getDescription, getDescriptionReference, getId, getIdentifier, getMetaDataProperty, getName, setDescription, setDescriptionReference, setId, setIdentifierMethods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
Field Details
-
SURFACE_MEMBER_PROPERTY
Data property that maps to thesurfaceMemberelement. The possible values for this property are instances ofList<TLcdGML32SurfaceProperty>. -
SURFACE_MEMBERS_PROPERTY
Data property that maps to thesurfaceMemberselement. The possible values for this property are instances ofTLcdGML32SurfaceArrayProperty. -
AGGREGATION_TYPE_PROPERTY
Data property that maps to theaggregationTypeattribute. The possible values for this property are instances ofELcdGML32Aggregation.
-
-
Constructor Details
-
TLcdGML32MultiSurface
public TLcdGML32MultiSurface() -
TLcdGML32MultiSurface
-
TLcdGML32MultiSurface
Constructs a multi surface and initializes its model reference (srs).- Parameters:
aSrs- the model reference for this object- See Also:
-
TLcdGML32MultiSurface
Constructs a multi surface 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:ILcdEditableShapeListInserts the specified shape at the specified position in thisILcdShapeList.- Specified by:
addShapein interfaceILcdEditableShapeList- Overrides:
addShapein classTLcdGML32AbstractGeometricAggregate- Parameters:
aIndex- the index at which the shape is to be inserted.aShape- the shape to be inserted.
-
addShape
Description copied from interface:ILcdEditableShapeListAppends the specified shape to the end of thisILcdShapeList.- Specified by:
addShapein interfaceILcdEditableShapeList- Overrides:
addShapein classTLcdGML32AbstractGeometricAggregate- Parameters:
aShape- the shape to be appended to thisILcdShapeList.
-
addShapes
Description copied from interface:ILcdEditableShapeListAppends the specified array of shapes to the end of thisILcdShapeList.- Specified by:
addShapesin interfaceILcdEditableShapeList- Overrides:
addShapesin classTLcdGML32AbstractGeometricAggregate- Parameters:
aShapes- the array of shapes to be appended to thisILcdShapeList.
-
clearShapes
public void clearShapes()Description copied from interface:ILcdEditableShapeListRemoves all of the shapes from thisILcdShapeList.- Specified by:
clearShapesin interfaceILcdEditableShapeList- Overrides:
clearShapesin classTLcdGML32AbstractGeometricAggregate
-
removeShape
Description copied from interface:ILcdEditableShapeListRemoves 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:
removeShapein interfaceILcdEditableShapeList- Overrides:
removeShapein classTLcdGML32AbstractGeometricAggregate- Parameters:
aIndex- the index of the shape to removed.- Returns:
- the shape previously at the specified position.
-
removeShape
Description copied from interface:ILcdEditableShapeListRemoves the first occurrence of the specified shape in thisILcdShapeList. If thisILcdShapeListdoes not contain the shape, it is unchanged.- Specified by:
removeShapein interfaceILcdEditableShapeList- Overrides:
removeShapein classTLcdGML32AbstractGeometricAggregate- Parameters:
aShape- the shape to be removed, if present.- Returns:
trueif thisILcdShapeListcontained the specified element.
-
removeShapes
Description copied from interface:ILcdEditableShapeListRemoves all shapes from thisILcdShapeListthat are contained in the specified array of shapes.- Specified by:
removeShapesin interfaceILcdEditableShapeList- Overrides:
removeShapesin classTLcdGML32AbstractGeometricAggregate- Parameters:
aShapes- the array of shapes to be removed from thisILcdShapeList.
-
setShape
Description copied from interface:ILcdEditableShapeListReplaces the shape at the specified position in thisILcdShapeListwith the specified shape.- Specified by:
setShapein interfaceILcdEditableShapeList- Overrides:
setShapein 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:ILcdEditableShapeListReplace the list of shapes contained in thisILcdShapeListwith the specified array of shapes.- Specified by:
setShapesin interfaceILcdEditableShapeList- Overrides:
setShapesin classTLcdGML32AbstractGeometricAggregate- Parameters:
aShapes- the array of shapes to be stored in thisILcdShapeList.
-
shapeChanged
public void shapeChanged(int aIndex) Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat the shape at the specified position has changed.- Specified by:
shapeChangedin interfaceILcdEditableShapeList- Overrides:
shapeChangedin classTLcdGML32AbstractGeometricAggregate- Parameters:
aIndex- the index of the shape that has changed.
-
shapeChanged
Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat the specified shape has changed.- Specified by:
shapeChangedin interfaceILcdEditableShapeList- Overrides:
shapeChangedin classTLcdGML32AbstractGeometricAggregate- Parameters:
aShape- the shape that has changed.
-
shapesChanged
public void shapesChanged()Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat some (possibly all) of its shapes have changed.- Specified by:
shapesChangedin interfaceILcdEditableShapeList- Overrides:
shapesChangedin classTLcdGML32AbstractGeometricAggregate
-
getShapeCount
public int getShapeCount()Description copied from interface:ILcdShapeListReturns the number ofILcdShapeobjects in the list.- Specified by:
getShapeCountin interfaceILcdShapeList- Overrides:
getShapeCountin classTLcdGML32AbstractGeometricAggregate- Returns:
- the number of
ILcdShapeobjects in the list.
-
getShape
Description copied from interface:ILcdShapeListReturns theILcdShapeat the given index.- Specified by:
getShapein interfaceILcdShapeList- Overrides:
getShapein classTLcdGML32AbstractGeometricAggregate- Parameters:
aIndex- a valid index in the list ofILcdShapeobjects.- Returns:
- the
ILcdShapeat the given index.
-
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- Overrides:
contains2Din classTLcdGML32AbstractGeometry- Parameters:
aPoint- theILcdPointto test.- 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- Overrides:
contains3Din classTLcdGML32AbstractGeometry- 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- Overrides:
contains3Din 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:ILcdShapeChecks whether thisILcdShapecontains the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered.- Specified by:
contains2Din interfaceILcdShape- Overrides:
contains2Din 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:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Overrides:
getFocusPointin classTLcdGML32AbstractGeometry- Returns:
- the focus point of this
ILcdShape.
-
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
-
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- Overrides:
getBoundsin classTLcdGML32AbstractGeometry- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
getSurfaceMember
Returns the value of the property that maps to thesurfaceMemberelement.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.
- Returns:
- the value of the
SURFACE_MEMBER_PROPERTYproperty. - See Also:
-
getSurfaceMembers
Returns the role value contained in the value of theSURFACE_MEMBERS_PROPERTYproperty. Returnsnullif the value of theSURFACE_MEMBERS_PROPERTYproperty isnull.This property element contains a list of surfaces. The order of the elements is significant and shall be preserved when processing the array.
- Returns:
- the role value of the
SURFACE_MEMBERS_PROPERTYproperty. - See Also:
-
setSurfaceMembers
Sets the value of the property that maps to thesurfaceMemberselement. to a new instance of the association classTLcdGML32SurfaceArrayPropertyinitialized with the given role value. In case the given role value isnull, theSURFACE_MEMBERS_PROPERTYproperty is set tonull.This property element contains a list of surfaces. The order of the elements is significant and shall be preserved when processing the array.
- Parameters:
aValue- the role value to set for theSURFACE_MEMBERS_PROPERTYproperty.
-
getAggregationType
Returns the value of the property that maps to theaggregationTypeattribute.- Returns:
- the value of the
AGGREGATION_TYPE_PROPERTYproperty.
-
setAggregationType
Sets the value of the property that maps to theaggregationTypeattribute.- Parameters:
aValue- the value to set for theAGGREGATION_TYPE_PROPERTYproperty.
-