Class PerspectiveStep
java.lang.Object
org.opensourcephysics.cabrillo.tracker.Step
org.opensourcephysics.cabrillo.tracker.PerspectiveStep
- All Implemented Interfaces:
Cloneable
This is a Step for a PerspectiveTrack.
- Author:
- Douglas Brown
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
A corner TPoint class to fire property change events -
Field Summary
Fields inherited from class org.opensourcephysics.cabrillo.tracker.Step
dataVisible, defaultIndex, footprint, format, hitRect, n, panelMarks, points, screenPoints, selectionShape, selectionStroke, trackID, transform, type, TYPE_ACCELERATION, TYPE_UNKNOWN, TYPE_VELOCITY, valid
-
Constructor Summary
ConstructorsConstructorDescriptionPerspectiveStep
(PerspectiveTrack track, int n, double x, double y) Constructs a PerspectiveStep with specified image coordinates. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones this Step.Gets the default point.protected Mark
getMark
(TrackerPanel trackerPanel) Overrides Step getMark method.int
Gets the index of a position or perspective filter corner point.toString()
Returns a String describing this step.Methods inherited from class org.opensourcephysics.cabrillo.tracker.Step
dispose, draw, erase, erase, findInteractive, getFrameNumber, getLength, getPoints, getTrack, remark, remark, repaint, repaint, setDefaultPointIndex, setFootprint, setHitRectCenter
-
Constructor Details
-
PerspectiveStep
Constructs a PerspectiveStep with specified image coordinates.- Parameters:
track
- the PerspectiveTrack trackn
- the frame numberx
- the x coordinatey
- the y coordinate
-
-
Method Details
-
getPointIndex
Gets the index of a position or perspective filter corner point.- Overrides:
getPointIndex
in classStep
- Parameters:
p
- the point- Returns:
- the index, or -1 if not found
-
getDefaultPoint
Gets the default point.- Overrides:
getDefaultPoint
in classStep
- Returns:
- the default TPoint
-
getMark
Overrides Step getMark method. -
clone
Clones this Step. -
toString
Returns a String describing this step.
-