Class PerspectiveStep

java.lang.Object
org.opensourcephysics.cabrillo.tracker.Step
org.opensourcephysics.cabrillo.tracker.PerspectiveStep
All Implemented Interfaces:
Cloneable

public class PerspectiveStep extends Step
This is a Step for a PerspectiveTrack.
Author:
Douglas Brown
  • Constructor Details

    • PerspectiveStep

      public PerspectiveStep(PerspectiveTrack track, int n, double x, double y)
      Constructs a PerspectiveStep with specified image coordinates.
      Parameters:
      track - the PerspectiveTrack track
      n - the frame number
      x - the x coordinate
      y - the y coordinate
  • Method Details

    • getPointIndex

      public int getPointIndex(TPoint p)
      Gets the index of a position or perspective filter corner point.
      Overrides:
      getPointIndex in class Step
      Parameters:
      p - the point
      Returns:
      the index, or -1 if not found
    • getDefaultPoint

      public TPoint getDefaultPoint()
      Gets the default point.
      Overrides:
      getDefaultPoint in class Step
      Returns:
      the default TPoint
    • getMark

      protected Mark getMark(TrackerPanel trackerPanel)
      Overrides Step getMark method.
      Overrides:
      getMark in class Step
      Parameters:
      trackerPanel - the tracker panel
      Returns:
      the mark
    • clone

      public Object clone()
      Clones this Step.
      Overrides:
      clone in class Step
      Returns:
      a cloned step
    • toString

      public String toString()
      Returns a String describing this step.
      Overrides:
      toString in class Step
      Returns:
      a descriptive string