java.lang.Object | ||
↳ | com.carto.geometry.Geometry | |
↳ | com.carto.geometry.PolygonGeometry |
Polygon geometry defined by an outer ring and optional multiple inner rings (holes).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PolygonGeometry(MapPosVector poses)
Constructs a PolygonGeometry objects from an outer ring.
| |||||||||||
PolygonGeometry(MapPosVector poses, MapPosVectorVector holes)
Constructs a PolygonGeometry objects from an outer ring and list of inner rings (holes).
| |||||||||||
PolygonGeometry(MapPosVectorVector rings)
Constructs a PolygonGeometry objects from a list of rings.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
MapPos |
getCenterPos()
Returns the center point of the geometry.
| ||||||||||
MapPosVectorVector |
getHoles()
Returns the list of map position lists defining the inner rings of the polygon (holes).
| ||||||||||
MapPosVector |
getPoses()
Returns the list of map positions defining the outer ring of the polygon.
| ||||||||||
MapPosVectorVector |
getRings()
Returns the list of map position lists defining the rings of the polygon.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a PolygonGeometry objects from an outer ring.
poses | The list of map positions defining the outer ring. |
---|
Constructs a PolygonGeometry objects from an outer ring and list of inner rings (holes).
poses | The list of map positions defining the outer ring. |
---|---|
holes | The list of map position lists defining the inner rings. |
Constructs a PolygonGeometry objects from a list of rings.
It is assumed the the first ring is outer ring and all other rings are inner rings.
rings | The list of map position lists defining the rings |
---|
Returns the center point of the geometry.
Returns the list of map position lists defining the inner rings of the polygon (holes).
Returns the list of map positions defining the outer ring of the polygon.
Returns the list of map position lists defining the rings of the polygon.