mrcursorinfo__define.pro


Name:
mrCursorInfo
Methods:
Constructor
mrCursorInfo::init                : constructor, part II

General
mrCursorInfo::show                : show the info
mrCursorInfo::hide                : don't show
mrCursorInfo::toggle              : toggle show/no-show

Event handling
mrCursorInfo::selfregister        : register with a display object
mrCursorInfo::unregister          : unregister

Private
mrCursorInfo::mrDisplayEvtHandler : the event handler and broker for mr*display
mrCursorInfo::update              : update text string. Does not redisplay.
mrCursorInfo__define              : the constructor
mrCursorInfo::cleanup             : the destructor
Description:
A plugin object for mrdisplay which displays the current image coordinates
and image value next to the cross-hair cursor

Name:
mrCursorInfo::init
Syntax:
x = obj_new('mrCursorInfo', fontsize=float, color=intarr(3))
Arguments:
fontsize
fontsize in pixels. Default is 10.
color
3-element integer array with RGB-values. Default is [0,255,0] (green)
Description:
The constructor. Depending on font and fontsize, drawing the
graphic window results in 'Floating underflow' errors. Dunno what
to do about this.

Name:
mrCursorInfo::cleanup
Description:
cleanup at object destruction

Name:
mrCursorInfo::show
Syntax:
obj->show
Description:
Display info. Will redisplay mrDisplay.

Name:
mrCursorInfo::hide
Syntax:
obj->hide
Description:
Hide info. Will redisplay mrDisplay.

Name:
mrCursorInfo::toggle
Syntax:
obj->toggle
Description:
Toggles display of cursor info.

Name:
mrCursorInfo::selfregister
Syntax:
obj->selfregister, display, toggleKey='i'
Arguments:
display
The mrDisplay object with which to register
toggleKey
A key which will toggle data display on/off. toggleKey may either
be a single character or the corresponding ascii (byte) value.
Description:
Register with an mrDisplay object

Name:
mrCursorInfo::unregister
Syntax:
obj->unregister
Description:
unregisters with a mrdisplay object. It is a good idea to unregister
before destroying the mrdisplay or the mrCursorInfo object.

Name:
mrCursorInfo::mrDisplayEvtHandler
Syntax:
obj->mrDisplayEvtHandler, evt
Arguments:
evt
Pointer to the mrDisplay event structure
Description:
Dispatch the event coming from mrDisplay
Double-clicks and image changes might render the last known x and
y positions invalid (depends on whether e.g. the mrZoom plugin
registered earlier or later than mrCursorInfo - image change events
don't contain a valid x/y image position). These events will
thus temporarily switch off the display - until the next move event.

Name:
mrCursorInfo::update
Syntax:
obj->update, evt
Arguments:
evt
Pointer to the mrDisplay event structure
Description:
Updates information

Name:
mrCursorInfo__define
Type:
Private Procedure (constructor)

Last modified: Mon Nov 29 13:30:05 2004