mod_colorcode__define.pro


Name:
mod_colorcode
Description:
Module for color coding of result images.
There's two ways:
- replace the greyscale color map by any of the predefined IDL color
tables
- application of a logarithmic color scale. The user needs to
define the normalization value by ROI placement. Besides he
may set a multiplication factor which defines how the scale
'stretches'
Color coding always applies to the full set - a preview of the
color encoded set is displayed in a mrMultidisplay object at the
lower third of the screen.
The color encoded image sets are stored under the same name,
but with class specifier 'color'

Name:
mod_colorcode::init
Syntax:
obj = obj_new('lupemod', type, exclusive )
Arguments:
Description:

Name:
mod_colorcode::readyToExecute
Description:
Need image sets with class 'result' for execution

Name:
mod_colorcode::map
Description:
Embedded module.

Name:
mod_colorcode::unmap
Syntax:
Arguments:
killed
If the user killed the window via Ctrl-F4 or the close handle (the
cross at the upper right), killed is set to '1'. In this case it
might be (I have not tested this) that the system's window manager
has already removed the window from screen.
Description:

Name:
mod_colorcode::sourceNameSelectEvt
Description:

Name:
mod_colorcode::targetNameSelectEvt
Description:

Name:
mod_colorcode::sliceSelectEvt
Description:

Name:
mod_colorcode::colorSchemeSelectEvt
Description:
Activates or deactivates the roiUI and then applies the selected
colorscheme via call to self->applyColorScheme

Name:
mod_colorcode::logScaleSelectEvt
Description:

Name:
mod_colorcode::interpolateEvt
Description:

Name:
mod_colorcode::storeRoisEvt
Description:

Name:
mod_colorcode::recallRoisEvt
Description:
Copy the roigroups from self.storedRoiGroups to self.roiGroups
and to the roiUI. The currently valid self.roiGroups are deleted.

Name:
mod_colorcode::deleteAllRoisEvt
Description:
Delete all roi groups and the currently displayed one

Name:
mod_colorcode::contrastModeEvt
Description:

Name:
mod_colorcode::gammaModeEvt
Description:
Dummy. Handled by contrastModeEvt

Name:
mod_colorcode::dicomViewButtonEvt
Description:

Name:
mod_colorcode::contUpdateButtonEvt
Description:

Name:
mod_colorcode::applyEncodingEvt
Description:

Name:
mod_colorcode::update
Description:
The callback function for the image set container.
- any image sets left? No -> unmap
- Currently displayed set still existing?
- no -> do nothing and return
- update name list of the source
- yes-> any image sets left?
-       no -> inform the user, then unmap
-      yes -> inform the user, select new image set, call imgSetChange
This method can also be used when mapping the UI.

Name:
mod_colorcode::imgSetChange
Description:
The user has selected a new image set
-> update all UI elements such that they reflect the current status
- update source and target name, keep current name, if possible
- activate or inactivate 'display dicom info'
- activate or inactivate 'log scale factor'
- activate or inactivate mrRoi widget
display the new image set

Name:
mod_colorcode::display
Description:
display the new slice, keeping all contrast/gamma/zooming settings

Name:
mod_colorcode::displayColorSet
Description:
Check whether a color image set with the currently selected name
exists and display it, if so

Name:
mod_colorcode::applyColorScheme
Description:
Apply the selected colorscheme to the currently displayed imageset
Save the created colored image set in a new mrImageSet object

Name:
mod_colorcode::calcRoiMean
Description:
Calculate the roi mean value and store it in self.roiMean
In most cases, only rois in the present slice need to be recalcu-
lated, but we skip this optimization option for now.

Name:
mod_colorcode::roiChangeEvt, evt
Description:

Name:
mod_colorcode::load
Description:
Hooked into mrroi's load button - as opposed to mrroi's build-in
load function, this one is able to load a roigroup for each slice.

Name:
mod_colorcode::save
Description:
Hooked into mrroi's save button. As opposed to mrroi's built-in save
function this one here saves all roigroups from all slices

Name:
mod_colorcode__define
Description:
Private Procedure (constructor)

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