CineLoop

Synopsis

This module records movements in the Data Viewer and replays them in a loop with different speed.

Input Ports

view DefaultView+DefaultView input for the current view of the data viewer
end float number of the last frame

Parameters

enable int toggles record (and playback) mode on or off
backward int toggles backward mode on or off
start_frame int defines number of the first frame
rate float defines framerate

Output Ports

frame_out int number of the frame that is currently shown

Description

The CineLoop macro records all the movements of the displayed objects in the data viewer. The recorded frames are displayed in a loop. Further changes are recorded while the recorded frames are shown. The end Value defines the number of frames that can be recorded. The CineLoop macro only plays back static frames. Movements between these frames are left out. The macro records everything that covers the data window (this includes windows from other Applications if they are on top of the Viewer window). The only thing that is not recorded is the mouse pointer. The CineLoop macro contains a simple UserInterface.

Input Ports

view

The current view in the data viewer. The view is cached in the cache module of the CineFunc macro. In playback mode Cine_Control module in CineFunc controls the displayed frames.

end

Sets the total number of frames. The loop will restart when the end frame is reached. So you only can record within the loop, recording after the end affects the beginning of the loop.

Parameters

enable

Can be controlled by a checkbox and switchs record/playback mode on or off. The enable value is used by Cine_Control and cache module in the CineFunc macro.

backward

Can be controlled by a checkbox and switchs backward mode on or off. The backward value is used by Cine_Control module in the CineFunc macro.

start_frame

Can be controlled by a input field and sets the number of the starting frame. Frames before that are not played.

rate

Can be controlled by a slider and defines the current frame rate.

Output Ports

frame_out

Provides the currently shown frame number.

Utility Macros

The User Macro CineLoop combines the Functional Macro CineFunc with the UI Macro CineLoopUI, via the use of the common parameter block CineParams, to provide a usable macro in the visualization library.

Example

An example application CineLoopEg is provided, which uses the AVS/Express sample data file mri.fld, to show the functionality of the macro.

Files

iac_proj/cine/cinemacs.v contains the Functional Macro CineFunc, the User Macro CineLoop, the UI Macro CineLoopUI and the Example Application CineLoopEg. This file also contains the CineInteract macros.

Authors

unknown

Modifications

Gorden Tausch
Manchester Visualization Centre
Tobias Schiebeck
Manchester Visualization Centre

Contact

International AVS Centre
Manchester Visualization Centre
Kilburn Building
University of Manchester
Oxford Road
Manchester
United Kingdom
M13 9PL

See Also

Image_Cache, Cine_Control and CineInteract.