[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
5.1 Fl_MathGL class
Class is FLTK widget which display MathGL graphics (defined in #include <mgl/mgl_fltk.h>
).
- Method on Fl_MathGL:
void
set_draw (mglDraw *
dr) Sets drawing function from a class inherited from
mglDraw
.
- Method on Fl_MathGL:
void
update (mglGraph *
gr=NULL
) Update (redraw) plot using grapher gr (built-in by default).
- Method on Fl_MathGL:
void
set_state (bool
z,bool
r) Set flags for handling mouse: z=
true
allow zooming, r=true
allow rotation/shifting/perspective and so on.
- Method on Fl_MathGL:
void
get_zoom (float *
X1,float *
Y1,float *
X2,float *
Y2) Get zoom in/out region
- Method on Fl_MathGL:
void
set_popup (const Fl_Menu_Item *
pmenu,Fl_Widget *
w,void *
v) Set popup menu pointer
- Widget option of Fl_MathGL:
int (*
draw_func)(mglGraph *gr, void *par)
Drawing function for window procedure. It should return the number of frames.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |