Class CalibrationStep.Position

All Implemented Interfaces:
Serializable, Cloneable, Drawable, Interactive, Measurable, Trackable
Enclosing class:
CalibrationStep

public class CalibrationStep.Position extends TPoint
A class that represents the position of a calibration point.
See Also:
  • Constructor Details

    • Position

      public Position(double x, double y)
      Constructs a position with specified image coordinates, and transforms those coordinates to set the world coordinates. Calibration points are used in pairs to set the origin, scale and angle.
      Parameters:
      x - the image x coordinate
      y - the image y coordinate
  • Method Details

    • setXY

      public void setXY(double x, double y)
      Overrides TPoint setXY method. This moves the origin so the world coordinates do not change.
      Specified by:
      setXY in interface Interactive
      Overrides:
      setXY in class TPoint
      Parameters:
      x - the x position
      y - the y position
    • showCoordinates

      public void showCoordinates(VideoPanel vidPanel)
      Overrides TPoint showCoordinates method. This updates the values of the x and y fields.
      Overrides:
      showCoordinates in class TPoint
      Parameters:
      vidPanel - the video panel
    • setAdjusting

      public void setAdjusting(boolean adjusting, MouseEvent e)
      Overrides TPoint method.
      Overrides:
      setAdjusting in class TPoint
      Parameters:
      adjusting - true if being dragged
      e - a MouseEvent, may be null