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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class videoRangePanel.vrmethods.AbstractVRMethod
candidateMeasurement, horizonPoint1, horizonPoint2, horizonTilt, imageHeading, MEASURE_ANIMAL, MEASURE_DONE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidJLayer overlay panel for the horizon method.intGet 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.voidsetHorizonPoint1(Point point) Set the first horizon point.voidsetHorizonPoint2(Point point) Set the second horizon point.voidsetImageHeading(Double imageHeading) Set the image heading.protected voidsetVrStatus(int status) voidupdate(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
bearingTox, calcLocLatLong, calculateHorizonTilt, clearPoints, getCandidateMeasurement, getGPSinfo, getGPSinfo, getHorizonPixel, getHorizonPixel_H, 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:VRMethodCalled 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:
 updatein interfaceVRMethod- Overrides:
 updatein classAbstractVRMethod- Parameters:
 updateType- - the update flag.
 - 
setVrStatus
protected void setVrStatus(int status)  - 
getName
Description copied from interface:VRMethodThe 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:VRMethodThe AWT overlay. This handles all graphical interactions within AWT- Returns:
 - the awt overlay
 
 - 
getOverlayFX
Description copied from interface:VRMethodThe 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
 
 -