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 theILcdPolygon
at the given index.int
Returns the number ofILcdPolygon
objects in the list.Methods inherited from interface com.luciad.shape.ILcdBounded
getBounds
Methods inherited from interface com.luciad.util.ILcdCloneable
clone
Methods inherited from interface com.luciad.shape.ILcdPointList
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
Methods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Method Details
-
getPolygonCount
int getPolygonCount()Returns the number ofILcdPolygon
objects in the list.- Returns:
- the number of
ILcdPolygon
objects in the list.
-
getPolygon
Returns theILcdPolygon
at the given index.- Parameters:
aIndex
- a valid index in the list ofILcdPolygon
objects.- Returns:
- the
ILcdPolygon
at the given index. - Throws:
IndexOutOfBoundsException
- when the index is not valid.
-