public final class PrimitiveFactory extends Object
Modifier and Type | Method and Description |
---|---|
static TriangleMeshPrimitive |
createCircle(CentralBody centralBody,
Cartesian center,
double radius)
Creates a circle triangle mesh.
|
static TriangleMeshPrimitive |
createCircle(CentralBody centralBody,
Cartesian center,
double radius,
double granularity)
Creates a circle triangle mesh with a specified granularity.
|
static PolylinePrimitive |
createCircleBoundary(CentralBody centralBody,
Cartesian center,
double radius)
Creates a circle shaped
PolylinePrimitive . |
static PolylinePrimitive |
createCircleBoundary(CentralBody centralBody,
Cartesian center,
double radius,
double granularity)
Creates a circle shaped
PolylinePrimitive with a specified granularity. |
static PolylinePrimitive |
createCircleBoundaryCartographic(CentralBody centralBody,
Cartographic center,
double radius)
Creates a circle shaped
PolylinePrimitive . |
static PolylinePrimitive |
createCircleBoundaryCartographic(CentralBody centralBody,
Cartographic center,
double radius,
double granularity)
Creates a circle shaped
PolylinePrimitive with a specified granularity. |
static TriangleMeshPrimitive |
createCircleCartographic(CentralBody centralBody,
Cartographic center,
double radius)
Creates a circle triangle mesh.
|
static TriangleMeshPrimitive |
createCircleCartographic(CentralBody centralBody,
Cartographic center,
double radius,
double granularity)
Creates a circle triangle mesh with a specified granularity.
|
static TriangleMeshPrimitive |
createEllipse(CentralBody centralBody,
Cartesian center,
double majorAxisRadius,
double minorAxisRadius,
double bearing)
Creates an ellipse triangle mesh.
|
static TriangleMeshPrimitive |
createEllipse(CentralBody centralBody,
Cartesian center,
double majorAxisRadius,
double minorAxisRadius,
double bearing,
double granularity)
Creates an ellipse triangle mesh with a specified granularity.
|
static PolylinePrimitive |
createEllipseBoundary(CentralBody centralBody,
Cartesian center,
double majorAxisRadius,
double minorAxisRadius,
double bearing)
Creates an ellipse shaped
PolylinePrimitive . |
static PolylinePrimitive |
createEllipseBoundary(CentralBody centralBody,
Cartesian center,
double majorAxisRadius,
double minorAxisRadius,
double bearing,
double granularity)
Creates an ellipse shaped
PolylinePrimitive with a specified granularity. |
static PolylinePrimitive |
createEllipseBoundaryCartographic(CentralBody centralBody,
Cartographic center,
double majorAxisRadius,
double minorAxisRadius,
double bearing)
Creates an ellipse shaped
PolylinePrimitive . |
static PolylinePrimitive |
createEllipseBoundaryCartographic(CentralBody centralBody,
Cartographic center,
double majorAxisRadius,
double minorAxisRadius,
double bearing,
double granularity)
Creates an ellipse shaped
PolylinePrimitive with a specified granularity. |
static TriangleMeshPrimitive |
createEllipseCartographic(CentralBody centralBody,
Cartographic center,
double majorAxisRadius,
double minorAxisRadius,
double bearing)
Creates an ellipse triangle mesh.
|
static TriangleMeshPrimitive |
createEllipseCartographic(CentralBody centralBody,
Cartographic center,
double majorAxisRadius,
double minorAxisRadius,
double bearing,
double granularity)
Creates an ellipse triangle mesh with a specified granularity.
|
static PolylinePrimitive |
createLatitudeLongitudeGrid(CentralBody centralBody)
Creates a lat/long grid on
centralBody where the spacing between set of latitude
and set of longitude lines is 30 degrees. |
static PolylinePrimitive |
createLatitudeLongitudeGrid(CentralBody centralBody,
double longitudeSpacing,
double latitudeSpacing,
double granularity)
Creates a lat/long grid on
centralBody where the spacing between the set of latitude
and set of longitude lines is latitudeSpacing and
longitudeSpacing , respectively. |
static PolylinePrimitive |
createLatitudeLongitudeGridExtent(CentralBody centralBody,
CartographicExtent extent,
double longitudeSpacing,
double latitudeSpacing)
Creates a lat/lon grid over a
CartographicExtent . |
static PolylinePrimitive |
createLatitudeLongitudeGridExtent(CentralBody centralBody,
CartographicExtent extent,
double longitudeSpacing,
double latitudeSpacing,
double granularity)
Creates a lat/lon grid over a
CartographicExtent . |
static TriangleMeshPrimitive |
createPolygon(CentralBody centralBody,
List<Cartesian> positions)
Creates a polygon triangle mesh.
|
static PolylinePrimitive |
createPolygonBoundary(List<Cartesian> positions)
Creates a bounded polygon from a list of positions.
|
static PolylinePrimitive |
createPolygonBoundaryCartographic(CentralBody centralBody,
List<Cartographic> positions)
Creates a bounded polygon from a list of positions.
|
static TriangleMeshPrimitive |
createPolygonCartographic(CentralBody centralBody,
List<Cartographic> positions)
Creates a polygon triangle mesh.
|
static TriangleMeshPrimitive |
createSector(CentralBody centralBody,
Cartesian center,
double innerRadius,
double outerRadius,
double startBearing,
double endBearing)
Creates a sector triangle mesh.
|
static TriangleMeshPrimitive |
createSector(CentralBody centralBody,
Cartesian center,
double innerRadius,
double outerRadius,
double startBearing,
double endBearing,
double granularity)
Creates a sector triangle mesh with a specified granularity.
|
static PolylinePrimitive |
createSectorBoundary(CentralBody centralBody,
Cartesian center,
double innerRadius,
double outerRadius,
double startBearing,
double endBearing)
Creates a sector shaped
PolylinePrimitive . |
static PolylinePrimitive |
createSectorBoundary(CentralBody centralBody,
Cartesian center,
double innerRadius,
double outerRadius,
double startBearing,
double endBearing,
double granularity)
Creates a sector shaped
PolylinePrimitive with a specified granularity. |
static PolylinePrimitive |
createSectorBoundaryCartographic(CentralBody centralBody,
Cartographic center,
double innerRadius,
double outerRadius,
double startBearing,
double endBearing)
Creates a sector shaped
PolylinePrimitive . |
static PolylinePrimitive |
createSectorBoundaryCartographic(CentralBody centralBody,
Cartographic center,
double innerRadius,
double outerRadius,
double startBearing,
double endBearing,
double granularity)
Creates a sector shaped
PolylinePrimitive with a specified granularity. |
static TriangleMeshPrimitive |
createSectorCartographic(CentralBody centralBody,
Cartographic center,
double innerRadius,
double outerRadius,
double startBearing,
double endBearing)
Creates a sector triangle mesh.
|
static TriangleMeshPrimitive |
createSectorCartographic(CentralBody centralBody,
Cartographic center,
double innerRadius,
double outerRadius,
double startBearing,
double endBearing,
double granularity)
Creates a sector triangle mesh with a specified granularity.
|
public static PolylinePrimitive createLatitudeLongitudeGrid(CentralBody centralBody)
centralBody
where the spacing between set of latitude
and set of longitude lines is 30 degrees.centralBody
- The central body on which to draw the grid.PolylinePrimitive
representing the grid.public static PolylinePrimitive createLatitudeLongitudeGrid(CentralBody centralBody, double longitudeSpacing, double latitudeSpacing, double granularity)
centralBody
where the spacing between the set of latitude
and set of longitude lines is latitudeSpacing
and
longitudeSpacing
, respectively. The granularity
is
for determining the smoothness of the line.centralBody
- The central body on which to draw the grid.longitudeSpacing
- The amount of space between each longitude line.latitudeSpacing
- The amount of space between each latitude line.granularity
- Used to determine how many points to generate for the line. The closer the granularity is to zero,
the smoother the line will look.PolylinePrimitive
representing the grid.public static PolylinePrimitive createLatitudeLongitudeGridExtent(CentralBody centralBody, CartographicExtent extent, double longitudeSpacing, double latitudeSpacing)
CartographicExtent
.centralBody
- The central body on which the extent is defined.extent
- A rectangular area of the central body.longitudeSpacing
- The amount of space between each longitude line.latitudeSpacing
- The amount of space between each latitude line.PolylinePrimitive
representing the grid.public static PolylinePrimitive createLatitudeLongitudeGridExtent(CentralBody centralBody, CartographicExtent extent, double longitudeSpacing, double latitudeSpacing, double granularity)
CartographicExtent
.centralBody
- The central body on which the extent is defined.extent
- A rectangular area of the central body.longitudeSpacing
- The amount of space between each longitude line.latitudeSpacing
- The amount of space between each latitude line.granularity
- Used to determine how many points to generate for the line. The closer the granularity is to zero,
the smoother the line will look.PolylinePrimitive
representing the grid.public static PolylinePrimitive createCircleBoundary(CentralBody centralBody, Cartesian center, double radius)
PolylinePrimitive
.centralBody
- Central body to place the circle oncenter
- Cartesian center of the circleradius
- Radius of the circlepublic static PolylinePrimitive createCircleBoundary(CentralBody centralBody, Cartesian center, double radius, double granularity)
PolylinePrimitive
with a specified granularity.centralBody
- Central body to place the circle oncenter
- Cartesian center of the circleradius
- Radius of the circlegranularity
- Granularity of the circlepublic static PolylinePrimitive createCircleBoundaryCartographic(CentralBody centralBody, Cartographic center, double radius)
PolylinePrimitive
.centralBody
- Central body to place the circle oncenter
- Cartographic center of the circleradius
- Radius of the circlepublic static PolylinePrimitive createCircleBoundaryCartographic(CentralBody centralBody, Cartographic center, double radius, double granularity)
PolylinePrimitive
with a specified granularity.centralBody
- Central body to place the circle oncenter
- Cartographic center of the circleradius
- Radius of the circlegranularity
- Granularity of the circlepublic static PolylinePrimitive createEllipseBoundary(CentralBody centralBody, Cartesian center, double majorAxisRadius, double minorAxisRadius, double bearing)
PolylinePrimitive
.centralBody
- Central body to place the ellipse oncenter
- Cartesian center of the ellipsemajorAxisRadius
- Major axis radius of the ellipseminorAxisRadius
- Minor axis radius of the ellipsebearing
- Bearing of the ellipsepublic static PolylinePrimitive createEllipseBoundary(CentralBody centralBody, Cartesian center, double majorAxisRadius, double minorAxisRadius, double bearing, double granularity)
PolylinePrimitive
with a specified granularity.centralBody
- Central body to place the ellipse oncenter
- Cartesian center of the ellipsemajorAxisRadius
- Major axis radius of the ellipseminorAxisRadius
- Minor axis radius of the ellipsebearing
- Bearing of the ellipsegranularity
- Granularity of the ellipsepublic static PolylinePrimitive createEllipseBoundaryCartographic(CentralBody centralBody, Cartographic center, double majorAxisRadius, double minorAxisRadius, double bearing)
PolylinePrimitive
.centralBody
- Central body to place the ellipse oncenter
- Cartographic center of the ellipsemajorAxisRadius
- Major axis radius of the ellipseminorAxisRadius
- Minor axis radius of the ellipsebearing
- Bearing of the ellipsepublic static PolylinePrimitive createEllipseBoundaryCartographic(CentralBody centralBody, Cartographic center, double majorAxisRadius, double minorAxisRadius, double bearing, double granularity)
PolylinePrimitive
with a specified granularity.centralBody
- Central body to place the ellipse oncenter
- Cartographic center of the ellipsemajorAxisRadius
- Major axis radius of the ellipseminorAxisRadius
- Minor axis radius of the ellipsebearing
- Bearing of the ellipsegranularity
- Granularity of the ellipsepublic static PolylinePrimitive createSectorBoundary(CentralBody centralBody, Cartesian center, double innerRadius, double outerRadius, double startBearing, double endBearing)
PolylinePrimitive
.centralBody
- Central body to place the sector oncenter
- Cartesian center of the sectorinnerRadius
- Inner radius of the sectorouterRadius
- Outer radius of the sectorstartBearing
- Start bearing of the sectorendBearing
- End bearing of the sectorpublic static PolylinePrimitive createSectorBoundary(CentralBody centralBody, Cartesian center, double innerRadius, double outerRadius, double startBearing, double endBearing, double granularity)
PolylinePrimitive
with a specified granularity.centralBody
- Central body to place the sector oncenter
- Cartesian center of the sectorinnerRadius
- Inner radius of the sectorouterRadius
- Outer radius of the sectorstartBearing
- Start bearing of the sectorendBearing
- End bearing of the sectorgranularity
- Granularity of the sectorpublic static PolylinePrimitive createSectorBoundaryCartographic(CentralBody centralBody, Cartographic center, double innerRadius, double outerRadius, double startBearing, double endBearing)
PolylinePrimitive
.centralBody
- Central body to place the sector oncenter
- Cartographic center of the sectorinnerRadius
- Inner radius of the sectorouterRadius
- Outer radius of the sectorstartBearing
- Start bearing of the sectorendBearing
- End bearing of the sectorpublic static PolylinePrimitive createSectorBoundaryCartographic(CentralBody centralBody, Cartographic center, double innerRadius, double outerRadius, double startBearing, double endBearing, double granularity)
PolylinePrimitive
with a specified granularity.centralBody
- Central body to place the sector oncenter
- Cartographic center of the sectorinnerRadius
- Inner radius of the sectorouterRadius
- Outer radius of the sectorstartBearing
- Start bearing of the sectorendBearing
- End bearing of the sectorgranularity
- Granularity of the sectorpublic static PolylinePrimitive createPolygonBoundary(List<Cartesian> positions)
positions
- Cartesian positions of the polygonpublic static PolylinePrimitive createPolygonBoundaryCartographic(CentralBody centralBody, List<Cartographic> positions)
centralBody
- Central body to place the polygon onpositions
- Cartographic positions of the polygon. First and last points need to be equal for a closed polygonpublic static TriangleMeshPrimitive createCircle(CentralBody centralBody, Cartesian center, double radius)
centralBody
- Central body to place the circle oncenter
- Center of the circleradius
- Radius of the circlepublic static TriangleMeshPrimitive createCircle(CentralBody centralBody, Cartesian center, double radius, double granularity)
centralBody
- Central body to place the circle oncenter
- Center of the circleradius
- Radius of the circlegranularity
- Granularity of the circlepublic static TriangleMeshPrimitive createCircleCartographic(CentralBody centralBody, Cartographic center, double radius)
centralBody
- Central body to place the circle oncenter
- Center of the circleradius
- Radius of the circlepublic static TriangleMeshPrimitive createCircleCartographic(CentralBody centralBody, Cartographic center, double radius, double granularity)
centralBody
- Central body to place the circle oncenter
- Center of the circleradius
- Radius of the circlegranularity
- Granularity of the circlepublic static TriangleMeshPrimitive createEllipse(CentralBody centralBody, Cartesian center, double majorAxisRadius, double minorAxisRadius, double bearing)
centralBody
- Central body to place the ellipse oncenter
- Cartesian center of the ellipsemajorAxisRadius
- Major axis of the ellipseminorAxisRadius
- Minor axis of the ellipsebearing
- Bearing of the ellipsepublic static TriangleMeshPrimitive createEllipse(CentralBody centralBody, Cartesian center, double majorAxisRadius, double minorAxisRadius, double bearing, double granularity)
centralBody
- Central body to place the ellipse oncenter
- Cartesian center of the ellipsemajorAxisRadius
- Major axis of the ellipseminorAxisRadius
- Minor axis of the ellipsebearing
- Bearing of the ellipsegranularity
- Granularity of the ellipsepublic static TriangleMeshPrimitive createEllipseCartographic(CentralBody centralBody, Cartographic center, double majorAxisRadius, double minorAxisRadius, double bearing)
centralBody
- Central body to place the ellipse oncenter
- Cartographic center of the ellipsemajorAxisRadius
- Major axis of the ellipseminorAxisRadius
- Minor axis of the ellipsebearing
- Bearing of the ellipsepublic static TriangleMeshPrimitive createEllipseCartographic(CentralBody centralBody, Cartographic center, double majorAxisRadius, double minorAxisRadius, double bearing, double granularity)
centralBody
- Central body to place the ellipse oncenter
- Cartographic center of the ellipsemajorAxisRadius
- Major axis of the ellipseminorAxisRadius
- Minor axis of the ellipsebearing
- Bearing of the ellipsegranularity
- Granularity of the ellipsepublic static TriangleMeshPrimitive createSector(CentralBody centralBody, Cartesian center, double innerRadius, double outerRadius, double startBearing, double endBearing)
centralBody
- Central body to place the sector oncenter
- Center of the sectorinnerRadius
- Inner radius of the sectorouterRadius
- Outer radius of the sectorstartBearing
- Start bearing of the sectorendBearing
- End bearing of the sectorpublic static TriangleMeshPrimitive createSector(CentralBody centralBody, Cartesian center, double innerRadius, double outerRadius, double startBearing, double endBearing, double granularity)
centralBody
- Central body to place the sector oncenter
- Center of the sectorinnerRadius
- Inner radius of the sectorouterRadius
- Outer radius of the sectorstartBearing
- Start bearing of the sectorendBearing
- End bearing of the sectorgranularity
- Granularity of the ellipsepublic static TriangleMeshPrimitive createSectorCartographic(CentralBody centralBody, Cartographic center, double innerRadius, double outerRadius, double startBearing, double endBearing)
centralBody
- Central body to place the sector oncenter
- Center of the sectorinnerRadius
- Inner radius of the sectorouterRadius
- Outer radius of the sectorstartBearing
- Start bearing of the sectorendBearing
- End bearing of the sectorpublic static TriangleMeshPrimitive createSectorCartographic(CentralBody centralBody, Cartographic center, double innerRadius, double outerRadius, double startBearing, double endBearing, double granularity)
centralBody
- Central body to place the sector oncenter
- Center of the sectorinnerRadius
- Inner radius of the sectorouterRadius
- Outer radius of the sectorstartBearing
- Start bearing of the sectorendBearing
- End bearing of the sectorgranularity
- Granularity of the ellipsepublic static TriangleMeshPrimitive createPolygon(CentralBody centralBody, List<Cartesian> positions)
centralBody
- Central body to place the polygon onpositions
- Cartesian positions of the polygonpublic static TriangleMeshPrimitive createPolygonCartographic(CentralBody centralBody, List<Cartographic> positions)
centralBody
- Central body to place the polygon onpositions
- Cartographic positions of the polygon