public class RHPathPlotter extends RHComponent
Modifier and Type | Field and Description |
---|---|
java.awt.Graphics2D |
g2Comp |
float |
vanishingTrailAlpha |
g2, itsBuffImage, itsImage, itsTracker, xScale, yScale
Constructor and Description |
---|
RHPathPlotter(TrackerEngine trackEng,
int wid,
int hei)
Standard constructor for the SGPathPlotter class.
|
Modifier and Type | Method and Description |
---|---|
void |
checkForG2(java.awt.Graphics2D theG2)
confirms that the G2 graphics port is active and can be drawn into
|
void |
displayFrameTime(java.lang.String time) |
void |
displayTransparentRect(java.awt.Rectangle aRect,
float alpha) |
void |
drawAnalysisRects()
draws the outline of the areas of interest into the plotting canvas
|
void |
drawHotZoneRects()
draws the outline of the areas of interest into the plotting canvas
|
void |
drawPolys(SGPolygon[] thePolys,
java.awt.Color theColor) |
void |
drawShape(java.awt.Shape theShape) |
void |
drawShapeWithColor(java.awt.Shape theShape,
java.awt.Color theColor) |
void |
fadeG2Comp()
draws the outline of the areas of interest into the plotting canvas
|
void |
fillPolys(SGPolygon[] thePolys,
java.awt.Color theColor) |
void |
fillShape(java.awt.Shape theShape) |
void |
fillShapeWithColor(java.awt.Shape theShape,
java.awt.Color theColor) |
java.awt.image.BufferedImage |
getBufferedImageFromPanel()
returns a BufferedImage of the panel's graphics port
|
java.awt.Image |
getImage()
returns the Image for the Component
|
void |
paint(java.awt.Graphics g)
repaint the whole composition and blit to the JPanel.
|
void |
plotBody(java.awt.Point aPt,
java.awt.Color drawColor,
java.awt.Color fillColor) |
void |
plotCylonRaider(TargetCaptureData aTgD,
java.awt.Color drawColor,
java.awt.Color fillColor,
boolean realSized) |
void |
plotDirection(TargetCaptureData aTgD,
java.awt.Color drawColor,
java.awt.Color fillColor,
boolean realSized) |
void |
plotObject(TargetCaptureData aTgD,
java.awt.Color drawColor,
java.awt.Color fillColor) |
void |
plotOrientation(TargetCaptureData aTgD,
java.awt.Color theColor) |
void |
plotPt(java.awt.Point aPt,
java.awt.Color aColor) |
void |
resetComposer()
resets the graphics world for the plotting canvas
|
void |
setFrameTimeString(java.lang.String fTStr)
sets the number of captures faded into a vanishing trail.
|
void |
setImage(java.awt.Image anImage)
sets an Image for the Component
|
void |
setScale(java.awt.Dimension aDim)
sets the scale for plotting the coordinates
|
void |
setVanishingTrail(int nTrailImages)
sets the number of captures faded into a vanishing trail.
|
void |
setVanishingTrailAlpha(float vTrailAlpha)
sets whether past captures fade the longer ago they occurred
|
void |
updateCompElements()
draws the outline of the areas of interest into the plotting canvas
|
getXScale, getYScale, orderPointsForRect, scale, scale, unscale, unscale
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public java.awt.Graphics2D g2Comp
public float vanishingTrailAlpha
public RHPathPlotter(TrackerEngine trackEng, int wid, int hei)
trackEng
- the videotracker that plots to this JPanelpublic void setScale(java.awt.Dimension aDim)
setScale
in class RHComponent
aDim
- the native dimensions of the imagepublic java.awt.image.BufferedImage getBufferedImageFromPanel()
public java.awt.Image getImage()
public void setVanishingTrail(int nTrailImages) throws java.lang.Exception
java.lang.Exception
public void setVanishingTrailAlpha(float vTrailAlpha) throws java.lang.Exception
vTrailAlpha
- paint captures as vanishing trailjava.lang.Exception
public void setFrameTimeString(java.lang.String fTStr) throws java.lang.Exception
fTStr
- the stringjava.lang.Exception
public void setImage(java.awt.Image anImage) throws java.lang.Exception
setImage
in class RHComponent
anImage
- the Imagejava.lang.Exception
public void fadeG2Comp() throws java.lang.Exception
java.lang.Exception
public void displayTransparentRect(java.awt.Rectangle aRect, float alpha) throws java.lang.Exception
java.lang.Exception
public void displayFrameTime(java.lang.String time) throws java.lang.Exception
java.lang.Exception
public void drawHotZoneRects() throws java.lang.Exception
java.lang.Exception
public void drawAnalysisRects() throws java.lang.Exception
java.lang.Exception
public void updateCompElements() throws java.lang.Exception
java.lang.Exception
public void paint(java.awt.Graphics g)
paint
in class RHComponent
g
- the graphics world of the plotting canvaspublic void plotPt(java.awt.Point aPt, java.awt.Color aColor) throws java.lang.Exception
java.lang.Exception
public void plotBody(java.awt.Point aPt, java.awt.Color drawColor, java.awt.Color fillColor) throws java.lang.Exception
java.lang.Exception
public void plotObject(TargetCaptureData aTgD, java.awt.Color drawColor, java.awt.Color fillColor) throws java.lang.Exception
java.lang.Exception
public void plotCylonRaider(TargetCaptureData aTgD, java.awt.Color drawColor, java.awt.Color fillColor, boolean realSized) throws java.lang.Exception
java.lang.Exception
public void plotOrientation(TargetCaptureData aTgD, java.awt.Color theColor) throws java.lang.Exception
java.lang.Exception
public void plotDirection(TargetCaptureData aTgD, java.awt.Color drawColor, java.awt.Color fillColor, boolean realSized) throws java.lang.Exception
java.lang.Exception
public void fillPolys(SGPolygon[] thePolys, java.awt.Color theColor) throws java.lang.Exception
java.lang.Exception
public void drawPolys(SGPolygon[] thePolys, java.awt.Color theColor) throws java.lang.Exception
java.lang.Exception
public void fillShape(java.awt.Shape theShape) throws java.lang.Exception
java.lang.Exception
public void fillShapeWithColor(java.awt.Shape theShape, java.awt.Color theColor) throws java.lang.Exception
java.lang.Exception
public void drawShape(java.awt.Shape theShape) throws java.lang.Exception
java.lang.Exception
public void drawShapeWithColor(java.awt.Shape theShape, java.awt.Color theColor) throws java.lang.Exception
java.lang.Exception
public void checkForG2(java.awt.Graphics2D theG2) throws java.lang.Exception
theG2
- the graphics contentjava.lang.Exception
public void resetComposer()
RH, 2017