public class GeoPolygonFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GeoPolygonFactory.PolygonDescription
Use this class to specify a polygon with associated holes.
|
Modifier and Type | Method and Description |
---|---|
static GeoPolygon |
makeGeoConcavePolygon(PlanetModel planetModel,
List<GeoPoint> pointList)
Create a GeoConcavePolygon using the specified points.
|
static GeoPolygon |
makeGeoConcavePolygon(PlanetModel planetModel,
List<GeoPoint> pointList,
List<GeoPolygon> holes)
Create a GeoConcavePolygon using the specified points and holes.
|
static GeoPolygon |
makeGeoConvexPolygon(PlanetModel planetModel,
List<GeoPoint> pointList)
Create a GeoConvexPolygon using the specified points.
|
static GeoPolygon |
makeGeoConvexPolygon(PlanetModel planetModel,
List<GeoPoint> pointList,
List<GeoPolygon> holes)
Create a GeoConvexPolygon using the specified points and holes.
|
static GeoPolygon |
makeGeoPolygon(PlanetModel planetModel,
GeoPolygonFactory.PolygonDescription description)
Create a GeoPolygon using the specified points and holes, using order to determine
siding of the polygon.
|
static GeoPolygon |
makeGeoPolygon(PlanetModel planetModel,
GeoPolygonFactory.PolygonDescription description,
double leniencyValue)
Create a GeoPolygon using the specified points and holes, using order to determine
siding of the polygon.
|
static GeoPolygon |
makeGeoPolygon(PlanetModel planetModel,
List<GeoPoint> pointList)
Create a GeoPolygon using the specified points and holes, using order to determine
siding of the polygon.
|
static GeoPolygon |
makeGeoPolygon(PlanetModel planetModel,
List<GeoPoint> pointList,
List<GeoPolygon> holes)
Create a GeoPolygon using the specified points and holes, using order to determine
siding of the polygon.
|
static GeoPolygon |
makeGeoPolygon(PlanetModel planetModel,
List<GeoPoint> pointList,
List<GeoPolygon> holes,
double leniencyValue)
Create a GeoPolygon using the specified points and holes, using order to determine
siding of the polygon.
|
static GeoPolygon |
makeLargeGeoPolygon(PlanetModel planetModel,
List<GeoPolygonFactory.PolygonDescription> shapesList)
Create a large GeoPolygon.
|
public static GeoPolygon makeGeoConcavePolygon(PlanetModel planetModel, List<GeoPoint> pointList)
makeGeoPolygon(PlanetModel, List)
.pointList
- is a list of the GeoPoints to build an arbitrary polygon out of.public static GeoPolygon makeGeoConvexPolygon(PlanetModel planetModel, List<GeoPoint> pointList)
makeGeoPolygon(PlanetModel, List)
.pointList
- is a list of the GeoPoints to build an arbitrary polygon out of.public static GeoPolygon makeGeoConcavePolygon(PlanetModel planetModel, List<GeoPoint> pointList, List<GeoPolygon> holes)
makeGeoPolygon(PlanetModel, List, List)
.pointList
- is a list of the GeoPoints to build an arbitrary polygon out of.holes
- is a list of polygons representing "holes" in the outside polygon. Holes describe the area outside
each hole as being "in set". Null == none.public static GeoPolygon makeGeoConvexPolygon(PlanetModel planetModel, List<GeoPoint> pointList, List<GeoPolygon> holes)
makeGeoPolygon(PlanetModel, List, List)
.pointList
- is a list of the GeoPoints to build an arbitrary polygon out of.holes
- is a list of polygons representing "holes" in the outside polygon. Holes describe the area outside
each hole as being "in set". Null == none.public static GeoPolygon makeGeoPolygon(PlanetModel planetModel, GeoPolygonFactory.PolygonDescription description)
description
- describes the polygon and its associated holes. If points go
clockwise from a given pole, then that pole should be within the polygon. If points go
counter-clockwise, then that pole should be outside the polygon.public static GeoPolygon makeGeoPolygon(PlanetModel planetModel, GeoPolygonFactory.PolygonDescription description, double leniencyValue)
description
- describes the polygon and its associated holes. If points go
clockwise from a given pole, then that pole should be within the polygon. If points go
counter-clockwise, then that pole should be outside the polygon.leniencyValue
- is the maximum distance (in units) that a point can be from the plane and still be considered as
belonging to the plane. Any value greater than zero may cause some of the provided points that are in fact outside
the strict definition of co-planarity, but are within this distance, to be discarded for the purposes of creating a
"safe" polygon.public static GeoPolygon makeGeoPolygon(PlanetModel planetModel, List<GeoPoint> pointList)
pointList
- is a list of the GeoPoints to build an arbitrary polygon out of. If points go
clockwise from a given pole, then that pole should be within the polygon. If points go
counter-clockwise, then that pole should be outside the polygon.public static GeoPolygon makeGeoPolygon(PlanetModel planetModel, List<GeoPoint> pointList, List<GeoPolygon> holes)
pointList
- is a list of the GeoPoints to build an arbitrary polygon out of. If points go
clockwise from a given pole, then that pole should be within the polygon. If points go
counter-clockwise, then that pole should be outside the polygon.holes
- is a list of polygons representing "holes" in the outside polygon. Holes describe the area outside
each hole as being "in set". Null == none.public static GeoPolygon makeGeoPolygon(PlanetModel planetModel, List<GeoPoint> pointList, List<GeoPolygon> holes, double leniencyValue)
pointList
- is a list of the GeoPoints to build an arbitrary polygon out of. If points go
clockwise from a given pole, then that pole should be within the polygon. If points go
counter-clockwise, then that pole should be outside the polygon.holes
- is a list of polygons representing "holes" in the outside polygon. Holes describe the area outside
each hole as being "in set". Null == none.leniencyValue
- is the maximum distance (in units) that a point can be from the plane and still be considered as
belonging to the plane. Any value greater than zero may cause some of the provided points that are in fact outside
the strict definition of co-planarity, but are within this distance, to be discarded for the purposes of creating a
"safe" polygon.public static GeoPolygon makeLargeGeoPolygon(PlanetModel planetModel, List<GeoPolygonFactory.PolygonDescription> shapesList)
planetModel
- is the planet model.shapesList
- is the list of polygons we should be making.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.