|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.app.image.ImagePresenter
|
+--quicktime.app.players.MoviePresenter
The MoviePresenter is used to present typically a movie as a member of a SWCompositor. It will create an Invalidator to innvalidate its TwoDSprite that is presenting the movie in the SWCompositor when the movie redraws.
Outside of the use in the SWCompositor this Presenter also gives the ability to apply a GraphicsMode to the overall output of a movie and can be used also for easy manipulation and control of a movie's display characteristics, location and transformations. For example if you are moving a movie around the screen (for example bouncing it around) you will get better performance of the visual output using a MoviePresenter than doing these kinds of activities with a standard MoviePlayer presentation.
It uses the MovieDrawingComplete callback to either invalidate its presenting TwoDSprite or to redraw itself to the destination QDGraphics.
quicktime.app.display.SWCompositor| Field Summary | |
protected TwoDSprite |
spritePresenter
Deprecated. |
| Fields inherited from interface quicktime.app.players.Playable |
kDurationUnknown |
| Constructor Summary | |
MoviePresenter(Movie m)
Deprecated. since QTJava 6.1 |
|
MoviePresenter(Movie m,
QDGraphics g)
Deprecated. since QTJava 6.1 |
|
| Method Summary | |
void |
addDrawingListener(DrawingListener listener)
Deprecated. since QTJava 6.1 |
Invalidator |
addedToCompositor(SWCompositor c,
TwoDSprite s)
Deprecated. since QTJava 6.1 |
int |
execute(Movie m)
Deprecated. since QTJava 6.1 |
int |
getDuration()
Deprecated. since QTJava 6.1 |
Movie |
getMovie()
Deprecated. since QTJava 6.1 |
QDGraphics |
getOffscreenBuffer()
Deprecated. since QTJava 6.1 |
float |
getRate()
Deprecated. since QTJava 6.1 |
int |
getScale()
Deprecated. since QTJava 6.1 |
int |
getTime()
Deprecated. since QTJava 6.1 |
TimeBase |
getTimeBase()
Deprecated. since QTJava 6.1 |
float |
getVolume()
Deprecated. since QTJava 6.1 |
boolean |
isMuted()
Deprecated. since QTJava 6.1 |
boolean |
isPresenting()
Deprecated. since QTJava 6.1 |
void |
movieChanged()
Deprecated. since QTJava 6.1 |
void |
redraw(Region invalidRgn)
Deprecated. since QTJava 6.1 |
void |
removedFromCompositor(SWCompositor c)
Deprecated. since QTJava 6.1 |
void |
removeDrawingListener(DrawingListener listener)
Deprecated. since QTJava 6.1 |
void |
setGWorld(QDGraphics cgp)
Deprecated. since QTJava 6.1 |
void |
setMuted(boolean flag)
Deprecated. since QTJava 6.1 |
void |
setRate(float rate)
Deprecated. since QTJava 6.1 |
void |
setTime(int time)
Deprecated. since QTJava 6.1 |
void |
setVolume(float val)
Deprecated. since QTJava 6.1 |
| Methods inherited from class quicktime.app.image.ImagePresenter |
addedTo, doDraw, fromFile, fromGraphicsImporter, fromGraphicsImporterDrawer, fromGWorld, fromGWorld, fromImageSequence, fromImageSpec, fromPict, fromQTImage, getClip, getDescription, getDisplayBounds, getDSequence, getGraphicsMode, getGWorld, getImage, getInitialSize, getMatrix, getOriginalSize, isRedrawOptimised, removedFrom, removeImageData, setClip, setDisplayBounds, setGraphicsMode, setImageData, setImageData, setLocation, setMatrix, setRedrawOptimised, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface quicktime.app.image.Compositable |
getGraphicsMode, setGraphicsMode |
| Methods inherited from interface quicktime.app.image.ImageSpec |
getDescription, getImage |
| Field Detail |
protected TwoDSprite spritePresenter
| Constructor Detail |
public MoviePresenter(Movie m)
throws QTException
m - the movie that is rendered
public MoviePresenter(Movie m,
QDGraphics g)
throws QTException
m - the movie that is renderedg - the offscreen QDGraphics that the effect is rendered into.| Method Detail |
public void setGWorld(QDGraphics cgp)
throws QTException
setGWorld in interface QTDrawablesetGWorld in class ImagePresentercgp - a QDGraphics object
QTExceptionpublic boolean isPresenting()
public int execute(Movie m)
The callback will be triggered as a result of a call to Movie.task and is fired whenever the Movie draws to its internal QDGraphics - the offscreen buffer that the presenter presents.
execute in interface MovieDrawingCompletem - the Movie that is presented by this presenter
QTCallBack,
(int, quicktime.std.movies.MovieDrawingComplete)public Movie getMovie()
public QDGraphics getOffscreenBuffer()
public void redraw(Region invalidRgn)
throws QTException
redraw in interface Drawableredraw in class ImagePresenterinvalidRgn - the invalidRgn that the client should redraw
QTException
public TimeBase getTimeBase()
throws QTException
getTimeBase in interface TimeableQTException
public void setRate(float rate)
throws QTException
setRate in interface Timeablerate - the new playback rate.
QTException
public float getRate()
throws QTException
getRate in interface TimeableQTException
public void setTime(int time)
throws QTException
setTime in interface Playabletime - the new time value
QTException
public int getTime()
throws QTException
getTime in interface PlayableQTException
public int getDuration()
throws QTException
getDuration in interface PlayableQTException
public int getScale()
throws QTException
getScale in interface PlayableQTException
public float getVolume()
throws QTException
getVolume in interface AudioSpecQTException
public void setVolume(float val)
throws QTException
setVolume in interface AudioSpecval - the new volume
QTException
public boolean isMuted()
throws QTException
isMuted in interface AudioSpecQTException
public void setMuted(boolean flag)
throws QTException
setMuted in interface AudioSpecflag - turn muting on - true or off - false.
QTExceptionpublic void movieChanged()
Thus a potential usage of this method is if the MoviePresenter is presenting a QuickTime VR movie that has no real time line, and has programatically changed some characteristic of the display of the Movie. In which case it needs to inform the MoviePresenter that the Movie has changed and it should do the appropriate invalidation or redraw.
public Invalidator addedToCompositor(SWCompositor c,
TwoDSprite s)
throws QTException
The Invalidators provided with objects that implement the DynamicImage interface will execute at the scale and period of the Compositor when they are created.
addedToCompositor in interface DynamicImagec - the Compositor in which the DynamicImage is a members - the TwoDSprite that is presenting the DynamicImage's image in
the Compositor. This is the sprite that must be invalidated.
QTExceptionquicktime.app.display.SWCompositor
public void removedFromCompositor(SWCompositor c)
throws QTException
removedFromCompositor in interface DynamicImagec - the SWCompositor it is being removed from
QTExceptionpublic void addDrawingListener(DrawingListener listener)
addDrawingListener in interface DrawingNotifierpublic void removeDrawingListener(DrawingListener listener)
removeDrawingListener in interface DrawingNotifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||