This class should not be instantiated by users of LuciadRIA.
The number of polygons in this ComplexPolygon
The spatial reference of this shape. This property is read only. An Error will be thrown when trying to assign to this property.
Adds a polygon at the end of this complex polygon.
The polygon to add.
Adds a polygon at the specified index of this complex polygon.
the index at which to insert a polygon, must be between 0 and the number of polygons in this complex polygon. If the index is 0, the polygon is the outer ring which must enclose all other polygons. Is the index a higher number, the polygon is a hole.
The polygon to insert when the first parameter is an index.
Adds one or more polygons to this complex polygon.
the polygons to add
Removes all polygons from this complex polygon. This method will remove both the exterior ring as well as the inner rings.
Determines whether a given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The point for which containment must be checked. If a 3D point is passed to this function, it will be treated as a 2D point: the z coordinate (height) will be ignored. The reference of this point must be the same reference as this Shape
true
when the given point is contained in this shape
Determines whether the given point is inside this shape. This method checks containment only in two dimensions: on the (x,y)-axis or the (lon,lat)-axis (depending on the spatial reference of the shape).
The point for which containment must be checked.
true
when the given point is contained in this shape
Get a polygon from this ComplexPolygon
The polygon at the requested index, or undefined if the index is larger than polygonCount
Notifies this complex polygon that the given polygon (or the polygon at the specified index) has changed.
the polygon (or index of the polygon) that changed
Removes the polygon at the specified index from this complex polygon.
the index of the polygon that should be removed that should be removed itself
the removed polygon
Removes a specific polygon from this complex polygon.
the polygon that should be removed that should be removed itself
the removed polygon
Removes one or more polygons to this complex polygon.
the polygons to remove
Replaces the polygon at the given index with the specified polygon.
the index of the polygon to set. The index value must fall in the valid index range: 0 <= index < {number of polygons in the ComplexPolygon}
.
If this index equals 0
, than the polygon must be the outerring, enclosing all the holes.
If it is higher, than the polygon must be a hole.
the polygon to set
Translates all the polygons in this complex polygon over the given vector in 2D space.
x coordinate value
y coordinate value
A polygon that can have a number of holes. A complex polygon should be created using createComplexPolygon. A ComplexPolygon is defined as an array of Polygon instances. The first polygon - at index 0- specifies the outer ring. All the other polygons are the holes.