Package com.luciad.tea
Class TLcdP2PCoverage
java.lang.Object
com.luciad.tea.TLcdP2PCoverage
- All Implemented Interfaces:
ILcdP2PCoverage
,Cloneable
A
TLcdP2PCoverage
defines a coverage between two points. Objects of this type are
used by the TLcdP2PCoverageFactory
to create a point-to-point intervisibility.
It contains:
- the start point (
ILcdPoint
) in which the coverage starts, - the start point reference (
ILcdGeoReference
) in which the start point is defined, - the altitude of the start point, defined in meters,
- the altitude mode (
TLcdCoverageAltitudeMode
) which indicates how to interpret the start point altitude, - the end point (
ILcdPoint
) in which the coverage stops, - the end point reference (
ILcdGeoReference
) in which the end point is defined, - the altitude of the end point, defined in meters,
- the altitude mode (
TLcdCoverageAltitudeMode
) which indicates how to interpret the end point altitude, and - the step size to define a discretization, defined in meters.
-
Constructor Summary
ConstructorDescriptionTLcdP2PCoverage
(ILcdPoint aStartPoint, ILcdGeoReference aStartPointReference, double aStartPointAltitude, TLcdCoverageAltitudeMode aStartPointAltitudeMode, ILcdPoint aEndPoint, ILcdGeoReference aEndPointReference, double aEndPointAltitude, TLcdCoverageAltitudeMode aEndPointAltitudeMode, double aStepSize) Creates an new point-to-point coverage with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Making the clone method available for all other classes.boolean
Returns the end point of this coverage.double
Returns the altitude of the end point, defined in meters.Returns the altitude mode in which the altitude of the end point should be interpreted.Returns the end point reference of this coverage.Returns the start point of this coverage.double
Returns the altitude of the start point, defined in meters.Returns the altitude mode in which the altitude of the start point should be interpreted.Returns the start point of this coverage.double
Returns the step size of this coverage, defined in meters.int
hashCode()
-
Constructor Details
-
TLcdP2PCoverage
public TLcdP2PCoverage(ILcdPoint aStartPoint, ILcdGeoReference aStartPointReference, double aStartPointAltitude, TLcdCoverageAltitudeMode aStartPointAltitudeMode, ILcdPoint aEndPoint, ILcdGeoReference aEndPointReference, double aEndPointAltitude, TLcdCoverageAltitudeMode aEndPointAltitudeMode, double aStepSize) Creates an new point-to-point coverage with the specified parameters. Note that the start and end point properties cannot be set tonull
, otherwise aNullPointerException
will be thrown.- Parameters:
aStartPoint
- The start point.aStartPointReference
- The reference in which the start point is defined.aStartPointAltitude
- The altitude of the start point, defined in meters.aStartPointAltitudeMode
- The altitude mode indicating how to interpret the altitude of the start point.aEndPoint
- The end point.aEndPointReference
- The reference in which the end point is defined.aEndPointAltitude
- The altitude of the end point, defined in meters.aEndPointAltitudeMode
- The altitude mode indicating how to interpret the altitude of the end point.aStepSize
- The discretization step size, defined in meters.- Throws:
NullPointerException
- when one of the following arguments arenull
:aStartPoint
,aStartPointReference
,aStartPointAltitudeMode
,aEndPoint
,aEndPointReference
andaEndPointAltitudeMode
.
-
-
Method Details
-
getStartPoint
Returns the start point of this coverage.- Specified by:
getStartPoint
in interfaceILcdP2PCoverage
- Returns:
- the start point of this coverage.
- See Also:
-
getStartPointAltitudeMode
Returns the altitude mode in which the altitude of the start point should be interpreted.- Specified by:
getStartPointAltitudeMode
in interfaceILcdP2PCoverage
- Returns:
- the altitude mode in which the altitude of the start point should be interpreted.
-
getStartPointAltitude
public double getStartPointAltitude()Returns the altitude of the start point, defined in meters.- Specified by:
getStartPointAltitude
in interfaceILcdP2PCoverage
- Returns:
- the altitude of the start point, defined in meters.
- See Also:
-
getStartPointReference
Returns the start point of this coverage.- Specified by:
getStartPointReference
in interfaceILcdP2PCoverage
- Returns:
- the start point of this coverage.
- See Also:
-
getEndPoint
Returns the end point of this coverage.- Specified by:
getEndPoint
in interfaceILcdP2PCoverage
- Returns:
- the end point of this coverage.
- See Also:
-
getEndPointAltitudeMode
Returns the altitude mode in which the altitude of the end point should be interpreted.- Specified by:
getEndPointAltitudeMode
in interfaceILcdP2PCoverage
- Returns:
- the altitude mode in which the altitude of the end point should be interpreted.
-
getEndPointAltitude
public double getEndPointAltitude()Returns the altitude of the end point, defined in meters.- Specified by:
getEndPointAltitude
in interfaceILcdP2PCoverage
- Returns:
- the altitude of the end point, defined in meters.
- See Also:
-
getEndPointReference
Returns the end point reference of this coverage.- Specified by:
getEndPointReference
in interfaceILcdP2PCoverage
- Returns:
- the end point reference of this coverage.
- See Also:
-
getStepSize
public double getStepSize()Returns the step size of this coverage, defined in meters.- Specified by:
getStepSize
in interfaceILcdP2PCoverage
- Returns:
- the step size of this coverage, defined in meters.
- See Also:
-
equals
-
hashCode
public int hashCode() -
clone
Description copied from interface:ILcdP2PCoverage
Making the clone method available for all other classes. All implementations of this interface should support the clone method. This means that this method should never throw a CloneNotSupportedException.- Specified by:
clone
in interfaceILcdP2PCoverage
- Overrides:
clone
in classObject
- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException
-