mod_ssvd__define.pro


Name:
mod_ssvd
Description:
Implementation of simple singular value decomposition

Name:
mod_ssvd::init
Syntax:
obj = obj_new('lupemod', type, exclusive )
Arguments:
g is a pointer to the global structure
Description:
A module in Lupe is a class derived from class lupemod. A module is
instanciated only once at program startup.

Name:
mod_ssvd::readyToExecute
Description:
When the user selects a menu entry, the framework will call the
'readyToExecute' function of the corresponding module. The
function should return '1', if all pre-conditions to map/execute
this module are fulfilled, otherwise it should return '0'.
In case '0' is returned, it is the module's responsibility to
inform the user *why* it is not executed.
In this case, we check whether the necessary input data (raw,
baseline, aif) is available. If not, we inform the user.

Name:
mod_ssvd::map
Description:
The map method is called for 'top' and 'embedded' modules if readyToExecute
returned '1', immediately after 'readyToExecute' (i.e. you may rely on
the conditions checked in the latter.
Event handling:
All selectable widgets need to have a uvalue set which specifies which
object/method pair to call upon any widget event, for example
x = widget_button( 'buttontext', uvalue={o:self, m:'buttonEvt'} )
'o' denotes the object to call (that's us), 'm' the method.
Event handling is done via lupemod which (in this case upon mouse click
on the button) will then call self->buttonEvt.
Widget IDs:
Widget IDs are stored in object variables idSomething for later use.

Name:
mod_ssvd::unmap
Description:
Removes the module from screen. At this point, temporary objects
like displays and plugins have to be destroyed as well as they're
created anew with each 'map'.
Final unmapping is done via the unmap method of the superclass.

Name:
mod_ssvd::calcButtonEvt
Description:
There's not too many events in this module.
The 'evt' argument is whatever IDL provided to the event-handler.
The calculate function is not called directly as UI event handling
and functionality are split to allow for possible batch processing.

Name:
mod_ssvd::closeButtonEvt
Description:

Name:
mod_ssvd::dummyEvt
Description:
Does nothing. The content of the image set name text fields is
not stored, but read directly from the widget when needed.
Nevertheless the text widgets create events upon key-press and we
have to catch these.

Name:
mod_ssvd::updateParameters
Description:
Get the parameters from preferences and display them

Name:
mod_ssvd::calculate
Description:
Perform the SVD calculation, slice by slice, and display the results
after each slice

Name:
mod_ssvd::calcPerfusionImages
Description:
Calculates the perfusion images via simple SVD

Name:
mod_ssvd__define
Description:
Private Procedure (constructor)

Last modified: Fri Oct 29 07:19:17 2004