Class VRHorizonMethod
java.lang.Object
videoRangePanel.vrmethods.AbstractVRMethod
videoRangePanel.vrmethods.horizonMethod.VRHorizonMethod
- All Implemented Interfaces:
VRMethod
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 Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
Fields inherited from class videoRangePanel.vrmethods.AbstractVRMethod
MEASURE_ANIMAL, MEASURE_DONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
JLayer overlay panel for the horizon method.int
Get the current status.Get the first horizon point on the imageGet the second horizon point on the imagegetName()
The name of this type of analysis method.The AWT overlay.The FX overlay.void
setHorizonPoint1
(Point point) Set the first horizon point.void
setHorizonPoint2
(Point point) Set the second horizon point.void
setImageHeading
(Double imageHeading) Set the image heading.void
update
(int updateType) Called from other parts of the module whenever a method panel may needed updated e.g.Methods inherited from class videoRangePanel.vrmethods.AbstractVRMethod
calcLocLatLong, calculateHorizonTilt, getCandidateMeasurement, getGPSinfo, getGPSinfo, getHorizonPixel, getHorizonTilt, getImageHeading, getImagePitch, newAnimalMeasurement_Horizon, setHorizonTilt
-
Field Details
-
MEASURE_HORIZON_1
public static final int MEASURE_HORIZON_1- See Also:
-
MEASURE_HORIZON_2
public static final int MEASURE_HORIZON_2- See Also:
-
-
Constructor Details
-
VRHorizonMethod
-
-
Method Details
-
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 interfaceVRMethod
- Overrides:
update
in classAbstractVRMethod
- Parameters:
updateType
- - the update flag.
-
getName
Description copied from interface:VRMethod
The name of this type of analysis method.- Returns:
- the name of the method
-
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
Set the image heading.- Parameters:
imageHeading
- - the image heading.
-
getHorizonPoint1
Get the first horizon point on the image- Returns:
- - the point in pixels on the image
-
getHorizonPoint2
Get the second horizon point on the image- Returns:
- - the point in pixels on the image
-
getOverlayAWT
Description copied from interface:VRMethod
The AWT overlay. This handles all graphical interactions within AWT- Returns:
- the awt overlay
-
getOverlayFX
Description copied from interface:VRMethod
The FX overlay. This handles all graphical interactions within JavaFX- Returns:
- the awt overlay
-
setHorizonPoint1
Set the first horizon point.- Parameters:
point
- the new horizon point 1
-
setHorizonPoint2
Set the second horizon point.- Parameters:
point
- the new horizon point 2
-