Image_Cache
Synopsis
The Image_Cache module caches frames of the displayed objects in data viewer.
module Image_Cache<src_file="imgcache.c"> {
omethod+notify_inst create() = "CacheCreate";
omethod+req set_mode(.mode+notify+read+write+req
) = "CacheSetMode";
omethod+req set_capture(.capture+notify+read+req,
.playback+nonotify+write
) = "CacheCapture";
omethod+req set_playback(.playback+notify+read+req,
.capture+nonotify+write
) = "CachePlayback";
omethod+req set_frame(.frame_in+notify+read+req,
.frame_out+nonotify+write
) = "CacheSetFrame";
omethod+req proc_trigger(.view+notify+read,
.frame_out+nonotify+write,
.num_frames+nonotify+write
) = "CacheProcessTrigger";
omethod+notify_deinst delete() = "CacheDestroy";
GDview_templ &view<NEportLevels={2,0}>;
enum mode<NEportLevels={2,0}> {
choices = {"interactive","loop"};
} = "interactive";
Boolean capture<NEportLevels={2,0}>;
Boolean playback<NEportLevels={2,0}>;
int frame_in<NEportLevels={2,0}>;
int frame_out<NEportLevels={0,2}>;
int num_frames<NEportLevels={0,2}>;
ptr hidden<NEvisible=0> = 0;
};
Description
The Image_Cache module caches the frames of the movements of the displayed objects in the data viewer. In playback mode the cached frames are provided to the viewer with the set frame rate. The Image_Cache module records everything that covers the data window, except for the mouse pointer.
Inputs
view
Input for the current view of the data viewer.
mode
"interactive" (=0) is used for the CineInteract macro. The recording must be stopped manually. "loop" (=1) is used for the CineLoop module. It starts frames from the beginning when the end value has been reached.
capture
Reference to the enable value, via the parameter block, which is referenced by the &CineParams input.
playback
Reference to the playback value, via the parameter block, which is referenced by the &CineParams input. In CineLoop this value is not required.
frame_in
Reference to the frame_in value of the Cine_Control module.
Outputs
frame_out
Value of the currently shown frame.
frame_number
Number of all frames.
Utility Macros
The Cache_Image module is used in the Functional Macro CineFunc and is cooperating with the Cine_Control module.
Example
An example application CineInteractEg and CineLoopEg is provided, which uses the AVS/Express sample data file mri.fld, to show the functionality of the macro.
Files
iac_proj/cine/cine_mods.v contains the CineParams group, the Image_Cache module and the Cine_Control module V definitions.
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
Cine_Control, CineInteract and CineLoop.
|