|
|||||||||
| 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.RGBStep
public class RGBStep
This is a step for RGB tracks. It is used for obtaining RGB data in a region of a video image.
| Nested Class Summary | |
|---|---|
protected class |
RGBStep.Position
|
| Field Summary | |
|---|---|
protected static java.awt.geom.GeneralPath |
crosshair
|
protected boolean |
dataValid
|
protected java.util.Map<TrackerPanel,java.awt.Shape> |
hitShapes
|
protected RGBStep.Position |
position
|
protected int |
radius
|
protected double[] |
rgbData
|
protected RGBRegion |
rgbRegion
|
| 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 | |
|---|---|
RGBStep(RGBRegion track,
int n,
double x,
double y,
int r)
Constructs a RGBStep with specified 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. |
static XML.ObjectLoader |
getLoader()
Returns an ObjectLoader to save and load data for this class. |
protected Mark |
getMark(TrackerPanel trackerPanel)
Overrides Step getMark method. |
TPoint |
getPosition()
Gets the position TPoint. |
double[] |
getRGBData(TrackerPanel trackerPanel)
Gets the RGB data. |
void |
setRadius(int r)
Sets the radius. |
java.lang.String |
toString()
Returns a String describing this step. |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.Step |
|---|
erase, erase, getDefaultAutotrackIndex, getDefaultPoint, getFrameNumber, getLength, 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 static java.awt.geom.GeneralPath crosshair
protected RGBStep.Position position
protected RGBRegion rgbRegion
protected int radius
protected java.util.Map<TrackerPanel,java.awt.Shape> hitShapes
protected double[] rgbData
protected boolean dataValid
| Constructor Detail |
|---|
public RGBStep(RGBRegion track,
int n,
double x,
double y,
int r)
track - the trackn - the frame numberx - the x coordinatey - the y coordinater - the radius| Method Detail |
|---|
public TPoint getPosition()
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 void setRadius(int r)
r - the radiuspublic java.lang.Object clone()
clone in class Steppublic java.lang.String toString()
toString in class Steppublic double[] getRGBData(TrackerPanel trackerPanel)
trackerPanel - the tracker panel
public static XML.ObjectLoader getLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||