|
|||||||||
| 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
A class that represents the position of a calibration point. |
| Field Summary | |
|---|---|
protected double |
worldX0
|
protected double |
worldX1
|
protected double |
worldY0
|
protected double |
worldY1
|
| Fields inherited from class org.opensourcephysics.cabrillo.tracker.Step |
|---|
dataVisible, defaultIndex, footprint, format, frc, hitRect, marks, n, points, screenPoints, selectionShape, track, transform, valid |
| Constructor Summary | |
|---|---|
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. |
TPoint |
getDefaultPoint()
Gets the default point. |
static int |
getLength()
Gets the step length. |
static XML.ObjectLoader |
getLoader()
Returns an ObjectLoader to save and load data for this class. |
protected Mark |
getMark(TrackerPanel trackerPanel)
Overrides Step getMark method. |
CalibrationStep.Position |
getPosition(int n)
Gets the specified position point. |
boolean |
setWorldCoordinates(double x1,
double y1,
double x2,
double y2)
Sets the world coordinates. |
java.lang.String |
toString()
Returns a String describing this step. |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.Step |
|---|
draw, erase, erase, findInteractive, getBounds, getDefaultAutotrackIndex, getFrameNumber, getPointIndex, 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 |
| Field Detail |
|---|
protected double worldX0
protected double worldY0
protected double worldX1
protected double worldY1
| 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| 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 CalibrationStep.Position getPosition(int n)
n - the point number (0 or 1)public TPoint getDefaultPoint()
getDefaultPoint in class Stepprotected Mark getMark(TrackerPanel trackerPanel)
getMark in class SteptrackerPanel - the tracker panel
public java.lang.Object clone()
clone in class Step
public boolean setWorldCoordinates(double x1,
double y1,
double x2,
double y2)
x1 - the world x coordinatey1 - the world y coordinate
public java.lang.String toString()
toString in class Steppublic static int getLength()
public static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||