Class TLcdGML32PolygonPatch
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdEditableSurface,ILcdShape,ILcdSurface,ILcdCloneable,ILcdDeepCloneable,Serializable,Cloneable
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theexteriorelement.static final TLcdDataPropertyData property that maps to theinteriorelement.static final TLcdDataPropertyData property that maps to theinterpolationattribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()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 theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.Returns the role value contained in the value of theEXTERIOR_PROPERTYproperty.Returns the exterior boundary of this surface.Returns the focus point of thisILcdShape.Gets the value of theINTERIOR_PROPERTYproperty adapted to a list ofTLcdGML32AbstractRinginstances.Returns the holes in this surface, as a list ofILcdRinginstances.Returns the value of the property that maps to theinterpolationattribute.voidsetExterior(TLcdGML32AbstractRing aValue) Sets the value of the property that maps to theexteriorelement.voidsetExteriorRing(ILcdRing aExteriorRing) Sets the exterior boundary of this surface.voidSets the value of the property that maps to theinterpolationattribute.Methods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
-
Field Details
-
INTERPOLATION_ATTR_PROPERTY
Data property that maps to theinterpolationattribute. The possible values for this property are instances ofELcdGML32SurfaceInterpolation. -
EXTERIOR_PROPERTY
Data property that maps to theexteriorelement. The possible values for this property are instances ofTLcdGML32AbstractRingProperty. -
INTERIOR_PROPERTY
Data property that maps to theinteriorelement. The possible values for this property are instances ofList<TLcdGML32AbstractRingProperty>.
-
-
Constructor Details
-
TLcdGML32PolygonPatch
public TLcdGML32PolygonPatch() -
TLcdGML32PolygonPatch
-
-
Method Details
-
setExteriorRing
Description copied from interface:ILcdEditableSurfaceSets the exterior boundary of this surface.Note that this implementations may throw a
ClassCastExceptionorIllegalArgumentExceptionin case the class of the ring is not compatible with the implementation of the surface. Implementations should specify in their documentation all restrictions that apply in this context.- Specified by:
setExteriorRingin interfaceILcdEditableSurface- Parameters:
aExteriorRing- the exterior boundary of this surface.
-
getExteriorRing
Description copied from interface:ILcdSurfaceReturns the exterior boundary of this surface.- Specified by:
getExteriorRingin interfaceILcdSurface- Returns:
- the exterior boundary of this surface.
-
getInteriorRings
Description copied from interface:ILcdEditableSurfaceReturns the holes in this surface, as a list ofILcdRinginstances. If there are no holes, an empty list is returned.The returned list is editable and can be used to add, remove or replace interior rings.
- Specified by:
getInteriorRingsin interfaceILcdEditableSurface- Specified by:
getInteriorRingsin interfaceILcdSurface- Returns:
- an editable list containing zero or more rings, representing the holes in this surface.
-
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 classTLcdGML32AbstractSurfacePatch- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
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 classTLcdGML32AbstractSurfacePatch- 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
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 classTLcdGML32AbstractSurfacePatch- 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 classTLcdGML32AbstractSurfacePatch- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Overrides:
getFocusPointin classTLcdGML32AbstractSurfacePatch- Returns:
- the focus point of this
ILcdShape.
-
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 classTLcdGML32AbstractSurfacePatch- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
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
-
getInterpolationAttr
Returns the value of the property that maps to theinterpolationattribute.- Returns:
- the value of the
INTERPOLATION_ATTR_PROPERTYproperty.
-
setInterpolationAttr
Sets the value of the property that maps to theinterpolationattribute.- Parameters:
aValue- the value to set for theINTERPOLATION_ATTR_PROPERTYproperty.
-
getExterior
Returns the role value contained in the value of theEXTERIOR_PROPERTYproperty. Returnsnullif the value of theEXTERIOR_PROPERTYproperty isnull.A boundary of a surface consists of a number of rings. In the normal 2D case, one of these rings is distinguished as being the exterior boundary. In a general manifold this is not always possible, in which case all boundaries shall be listed as interior boundaries, and the exterior will be empty.
- Returns:
- the role value of the
EXTERIOR_PROPERTYproperty. - See Also:
-
setExterior
Sets the value of the property that maps to theexteriorelement. to a new instance of the association classTLcdGML32AbstractRingPropertyinitialized with the given role value. In case the given role value isnull, theEXTERIOR_PROPERTYproperty is set tonull.A boundary of a surface consists of a number of rings. In the normal 2D case, one of these rings is distinguished as being the exterior boundary. In a general manifold this is not always possible, in which case all boundaries shall be listed as interior boundaries, and the exterior will be empty.
- Parameters:
aValue- the role value to set for theEXTERIOR_PROPERTYproperty.
-
getInterior
Gets the value of theINTERIOR_PROPERTYproperty adapted to a list ofTLcdGML32AbstractRinginstances.A boundary of a surface consists of a number of rings. The "interior" rings separate the surface / surface patch from the area enclosed by the rings.
- Returns:
- the value of the
INTERIOR_PROPERTYproperty adapted to a list ofTLcdGML32AbstractRinginstances. - See Also:
-