| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
8.1 Create and delete objects
There are several group of functions.
- Functions for non-visual “grapher” creation:
- C function:
HMGLmgl_create_graph_zb (intwidth,intheight) Create the instance of class mglGraphZB with specified sizes.
- C function:
- Function for windowed “grapher” creation:
- C function:
HMGLmgl_create_graph_glut (int (*draw)(HMGL gr, void *p),const char *title,void *par) Create the instance of class mglGraphGLUT and connected GLUT window. Only one GLUT window can be opened at once. Arguments description can be found in mglGraphAB class.
- C function:
HMGLmgl_create_graph_fltk (int (*draw)(HMGL gr, void *p),const char *title,void *par) Create the instance of class mglGraphFLTK and connected FLTK window. Several windows can be opened at the same time. However user must call
mgl_fltk_run()function to start the message handling circle. Arguments description can be found in mglGraphAB class.
- C function:
HMGLmgl_create_graph_qt (int (*draw)(HMGL gr, void *p),const char *title,void *par) Create the instance of class mglGraphQT and connected Qt window. Several windows can be opened at the same time. However user must call
mgl_qt_run()function to start the message handling circle. Arguments description can be found in mglGraphAB class.
- C function:
voidmgl_fltk_run () Start FLTK message handling cycle. A normal program will end main() function with
return mgl_fltk_run();.
- C function:
voidmgl_fltk_thread () Start FLTK message handling cycle. In difference of
mgl_fltk_run()the loop is started in separate thread so that program continues immediately.
- C function:
voidmgl_qt_run () Start Qt message handling cycle. A normal program will end main() function with
return mgl_qt_run();. Alternatively user may setup Qt application by direct Qt functions calls.
- C function:
- Functions for data creation:
- Each created object must be deleted after usage by functions:
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
