public class PolygonGeometry extends Geometry
swigCMemOwn
Constructor and Description |
---|
PolygonGeometry(long cPtr,
boolean cMemoryOwn) |
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.
It is assumed the the first ring is outer ring and all other rings are inner rings. |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
MapPos |
getCenterPos()
Returns the center point of the geometry.
|
static long |
getCPtr(PolygonGeometry obj) |
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.
|
static PolygonGeometry |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
public PolygonGeometry(long cPtr, boolean cMemoryOwn)
public PolygonGeometry(MapPosVector poses)
poses
- The list of map positions defining the outer ring.public PolygonGeometry(MapPosVector poses, MapPosVectorVector holes)
poses
- The list of map positions defining the outer ring.holes
- The list of map position lists defining the inner rings.public PolygonGeometry(MapPosVectorVector rings)
rings
- The list of map position lists defining the ringspublic static long getCPtr(PolygonGeometry obj)
public static PolygonGeometry swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public MapPos getCenterPos()
Geometry
getCenterPos
in class Geometry
public MapPosVector getPoses()
public MapPosVectorVector getHoles()
public MapPosVectorVector getRings()
public java.lang.String swigGetClassName()
swigGetClassName
in class Geometry
public java.lang.Object swigGetDirectorObject()
swigGetDirectorObject
in class Geometry