|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.util.MovieEncoder.SequenceExporter
this is a utility class that lets you easily take a completed animation sequence and push it out to a Quicktime file. Each frame can take as long as it need to render its image.
Field Summary | |
protected java.awt.image.BufferedImage |
bufferedImg1
|
protected java.awt.image.BufferedImage |
bufferedImg2
|
protected java.awt.Dimension |
d
|
protected double |
duration
|
protected SequenceExportEventListener |
el
|
protected float |
frameRate
|
protected java.awt.Graphics2D |
graphicsHandle1
|
protected java.awt.Graphics2D |
graphicsHandle2
|
protected java.awt.geom.AffineTransform |
identity
|
protected boolean |
isComplete
|
protected double |
lastTime
|
protected int |
motionBlur
|
protected java.awt.Component |
panel
|
protected java.awt.Rectangle |
screenRect
|
protected kinetic.Sequence |
seq
|
protected boolean |
updateScreen
|
Constructor Summary | |
SequenceExporter(java.awt.Component p,
kinetic.Sequence s,
double dur,
float frameRate)
creates a new instance of a sequence exporter. |
Method Summary | |
boolean |
endOfMedia()
|
void |
export(java.lang.String filename,
float quality)
|
float |
getFrameRate()
|
int |
getHeight()
|
int |
getWidth()
|
java.awt.image.BufferedImage |
read(long frameNumber)
|
void |
setEventListener(SequenceExportEventListener e)
set if you want to be able to respond to the exporter events such as a progress bar |
void |
setMotionBlur(int blur)
allows you to set the motion blur output of the exporter. |
void |
setMotionBlur(int blur,
double shutterAngle,
double shutterPhase)
allows you to set the motion blur output of the exporter. |
void |
updateCanvas(boolean update)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Component panel
protected java.awt.Dimension d
protected java.awt.Rectangle screenRect
protected float frameRate
protected kinetic.Sequence seq
protected double duration
protected boolean isComplete
protected java.awt.image.BufferedImage bufferedImg1
protected java.awt.Graphics2D graphicsHandle1
protected java.awt.image.BufferedImage bufferedImg2
protected java.awt.Graphics2D graphicsHandle2
protected java.awt.geom.AffineTransform identity
protected boolean updateScreen
protected int motionBlur
protected double lastTime
protected SequenceExportEventListener el
Constructor Detail |
public SequenceExporter(java.awt.Component p, kinetic.Sequence s, double dur, float frameRate)
p
- the drawing canvass
- the animation sequencedur
- the desired duration of movie (seconds)frameRate
- the desired frameRate of the movie (fps)Method Detail |
public void setEventListener(SequenceExportEventListener e)
e
- an export event listenerpublic boolean endOfMedia()
endOfMedia
in interface BufferedImageSource
public int getWidth()
getWidth
in interface BufferedImageSource
public int getHeight()
getHeight
in interface BufferedImageSource
public float getFrameRate()
getFrameRate
in interface BufferedImageSource
public void updateCanvas(boolean update)
public void setMotionBlur(int blur)
blur
- number of temporally super sampled to renderpublic void setMotionBlur(int blur, double shutterAngle, double shutterPhase)
blur
- number of images to render per frameshutterAngle
- shutter angle 0-360 degrees. 180 by defaultshutterPhase
- shutter phase 0-360 degrees. 0 by default.public java.awt.image.BufferedImage read(long frameNumber)
read
in interface BufferedImageSource
public void export(java.lang.String filename, float quality)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |