Creates awindow that cycles through a sequence of images.
parent
rate
windowid
Dims
Do_tvscl
0 Specifies TV is used instead (no scaling).
Maximum
Order
Pixmap
0 Specifies the data is stored in a variable.
Popup
If present and nonzero, the MovieTool widget is displayed in its own Main window.
A two-element vector specifying the x- and y-coordinates of the upper-left corner of the MovieTool window (long integer). The elements of the vector are [x, y], where x (horizontal) and y (vertical) are specified in pixels. These coordinates are either: 1) if parent is present and the Popup keyword is not specified or has a value of zero, measured from the upper-left corner of a layout (container) widget or 2) if the Popup keyword is present and nonzero (regardless of whether parent is present and/or nonzero), measured from the upper-left corner of the screen.
A two-element vector specifying the width and height of the display area (long integer). If not specified, the default size of the display area is m-by-n pixels, where m and n are defined by image_data.
A string containing the title that appears in the header of the MovieTool window. Default value is "Movie Tool".
A two-element vector specifying the width and height of the viewport onto the display area (long integer). If not specified, the default size of the viewport is m-by-n pixels, where m and n are defined by image_data.
Background
Specifies the background color name.
Specifies the base color.
Specifies the name of the font used for text.
Specifies the foreground color name.
Bottom
If a widget ID is specified (for example,
Bottom=wid
), then the bottom of the color bar widget is attached to the top of the specified widget. If no widget ID is specified (for example, /Bottom
), then the bottom of the movie widget is attached to the bottom of the parent widget. If a widget ID is specified (for example,
Left=wid
), then the left side of the movie widget is attached to the right side of the specified widget. If no widget ID is specified (for example, /Left
), then the left side of the movie widget is attached to the left side of the parent widget. If a widget ID is specified (for example,
Right=wid
), then the right side of the movie widget is attached to the left side of the specified widget. If no widget ID is specified (for example, /Right
), then the right side of the movie widget is attached to the right side of the parent widget. If a widget ID is specified (for example,
Top=wid
), then the top of the movie widget is attached to the bottom of the specified widget. If no widget ID is specified (for example, /Top
), then the top of the movie widget is attached to the top of the parent widget.
Figure 2-157 WgMovieTool creates an interactive window that lets you use the mouse to control the pace and direction of an animated series of images.
Figure 2-158 WgMovieTool creates an interactive window that lets you use the mouse to control the pace and direction of an animated series of images.
movie.pro
. Unlike the blocking behavior that you encounter with movie.pro, you can interact with other windows while MovieTool is open and running.
You can use the output parameter windowid to keep track of the PV-WAVE window ID that is assigned to the MovieTool. You can create multiple instances of the MovieTool; each one will be assigned a different PV-WAVE window ID.
NOTE: Use the window manager menu of the window frame to dismiss the MovieTool window from the screen.
parent
is defined, WgMovieTool is created as a child of parent
; otherwise, WgMovieTool runs on its own (i.e., in its own event loop).When you are finished interacting with the WgMovieTool window, close it using the window manager menu.
PRO Sample_wgmovietool, parent, tool_shell heart = BYTARR(256, 256, 15)
IF !Version.platform EQ 'VMS' THEN $ OPENR, u, GETENV('WAVE_DIR')+$ '[data]heartbeat.dat', /Get_lun $ ENDIF ELSE BEGIN OPENR, u, !Dir+'/data/heartbeat.dat', /Get_lun ENDELSE READU, u, heart
CLOSE, u FREE_LUN, u
IF N_ELEMENTS(parent) NE 0 THEN BEGIN WgMovieTool, heart, parent, tool_shell, $ /Do_tvscl, /Pixmap, /Popup
ENDIF ELSE BEGIN WgMovieTool, heart, /Do_tvscl, /Pixmap
ENDELSE END
For more information about how to transfer image data to variables, refer to Input and Output of Image Data in Chapter 8 of the PV-WAVE Programmer's Guide.
For more information about pixmaps, refer to Appendix , Output Devices and Window Systems.
For more information about color table indices, refer to Experimenting with Different Color Tables in Chapter 11 of the PV-WAVE User's Guide.
For more information about how to write an application program based on WAVE Widgets, refer to Chapter 5, Using WAVE Widgets, in the PV-WAVE GUI Application Developer's Guide. For more information about how to write an application program based on the PV-WAVE Widget Toolbox, refer to Chapter 6, Using the Widget Toolbox, in the PV-WAVE GUI Application Developer's Guide.