|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.Step
org.opensourcephysics.cabrillo.tracker.CalibrationStep
public class CalibrationStep
This is a Step for a Calibration. It is used for setting the origin, angle and scale of an ImageCoordSystem.
| Nested Class Summary | |
|---|---|
class |
CalibrationStep.Position
|
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.cabrillo.tracker.Step |
|---|
dataVisible, defaultIndex, footprint, format, hitRect, marks, n, points, screenPoints, selectionShape, track, transform |
| Constructor Summary | |
|---|---|
CalibrationStep(Calibration track,
int n)
Constructs a CalibrationStep using the existing world coordinates. |
|
CalibrationStep(Calibration track,
int n,
double x,
double y)
Constructs a CalibrationStep with specified image coordinates. |
|
| Method Summary | |
|---|---|
void |
addPosition(double x,
double y)
Adds a position point to this step at the specified image coordinates. |
java.lang.Object |
clone()
Clones this Step. |
Interactive |
findInteractive(DrawingPanel panel,
int xpix,
int ypix)
Implements findInteractive method. |
TPoint |
getDefaultPoint()
Gets the default point. |
protected Mark |
getMark(TrackerPanel trackerPanel)
Overrides Step getMark method. |
TPoint |
getPosition1()
Gets position 1. |
TPoint |
getPosition2()
Gets position 2. |
java.lang.String |
toString()
Returns a String describing this step. |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.Step |
|---|
draw, erase, erase, getBounds, getFrameNumber, getPoints, getTrack, remark, remark, repaint, repaint, setDefaultPointIndex, setFootprint, setHitRectCenter |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CalibrationStep(Calibration track,
int n,
double x,
double y)
track - the calibrationn - the frame numberx - the image x coordinate of point 0y - the image y coordinate of point 0
public CalibrationStep(Calibration track,
int n)
track - the calibrationn - the frame number| Method Detail |
|---|
public void addPosition(double x,
double y)
x - the image x coordinate of the position pointy - the image y coordinate of the position pointpublic TPoint getPosition1()
public TPoint getPosition2()
public TPoint getDefaultPoint()
getDefaultPoint in class Step
public Interactive findInteractive(DrawingPanel panel,
int xpix,
int ypix)
findInteractive in class Steppanel - the drawing panelxpix - the x pixel position on the panelypix - the y pixel position on the panel
protected Mark getMark(TrackerPanel trackerPanel)
getMark in class SteptrackerPanel - the tracker panel
public java.lang.Object clone()
clone in class Steppublic java.lang.String toString()
toString in class Step
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||