Send an update command for the specified windows, classes and region.
Syntax
void Fct_Update(
UInt64 flag,
void *window_mode=NULL,
void *class_mode=NULL,
Region_2D *region=NULL
) ;
Parameters
flag
You can limit the redraw to the specified conditions. For a list of accepted values please refer to the update.hpp file
window_mode
You can limit the redraw to the specified windows. The argument can contain either a pointer to a specific winodw, or one of the define macros:
The default value if no argument is specified is CLASS_MODE_ALL
class_mode
You can limit the redraw to the specified classes. The argument can contain either a pointer to a specific class, or one of the define macros:
The default value if no argument is specified is CLASS_MODE_ALL
region
You can limit the update to a specific region (in frame space). If the region is omitted, the complete frame is updated.
Return value
This function does not return a value.
Remarks
Some updates (for example UPDATE_CUR_TAG) do not need a window, class and region. in these cases you can call simply: Fct_Update( UPDATE_CUR_TAG ).
Some update will affect the windows, they are:
UPDATE_WINDOW
UPDATE_WINDOW_2D
UPDATE_SLIDERS
UPDATE_3D_MATRIX
UPDATE_CUR_FRAME
UPDATE_SELECTIO
Some update will affect the classes, they are:
UPDATE_DB
UPDATE_DATA_GLI
UPDATE_DATA_TAG
UPDATE_DISPLAY_GLI
UPDATE_DISPLAY_TAG
UPDATE_HIGHLIGHT
The flags UPDATE_DELAY_ON and UPDATE_DELAY_OFF are used to interrupt the update process. For example if you are segmenting a frame in a separate thread, you may not want the update function to access the TAG information until you have finished modifying it. You can suspend updates and redraw while you are working.
Requirements
Header:
sliceO_include.hpp
Library:
sliceO_Structures.lib
Example
From the edit_image_fct.cpp file
See also