Class TLcdP2PFactory

java.lang.Object
com.luciad.tea.TLcdP2PFactory

public class TLcdP2PFactory extends Object
Deprecated.
use the TLcdP2PCoverageFactory instead. Perform the following steps to replace this code with the new point-to-point coverage functionality.
  1. Create a new TLcdP2PCoverageFactory.
  2. Create the wanted propagation function (e.g. TLcdP2PRadarPropagationFunction).
  3. Create the wanted point-to-point coverage (TLcdP2PCoverage) which contains the coverage for which the point-to-point should be created.
  4. Use the method TLcdP2PCoverageFactory.createPoint2PointIntervisibility to create a new ILcdPoint2PointIntervisibility.
This is a Factory class to create an ILcdPoint2PointIntervisibility that is automatically recomputed when one of its defining points changes.
  • Constructor Details

    • TLcdP2PFactory

      public TLcdP2PFactory()
      Deprecated.
  • Method Details

    • createPoint2PointIntervisibility

      public ILcdPoint2PointIntervisibility createPoint2PointIntervisibility(ILcdPoint aFromPoint, ILcdPoint aToPoint, double aFromPointHeightAboveGround, double aToPointHeightAboveGround, ILcdRaster[] aRasters)
      Deprecated.
      Creates a new ILcdPoint2PointIntervisibility that recomputes its intervisibility each time one of its defining points is changed. The sampling of the underlying terrain data is done at a distance equal to 1/100 of the original distance between the points.

      This method assumes the two points and the rasters defined in the geodetic WGS84 reference.

      Parameters:
      aFromPoint - The first point of the ILcdPoint2PointIntervisibility. This point should be a lon lat point defined in WGS84 coordinates.
      aToPoint - The second point of the ILcdPoint2PointIntervisibility. This point should be a lon lat point defined in WGS84 coordinates.
      aFromPointHeightAboveGround - The height (in meter) above the ground of the first point.
      aToPointHeightAboveGround - The height (in meter) above the ground of the second point.
      aRasters - The rasters to perform the computation on.
      Returns:
      an ILcdPoint2PointIntervisibility that contains information about the intervisibility of the two points and the two points (as points of a ILcdPointList).
    • createPoint2PointIntervisibility

      public ILcdPoint2PointIntervisibility createPoint2PointIntervisibility(ILcdPoint aFirstPoint, ILcdGeoReference aFirstPointReference, double aFirstPointHeightAboveGround, ILcdPoint aSecondPoint, ILcdGeoReference aSecondPointReference, double aSecondPointHeightAboveGround, ILcdModelReference aTargetReference, ILcdRaster[] aRasters, ILcdModelReference aRastersReference)
      Deprecated.
      Creates a new ILcdPoint2PointIntervisibility that recomputes its intervisibility each time one of its defining points is changed. It simplifies the intervisibility calculations over terrain which is represented by raster data, all defined in the same reference.

      This method computes the distance between the 2 points and sets the step so that the elevation is calculated at 100 points and then calls createPoint2PointIntervisibility.

      Parameters:
      aFirstPoint - The first point to compute the intervisibility for.
      aFirstPointReference - The reference in which the first points coordinates are expressed.
      aFirstPointHeightAboveGround - The height above ground in meters of the first point.
      aSecondPoint - The second point to compute the intervisibility for.
      aSecondPointReference - The reference in which the second points coordinates are expressed.
      aSecondPointHeightAboveGround - The height above ground in meters of the second point.
      aTargetReference - The reference the coordinates of the resulting line will be expressed in.
      aRasters - The rasters containing the elevation data.
      aRastersReference - The reference the rasters are defined in.
      Returns:
      an ILcdPoint2PointIntervisibility that contains information about the intervisibility of the two points and the two points (as points of a ILcdPointList).
    • createPoint2PointIntervisibility

      public ILcdPoint2PointIntervisibility createPoint2PointIntervisibility(ILcdPoint aFromPoint, ILcdPoint aToPoint, double aFromPointHeightAboveGround, double aToPointHeightAboveGround, ILcdGXYView aGXYView)
      Deprecated.
      Creates a new ILcdPoint2PointIntervisibility that recomputes its intervisibility each time one of its defining points is changed. The sampling of the underlying terrain data is done at a distance equal to 1/100 of the original distance between the points.

      This method assumes the two points and the rasters defined in the geodetic WGS84 reference.

      Parameters:
      aFromPoint - The first point of the ILcdPoint2PointIntervisibility. This point should be a lon lat point defined in WGS84 coordinates.
      aToPoint - The second point of the ILcdPoint2PointIntervisibility. This point should be a lon lat point defined in WGS84 coordinates.
      aFromPointHeightAboveGround - The height (in meter) above the ground of the first point.
      aToPointHeightAboveGround - The height (in meter) above the ground of the second point.
      aGXYView - The ILcdGXYView to perform the computation on. The code will retrieve the relevant WGS84 rasters in the view to do the computations.
      Returns:
      an ILcdPoint2PointIntervisibility that contains information about the intervisibility of the two points and the two points (as points of a ILcdPointList).
    • createPoint2PointIntervisibility

      public ILcdExtendedPoint2PointIntervisibility createPoint2PointIntervisibility(ILcdPoint aFirstPoint, ILcdGeoReference aFirstPointReference, double aFirstPointHeightAboveGround, ILcdPoint aSecondPoint, ILcdGeoReference aSecondPointReference, double aSecondPointHeightAboveGround, ALcdTerrainElevationProvider aTerrainElevationProvider, ILcdModelReference aTargetReference, ILcdModelModelTransformation aModelModelTransformation, double aStepInMeters)
      Deprecated.
      Creates a ILcdExtendedPoint2PointIntervisibility that contains the visibility between two points in different references. The model-model transformation passed should be able to transform between WGS84 and any of the references passed as a parameter below.

      The resulting intervisibility object recomputes the point-to-point intervisibility each time one of its defining points is changed.

      Parameters:
      aFirstPoint - The first point to compute the intervisibility for.
      aFirstPointReference - The reference in which the first points coordinates are expressed.
      aFirstPointHeightAboveGround - The height above ground in meters of the first point.
      aSecondPoint - The second point to compute the intervisibility for.
      aSecondPointReference - The reference in which the second points coordinates are expressed.
      aSecondPointHeightAboveGround - The height above ground in meters of the second point.
      aTerrainElevationProvider - Provides elevation information to base the calculations on.
      aTargetReference - The reference the coordinates of the resulting line will be expressed in.
      aModelModelTransformation - A transformation that supports transforming points between WGS84 and all references passed in these parameters.
      aStepInMeters - The step in meters to take for sampling the points in between the two points.
      Returns:
      a ILcdExtendedPoint2PointIntervisibility that contains whether the two points are intervisible and the two points in the original reference. The object returned also implements ILcdPointList which contains the points in the target reference.