- 'Public' attributes are accessed directly via their name as e.g. in mrDisplay->scaling()
- Writable attributes are accessed via a corresponding 'set' method as in mrDisplay->setScaling, value
- Even if the an attribute value is an array, like e.g. ctr = mrdisplay->contrast() the set method uses individual arguments for each of the array elements. That is, it is mrDisplay->setContrast, center, width and not mrDisplay->setContrast, [center,width]
- 'Image' in method names is always shortcut to 'img'
- There's two types of callback or notification schemes in the library:
The mechanism as implemented in mrDisplay, mrMultidisplay and mrRoi is
handled via the methods registerEvt and unregisterEvt which do not
allow the user to define the method name to be called.
Newer classes like mrImageSet implement notification mechanisms via a notify method which does allow for arbitrary method names. - copy means copy from that is argument to a copy method is a source object.
Conventions
Here's a list of conventions which I tried to adhere to. Most of the time.
Last updated: 17.6.2004, O.Thilmann