public abstract class Producer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
imgCounter |
float |
itsFps |
long |
itsFrameDuration |
int |
itsHeight |
RHPathPlotter |
itsPathPlotter |
int |
itsWidth |
java.io.File |
outFile |
java.lang.String |
outPath |
Constructor and Description |
---|
Producer(java.io.File aFile,
int wid,
int hei,
float fps)
Constructor for the AVIProducer class.
|
Producer(java.io.File aFile,
int wid,
int hei,
long frameDur)
Constructor for the AVIProducer class.
|
Modifier and Type | Method and Description |
---|---|
void |
addFrame(java.awt.image.BufferedImage rendImg)
adds the frame
|
void |
close()
closes the producer
|
void |
configure(int wid,
int hei,
long frameDur)
configure the AVIProducer class.
|
FrameRenderer |
getItsRenderer()
set the frame renderer
|
java.awt.image.BufferedImage |
getSubImage(java.awt.image.BufferedImage rendImg)
returns the buffered image for the export region
|
java.awt.Rectangle |
getSubRect()
returns the export region
|
void |
initializeOutput(java.io.File aFile)
set the time between produced images in ms.
|
void |
setFps(float fps)
set the fps of produced images.
|
void |
setItsRenderer(FrameRenderer itsRenderer)
get the frame renderer
|
void |
setSubRect(java.awt.Rectangle subRect)
set the export region
|
void |
setTimeBetween(long dur)
set the time between produced images in ms.
|
public java.io.File outFile
public java.lang.String outPath
public RHPathPlotter itsPathPlotter
public int itsWidth
public int itsHeight
public float itsFps
public long itsFrameDuration
public int imgCounter
public Producer(java.io.File aFile, int wid, int hei, float fps) throws java.lang.Exception
java.lang.Exception
public Producer(java.io.File aFile, int wid, int hei, long frameDur) throws java.lang.Exception
java.lang.Exception
public void configure(int wid, int hei, long frameDur) throws java.lang.Exception
java.lang.Exception
public void initializeOutput(java.io.File aFile) throws java.lang.Exception
java.lang.Exception
public FrameRenderer getItsRenderer()
public void setItsRenderer(FrameRenderer itsRenderer)
public void setTimeBetween(long dur) throws java.lang.Exception
java.lang.Exception
public void setFps(float fps) throws java.lang.Exception
java.lang.Exception
public java.awt.Rectangle getSubRect()
public void setSubRect(java.awt.Rectangle subRect) throws java.lang.Exception
java.lang.Exception
public java.awt.image.BufferedImage getSubImage(java.awt.image.BufferedImage rendImg) throws java.lang.Exception
java.lang.Exception
public void addFrame(java.awt.image.BufferedImage rendImg) throws java.lang.Exception
java.lang.Exception
public void close() throws java.lang.Exception
java.lang.Exception
RH, 2017