Package videoRangePanel
Class RefractionMethod
java.lang.Object
videoRangePanel.VRHorzCalcMethod
videoRangePanel.RoundEarthMethod
videoRangePanel.RefractionMethod
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider
- 
Field Summary
Fields inherited from class videoRangePanel.RoundEarthMethod
vrControlFields inherited from class videoRangePanel.VRHorzCalcMethod
earthRadius, gravity - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGet the swing based pane for the methoddoublegetAngle(double height, double range) Converts a range into an angle below the horizon.protected doublegetHorizonAngle(double height) Calculate the horizon dip angle from the horizontaldoublegetHorizonDistance(double height) Calculate the distance to the horizon from a given height.doublegetRange(double height, double angle) Converts a height and an angle below the horizon to a distance in metres.Get the FX based settings pane for the methodlongbooleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) Methods inherited from class videoRangePanel.RoundEarthMethod
configure, psiFromRange, rangeFromPsi 
- 
Constructor Details
- 
RefractionMethod
 
 - 
 - 
Method Details
- 
getRangeMethodPane
Description copied from class:VRHorzCalcMethodGet the FX based settings pane for the method- Overrides:
 getRangeMethodPanein classRoundEarthMethod- Returns:
 - pane for changing settings.
 
 - 
getRange
public double getRange(double height, double angle) Description copied from class:VRHorzCalcMethodConverts a height and an angle below the horizon to a distance in metres.- Overrides:
 getRangein classRoundEarthMethod- Parameters:
 height- platform height (metres)angle- angle below the horizon (Radians)- Returns:
 - distance in metres.
 
 - 
getHorizonDistance
public double getHorizonDistance(double height) Description copied from class:VRHorzCalcMethodCalculate the distance to the horizon from a given height.- Overrides:
 getHorizonDistancein classRoundEarthMethod- Parameters:
 height-- Returns:
 - distnace to horizon in metres.
 
 - 
getAngle
public double getAngle(double height, double range) Description copied from class:VRHorzCalcMethodConverts a range into an angle below the horizon.Or returns -1 if the range is beyond the horizon.
- Overrides:
 getAnglein classRoundEarthMethod- Parameters:
 height- platform height (metres)range- range to object.- Returns:
 - angle in Radians.
 
 - 
getHorizonAngle
protected double getHorizonAngle(double height) Description copied from class:VRHorzCalcMethodCalculate the horizon dip angle from the horizontal- Overrides:
 getHorizonAnglein classVRHorzCalcMethod- Parameters:
 height- Platform height- Returns:
 - dip angle in radians.
 
 - 
dialogPanel
Description copied from class:VRHorzCalcMethodGet the swing based pane for the method- Overrides:
 dialogPanelin classRoundEarthMethod- Returns:
 - pane for changing settings
 
 - 
getSettingsReference
- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
getUnitName
- Specified by:
 getUnitNamein interfaceSettingsNameProvider- Returns:
 - A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
 
 - 
getUnitType
- Specified by:
 getUnitTypein interfacePamSettings- Returns:
 - A Name specific to the type, e.g. Click detector
 
 - 
restoreSettings
- Specified by:
 restoreSettingsin interfacePamSettings- Parameters:
 pamControlledUnitSettings-- Returns:
 - true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
 
 
 -