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
ConstructorsConstructorDescriptionTLcdP2PCoverage(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.booleanReturns the end point of this coverage.doubleReturns 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.doubleReturns 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.doubleReturns the step size of this coverage, defined in meters.inthashCode()
-
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 aNullPointerExceptionwill 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,aEndPointReferenceandaEndPointAltitudeMode.
-
-
Method Details
-
getStartPoint
Returns the start point of this coverage.- Specified by:
getStartPointin 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:
getStartPointAltitudeModein 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:
getStartPointAltitudein interfaceILcdP2PCoverage- Returns:
- the altitude of the start point, defined in meters.
- See Also:
-
getStartPointReference
Returns the start point of this coverage.- Specified by:
getStartPointReferencein interfaceILcdP2PCoverage- Returns:
- the start point of this coverage.
- See Also:
-
getEndPoint
Returns the end point of this coverage.- Specified by:
getEndPointin 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:
getEndPointAltitudeModein 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:
getEndPointAltitudein interfaceILcdP2PCoverage- Returns:
- the altitude of the end point, defined in meters.
- See Also:
-
getEndPointReference
Returns the end point reference of this coverage.- Specified by:
getEndPointReferencein 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:
getStepSizein interfaceILcdP2PCoverage- Returns:
- the step size of this coverage, defined in meters.
- See Also:
-
equals
-
hashCode
public int hashCode() -
clone
Description copied from interface:ILcdP2PCoverageMaking 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:
clonein interfaceILcdP2PCoverage- Overrides:
clonein classObject- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException
-