Class VRHorizonMethod

java.lang.Object
videoRangePanel.vrmethods.AbstractVRMethod
videoRangePanel.vrmethods.horizonMethod.VRHorizonMethod
All Implemented Interfaces:
VRMethod

public class VRHorizonMethod extends AbstractVRMethod
The horizon method allows a user to click two points to define a horizon and then click an animal to define a RANGE. Requires a calibration value and a height.
Author:
Doug Gillespie and Jamie Macaulay
  • Field Details

  • Constructor Details

    • VRHorizonMethod

      public VRHorizonMethod(VRControl vrControl)
  • Method Details

    • getSidePanel

      public PamPanel getSidePanel()
    • update

      public void update(int updateType)
      Description copied from interface: VRMethod
      Called from other parts of the module whenever a method panel may needed updated e.g. when new calibration data is manually added in the settings dialog.
      Specified by:
      update in interface VRMethod
      Overrides:
      update in class AbstractVRMethod
      Parameters:
      updateType - - the update flag.
    • getName

      public String getName()
      Description copied from interface: VRMethod
      The name of this type of analysis method.
      Returns:
      the name of the method
    • getRibbonPanel

      public PamPanel getRibbonPanel()
    • clearOverlay

      public void clearOverlay()
      JLayer overlay panel for the horizon method.
    • getCurrentStatus

      public int getCurrentStatus()
      Get the current status.
      Returns:
      the current status flag.
    • setImageHeading

      public void setImageHeading(Double imageHeading)
      Set the image heading.
      Parameters:
      imageHeading - - the image heading.
    • getHorizonPoint1

      public Point getHorizonPoint1()
      Get the first horizon point on the image
      Returns:
      - the point in pixels on the image
    • getHorizonPoint2

      public Point getHorizonPoint2()
      Get the second horizon point on the image
      Returns:
      - the point in pixels on the image
    • getOverlayAWT

      public VROverlayAWT getOverlayAWT()
      Description copied from interface: VRMethod
      The AWT overlay. This handles all graphical interactions within AWT
      Returns:
      the awt overlay
    • getOverlayFX

      public VROverlayFX getOverlayFX()
      Description copied from interface: VRMethod
      The FX overlay. This handles all graphical interactions within JavaFX
      Returns:
      the awt overlay
    • setHorizonPoint1

      public void setHorizonPoint1(Point point)
      Set the first horizon point.
      Parameters:
      point - the new horizon point 1
    • setHorizonPoint2

      public void setHorizonPoint2(Point point)
      Set the second horizon point.
      Parameters:
      point - the new horizon point 2