public class MovieFrameRenderer extends java.lang.Object implements FrameRenderer
Modifier and Type | Field and Description |
---|---|
AVIProducer |
itsMovieProducer |
RHPathPlotter |
itsPlotterPanel |
static int |
TargetStyle_COORD |
static int |
TargetStyle_CYLON_RAIDER |
static int |
TargetStyle_OBJECT |
static int |
TargetStyle_RAWIMAGE |
Constructor and Description |
---|
MovieFrameRenderer()
empty constructor
|
MovieFrameRenderer(AVIProducer theProducer)
constructor with the Renderer's MovieProducer
|
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
|
void |
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
|
void |
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 |
setMovieProducer(AVIProducer theProducer)
installs the Renderer's MovieProducdr
|
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 AVIProducer itsMovieProducer
public RHPathPlotter itsPlotterPanel
public MovieFrameRenderer()
public MovieFrameRenderer(AVIProducer theProducer)
theProducer
- the MovieProducerpublic void setMovieProducer(AVIProducer theProducer)
theProducer
- the MovieProducerpublic 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
renderBackground
in interface FrameRenderer
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
renderImage
in interface FrameRenderer
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
renderObjects
in interface FrameRenderer
theData
- data for found targetsjava.lang.Exception
public void renderFrame(java.awt.image.BufferedImage theBGImage, java.util.List<TargetCaptureData> theData, java.lang.String frameTimeString) throws java.lang.Exception
renderFrame
in interface FrameRenderer
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 void renderFrame(java.util.List<TargetCaptureData> theData, java.lang.String frameTimeString) throws java.lang.Exception
renderFrame
in interface FrameRenderer
theData
- data for found targetsframeTimeString
- the string indicating the time stampjava.lang.Exception
public int getPlotTargetStyle()
public void setPlotTargetStyle(int plotTargetStyle)
RH, 2017