[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
5.2 Fl_MathGL class
Class is FLTK widget which display MathGL graphics. It is defined in #include <mgl2/fltk.h>
.
- Method on Fl_MathGL:
void
set_draw (int
(*draw)(HMGL
gr,void *
p)) - Method on Fl_MathGL:
void
set_draw (int
(*draw)(mglGraph *
gr)) - Method on Fl_MathGL:
void
set_draw (mglDraw *
draw) Sets drawing function as global function or as one from a class
mglDraw
. There is support of a list of plots (frames). So as one can prepare a set of frames at first and redraw it fast later (but it requires more memory). Function should return positive number of frames for the list or zero if it will plot directly. Parameter par contains pointer to data for the plotting function draw.
- Method on Fl_MathGL:
void
set_state (bool
r,bool
z) 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 (mreal *
X1,mreal *
Y1,mreal *
X2,mreal *
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
- Method on Fl_MathGL:
void
set_graph (HMGL
gr) - Method on Fl_MathGL:
void
set_graph (mglGraph *
gr) Set new grapher instead of built-in one. Note that Fl_MathGL will automatically delete this object at destruction or at new
set_graph()
call.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on March 21, 2014 using texi2html 5.0.