videoRangePanel
Class VRMeasurement

java.lang.Object
  extended by videoRangePanel.VRMeasurement
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class VRMeasurement
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Field Summary
 double angleCorrection
           
 java.awt.Point animalPoint
           
 VRCalibrationData calibrationData
           
 java.lang.Double cameraAngle
           
 java.lang.String comment
           
 double distanceMeters
           
 double distancePixels
           
 int groupSize
           
 VRHeightData heightData
           
 java.awt.Point horizonPoint
           
 int imageAnimal
           
 java.lang.String imageName
           
static int MEASURE_FROM_HORIZON
           
static int MEASURE_FROM_SHORE
           
 int measurementType
           
 double pixelAccuracy
           
 VRRangeMethod rangeMethod
           
 double totalAngle
           
 
Constructor Summary
VRMeasurement(java.awt.Point shorePoint, java.awt.Point animalPoint)
          Constructor for shore based measurements
VRMeasurement(java.awt.Point horizonPoint1, java.awt.Point horizonPoint2, java.awt.Point animalPoint)
          Constructor for measurements from the horizon
 
Method Summary
protected  VRMeasurement clone()
           
 double getAnimalAngleDegrees(VRCalibrationData vrCalibrationData)
          Returns the angle of the animal in degrees.
 double getAnimalAngleRadians(VRCalibrationData vrCalibrationData)
           
 java.lang.String getHoverText()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

animalPoint

public java.awt.Point animalPoint

horizonPoint

public java.awt.Point horizonPoint

distancePixels

public double distancePixels

distanceMeters

public double distanceMeters

pixelAccuracy

public double pixelAccuracy

imageName

public java.lang.String imageName

imageAnimal

public int imageAnimal

groupSize

public int groupSize

cameraAngle

public java.lang.Double cameraAngle

angleCorrection

public double angleCorrection

totalAngle

public double totalAngle

comment

public java.lang.String comment

calibrationData

public VRCalibrationData calibrationData

heightData

public VRHeightData heightData

rangeMethod

public VRRangeMethod rangeMethod

measurementType

public int measurementType

MEASURE_FROM_HORIZON

public static final int MEASURE_FROM_HORIZON
See Also:
Constant Field Values

MEASURE_FROM_SHORE

public static final int MEASURE_FROM_SHORE
See Also:
Constant Field Values
Constructor Detail

VRMeasurement

public VRMeasurement(java.awt.Point horizonPoint1,
                     java.awt.Point horizonPoint2,
                     java.awt.Point animalPoint)
Constructor for measurements from the horizon

Parameters:
horizonPoint1 - first horizon point
horizonPoint2 - second horizon point
animalPoint - clicked animal point.

VRMeasurement

public VRMeasurement(java.awt.Point shorePoint,
                     java.awt.Point animalPoint)
Constructor for shore based measurements

Parameters:
shorePoint - clicked shore point on image
animalPoint - clicked animal point on image
Method Detail

getAnimalAngleDegrees

public double getAnimalAngleDegrees(VRCalibrationData vrCalibrationData)
Returns the angle of the animal in degrees.

Parameters:
vrCalibrationData -
Returns:
angle in degrees based on measured distance in pixels and given calibration data.

getAnimalAngleRadians

public double getAnimalAngleRadians(VRCalibrationData vrCalibrationData)

getHoverText

public java.lang.String getHoverText()

clone

protected VRMeasurement clone()
Overrides:
clone in class java.lang.Object