The Update Fct

 

The program keep a 64 bit "update" flag of the modification that affect it.  For example, if you resize a window, the resizing operation will set the bit "UPDATE_WINDOW" in the flag, if the current TAG value has changed, the bit "UPDATE_CUR_TAG" will be set.  A complete list of these flags can be found in the file "flag_update.hpp".

 

If one of these changes affect your module, you need to know about it when it happens.

 

 

Update_Register

This function is used to ask sliceOmatic to let you know of the changes.  The program will call your function "Update_A()" and "Update_B()" when one of the update condition you registered for occurs.

 

 

Update_A

This function is called as soon as the changes are detected (one per loop).

 

 

Update_B

This function will only be called when more immediate operations have been done (once all current redraw demand have been met). This is used to update non-essential part of the interface.  For example, the "Blow-up" tool register the flag "UPDATE_CURSOR" to know when the cursor is moved, but only re-draw the blow-up window in the "Update_B" function.