public class FrameRenderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
height |
RHPathPlotter |
itsPlotterPanel |
static int |
TargetStyle_COORD |
static int |
TargetStyle_CYLON_RAIDER |
static int |
TargetStyle_OBJECT |
static int |
TargetStyle_RAWIMAGE |
int |
width |
Constructor and Description |
---|
FrameRenderer(int w,
int h)
empty constructor
|
Modifier and Type | Method and Description |
---|---|
void |
confirmElements(java.util.List<TargetCaptureData> theData)
confirms the validity of the setup for rendering
|
int |
getPlotTargetStyle() |
void |
renderBackground(java.awt.image.BufferedImage theBGImage)
renders a background image once, then sets it to null to avoid continued rendering
|
java.awt.image.BufferedImage |
renderFrame(java.awt.image.BufferedImage theBGImage,
java.util.List<TargetCaptureData> theData,
java.lang.String frameTimeString)
renders target data and info into frame over a provided background, then adds it into the AVIProducer
|
java.awt.image.BufferedImage |
renderFrame(java.util.List<TargetCaptureData> theData,
java.lang.String frameTimeString)
renders target data and info into frame, then adds it into the AVIProducer
|
void |
renderImage(java.awt.image.BufferedImage theBGImage)
renders a background image once, then sets it to null to avoid continued rendering
|
void |
renderObjects(java.util.List<TargetCaptureData> theData)
renders target data into the frame
|
void |
setPlotTargetStyle(int plotTargetStyle) |
public static final int TargetStyle_RAWIMAGE
public static final int TargetStyle_CYLON_RAIDER
public static final int TargetStyle_COORD
public static final int TargetStyle_OBJECT
public RHPathPlotter itsPlotterPanel
public int width
public int height
public void confirmElements(java.util.List<TargetCaptureData> theData) throws java.lang.Exception
theData
- data for found targetsjava.lang.Exception
public void renderBackground(java.awt.image.BufferedImage theBGImage) throws java.lang.Exception
theBGImage
- provide a background image to use (e.g., the reference frame)java.lang.Exception
public void renderImage(java.awt.image.BufferedImage theBGImage) throws java.lang.Exception
theBGImage
- provide a background image to use (e.g., the reference frame)java.lang.Exception
public void renderObjects(java.util.List<TargetCaptureData> theData) throws java.lang.Exception
theData
- data for found targetsjava.lang.Exception
public java.awt.image.BufferedImage renderFrame(java.awt.image.BufferedImage theBGImage, java.util.List<TargetCaptureData> theData, java.lang.String frameTimeString) throws java.lang.Exception
theBGImage
- provide a background image to use (e.g., the reference frame)theData
- data for found targetsframeTimeString
- the string indicating the time stampjava.lang.Exception
public java.awt.image.BufferedImage renderFrame(java.util.List<TargetCaptureData> theData, java.lang.String frameTimeString) throws java.lang.Exception
theData
- data for found targetsframeTimeString
- the string indicating the time stampjava.lang.Exception
public int getPlotTargetStyle()
public void setPlotTargetStyle(int plotTargetStyle)
RH, 2017