public class IlvGeodeticPathComputation extends Object
IlvGeodeticPathComputation
contains methods used to render
polygons and polylines while taking into account that the shapes are on the
surface of the earth.
It is possible to insert the correct interpolated points into each segment,
taking into account parameters such as the distance in meters between each
intermediary point and the ellipsoid.
This class also manages date line wrapping by inserting the necessary
interruptions in polygons and polylines that would cause a line to be over
half a hemisphere long on the map.Modifier and Type | Class and Description |
---|---|
static class |
IlvGeodeticPathComputation.PointVector
Stores an array of points that possibly contains
null values
for interruptions. |
Modifier and Type | Field and Description |
---|---|
static double |
DefaultGeodeticStepSize
The default distance for intermediary points.
|
static double |
DefaultMinDistance
The default convergence distance for the added points.
|
static String |
TEMP_GRAPHIC_PROPERTY_NAME
A temporary property name used to store a computation in an
IlvGraphic instance before a data source copies it. |
Constructor and Description |
---|
IlvGeodeticPathComputation(IlvCoordinateSystem coordinateSystem)
Creates a polygon computation class to manage geodetic objects and
date line wrapping.
|
Modifier and Type | Method and Description |
---|---|
IlvPointArray[] |
computeClosedPath(IlvPointArray[] arrays,
boolean orthodromy)
Creates the correct representation of the raw array of polygons passed as
a parameter.
|
IlvPointArray[] |
computeOpenPath(IlvPoint[] points,
boolean orthodromy)
Creates the correct representation of the raw array of polylines passed as
a parameter.
|
GeneralPath |
computePath(GeneralPath path,
boolean orthodromy)
Creates the correct representation of the raw path passed as a parameter.
|
IlvGeodeticPathComputation.PointVector |
computePath(IlvPoint pathStart,
IlvPoint pathEnd,
boolean orthodromy)
Creates the orthodromy trajectory and adds it to the data.
|
double |
getBearing()
Returns the bearing.
|
double |
getDistance()
Returns the distance.
|
double |
getStepDistance()
Returns the distance for intermediary points.
|
void |
setStepDistance(double stepDistance)
Sets the distance for intermediary points.
|
public static double DefaultGeodeticStepSize
public static double DefaultMinDistance
public static final String TEMP_GRAPHIC_PROPERTY_NAME
IlvGraphic
instance before a data source copies it.
Using this constant is not recommended. It is mainly for Perforce JViews private use.public IlvGeodeticPathComputation(IlvCoordinateSystem coordinateSystem)
coordinateSystem
- The coordinate system.public double getStepDistance()
public void setStepDistance(double stepDistance)
stepDistance
- The distance for intermediary points.public IlvGeodeticPathComputation.PointVector computePath(IlvPoint pathStart, IlvPoint pathEnd, boolean orthodromy)
pathStart
- The manager coordinate of point 1.pathEnd
- The manager coordinate of point 2.orthodromy
- Set to true
so an intermediary point will be
added each step distance to transform the straight line into an
orthodromy path.public IlvPointArray[] computeClosedPath(IlvPointArray[] arrays, boolean orthodromy)
arrays
- An array of polygons.orthodromy
- Set to true
to compute the orthodromy
between each point.PointArray
objects.public IlvPointArray[] computeOpenPath(IlvPoint[] points, boolean orthodromy)
points
- The array of polylines.orthodromy
- Set to true
to compute the orthodromy
between each point.PointArray
objects.public GeneralPath computePath(GeneralPath path, boolean orthodromy)
path
- The path to represent.orthodromy
- Set to true
to compute the orthodromy
between each point.public double getBearing()
public double getDistance()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.