Class ShoreManager

java.lang.Object
videoRangePanel.vrmethods.ShoreManager

public class ShoreManager extends Object
Separate class to manage shore functions for the video range, all this could go in the controller, but might as well keep it separate.
Author:
Douglas Gillespie
  • Constructor Details Link icon

    • ShoreManager Link icon

      public ShoreManager()
    • ShoreManager Link icon

      public ShoreManager(MapFileManager mapFileManager)
  • Method Details Link icon

    • getMapFileManager Link icon

      public MapFileManager getMapFileManager()
    • setMapFileManager Link icon

      public void setMapFileManager(MapFileManager mapFileManager)
    • getShoreInterceptList Link icon

      public Vector<LatLong> getShoreInterceptList(LatLong origin, double trueBearing)
    • getIntercept Link icon

      public LatLong getIntercept(LatLong origin, double bearing, LatLong ll1, LatLong ll2)
      See if a line drawn at a given bearing from some origin intercepts a line between two other points. If they do, then return the LatLong of the intercept point, otherwise return null.
      Parameters:
      origin - origin of bearing line
      bearing - true bearing (degrees clockwise from North)
      ll1 - lat long of start of line segment
      ll2 - lat long of end of line segment
      Returns:
      LatLong of intercept or null
    • getSortedShoreRanges Link icon

      public double[] getSortedShoreRanges(LatLong origin, double trueBearing)