Package com.luciad.shape
Interface ILcdComplexPolygon
- All Superinterfaces:
Cloneable,ILcdBounded,ILcdCloneable,ILcdPointList,ILcdShape,Serializable
- All Known Subinterfaces:
ILcdEditableComplexPolygon
- All Known Implementing Classes:
TLcdComplexPolygon,TLcdGML2Polygon,TLcdS57Area
An ILcdComplexPolygon is an ILcdShape that is
described by a list of ILcdPolygon objects. Each ILcdPolygon
object defines an edge of the complex polygon. The resulting shape is a set
of one or more polygons each containing one or more holes.
The image below shows a single complex polygon composed of 5 polygons:
The list can only be read using this interface, not modified. See also
ILcdEditableComplexPolygon.
-
Method Summary
Modifier and TypeMethodDescriptiongetPolygon(int aIndex) Returns theILcdPolygonat the given index.intReturns the number ofILcdPolygonobjects in the list.default List<ILcdPolygon> Returns aListof the polygons.Methods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdPointList
getPoint, getPointCount, getPointSFCT, getX, getY, getZMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Method Details
-
getPolygons
Returns aListof the polygons.- Returns:
- an unmodifiable
Listof the polygons in thisILcdComplexPolygon - Since:
- 2024.1
-
getPolygonCount
int getPolygonCount()Returns the number ofILcdPolygonobjects in the list.- Returns:
- the number of
ILcdPolygonobjects in the list.
-
getPolygon
Returns theILcdPolygonat the given index.- Parameters:
aIndex- a valid index in the list ofILcdPolygonobjects.- Returns:
- the
ILcdPolygonat the given index. - Throws:
IndexOutOfBoundsException- when the index is not valid.
-