|
|||||||||
| 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.LineProfileStep
public class LineProfileStep
This is a step for a LineProfile. It is used for obtaining line profile data from a video image.
| Field Summary | |
|---|---|
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.Corner[][] |
corners
|
protected java.util.Map<TrackerPanel,java.awt.Shape> |
end0Shapes
|
protected java.util.Map<TrackerPanel,java.awt.Shape> |
end1Shapes
|
protected boolean |
endsEnabled
|
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridIntersection[] |
endX
|
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridIntersection[] |
endY
|
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.Handle |
handle
|
protected LineProfile |
line
|
protected TPoint |
lineEnd0
|
protected TPoint |
lineEnd1
|
protected java.util.Map<TrackerPanel,java.awt.Shape> |
shaftShapes
|
protected java.util.TreeSet<org.opensourcephysics.cabrillo.tracker.LineProfileStep.Intersection> |
sorter
|
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridIntersection[][] |
sweepX
|
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridIntersection[][] |
sweepY
|
protected java.util.ArrayList<org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridVertex> |
vertices
|
| 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 | |
|---|---|
LineProfileStep(LineProfile track,
int n,
double x1,
double y1,
double x2,
double y2)
Constructs a LineProfileStep with specified end point coordinates in image space. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones this Step. |
void |
draw(DrawingPanel panel,
java.awt.Graphics _g)
Overrides Step draw method. |
Interactive |
findInteractive(DrawingPanel panel,
int xpix,
int ypix)
Overrides Step findInteractive method. |
java.awt.Rectangle |
getBounds(TrackerPanel trackerPanel)
Overrides Step getBounds method. |
TPoint |
getHandle()
Gets the center handle. |
static int |
getLength()
Gets the step length. |
TPoint |
getLineEnd0()
Gets end 1. |
TPoint |
getLineEnd1()
Gets end 2. |
protected Mark |
getMark(TrackerPanel trackerPanel)
Overrides Step getMark method. |
double[][] |
getProfileData(TrackerPanel trackerPanel)
Gets the line profile data. |
boolean |
isEndsEnabled()
Gets whether the ends are enabled. |
protected void |
rotate()
Rotates this step about its center to keep it either horizontal or parallel to the x-axis. |
void |
setEndsEnabled(boolean enabled)
Enables and disables the interactivity of the ends. |
void |
setFootprint(Footprint footprint)
Overrides Step setFootprint method. |
java.lang.String |
toString()
Returns a String describing this step. |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.Step |
|---|
erase, erase, getDefaultAutotrackIndex, getDefaultPoint, getFrameNumber, getPointIndex, getPoints, getTrack, remark, remark, repaint, repaint, setDefaultPointIndex, setHitRectCenter |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TPoint lineEnd0
protected TPoint lineEnd1
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.Handle handle
protected boolean endsEnabled
protected java.util.Map<TrackerPanel,java.awt.Shape> end0Shapes
protected java.util.Map<TrackerPanel,java.awt.Shape> end1Shapes
protected java.util.Map<TrackerPanel,java.awt.Shape> shaftShapes
protected LineProfile line
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.Corner[][] corners
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridIntersection[] endX
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridIntersection[] endY
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridIntersection[][] sweepX
protected org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridIntersection[][] sweepY
protected java.util.TreeSet<org.opensourcephysics.cabrillo.tracker.LineProfileStep.Intersection> sorter
protected java.util.ArrayList<org.opensourcephysics.cabrillo.tracker.LineProfileStep.GridVertex> vertices
| Constructor Detail |
|---|
public LineProfileStep(LineProfile track,
int n,
double x1,
double y1,
double x2,
double y2)
track - the trackn - the frame numberx1 - the x coordinate of end 1y1 - the y coordinate of end 1x2 - the x coordinate of end 2y2 - the y coordinate of end 2| Method Detail |
|---|
public TPoint getLineEnd0()
public TPoint getLineEnd1()
public TPoint getHandle()
public void setEndsEnabled(boolean enabled)
enabled - true to enable the endspublic boolean isEndsEnabled()
true if the ends are enabledpublic void setFootprint(Footprint footprint)
setFootprint in class Stepfootprint - the footprint
public Interactive findInteractive(DrawingPanel panel,
int xpix,
int ypix)
findInteractive in class Steppanel - the drawing panelxpix - the x pixel positionypix - the y pixel position
public void draw(DrawingPanel panel,
java.awt.Graphics _g)
draw in class Steppanel - the drawing panel requesting the drawing_g - the graphics context on which to drawprotected Mark getMark(TrackerPanel trackerPanel)
getMark in class SteptrackerPanel - the tracker panel
public java.awt.Rectangle getBounds(TrackerPanel trackerPanel)
getBounds in class SteptrackerPanel - the tracker panel drawing the step
public java.lang.Object clone()
clone in class Steppublic java.lang.String toString()
toString in class Steppublic double[][] getProfileData(TrackerPanel trackerPanel)
trackerPanel - the tracker panel
protected void rotate()
public static int getLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||