Send a redraw command for the specified windows, classes and region.
Syntax
void Fct_Redraw(
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 redraw.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 redraw to a specific region (in frame space). If the region is omitted, the complete frame is redrawn.
Return value
This function does not return a value.
Remarks
Some redraw will affect the windows, they are:
REDRAW_WINDOW
REDRAW_BACK_GRND
REDRAW_3D_WINDOW
REDRAW_3D_TRANSFO
Some redraw will affect the classes, they are:
REDRAW_DB_OPENGL
REDRAW_DB_STENCIL
REDRAW_3D_DB
REDRAW_HIGHLIGHT
The flags REDRAW_DELAY_ON and REDRAW_DELAY_OFF are used to interrupt the drawing process. For example if you are segmenting a frame in a separate thread, you may not want the redraw 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