The array of functions pointed to by Fct_Draw_Base[]() are used to draw the default information of the class. For frames, it draw the pixels of the frame, for classes higher in the tree it draw icons and connecting lines in 2D windows in MODE_ALL.
You can add your own callback to the array (you need to get an index in the array with the "Get_Callback_ID()" function). If your function returns "2", then the default callback will not be used at all. An example of this is, in mode Threshold, we want to display the TAG values as a preview of the segmentation values instead of the actual TAG values. We did this by adding a callback for the "Frame" classes that override the normal drawing of the frames.
default value is at "0", but first we try all the other ones. if a callback is present and it return=2, we do not call default.
Syntax
int (*Fct_Draw_BaseL[CALLBACK_NB_BASE])(
SliceO_Class *pt,
UInt64 flag,
SliceO_Window *window
)
Parameters
pt
Pointer to the class calling the function.
flag
Value of the Redraw_Flag.
window
Pointer to the window where the class is drawn.
Return value
This function return "1" or "2" if successful. If a return value of "2" is used, then the default "Base" drawing (at index=0) will not be used for this class.
Remarks
Requirements
Header:
sliceO_include.hpp
Library:
sliceO_Structures.lib
Example
See also