| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Class is FLTK widget which display MathGL graphics (defined in #include <mgl2/fltk.h>).
void set_draw (int (*draw)(HMGL gr, void *p))void set_draw (int (*draw)(mglGraph *gr))void set_draw (mglDraw *draw)Sets drawing function as global function 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.
void update ()Update (redraw) plot.
void set_angle (float t, float p)Set angles for additional plot rotation
void set_flag (int f)Set bitwise flags for general state (1-Alpha, 2-Light)
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.
void set_zoom (float X1, float Y1, float X2, float Y2)Set zoom in/out region
void get_zoom (float *X1, float *Y1, float *X2, float *Y2)Get zoom in/out region
void set_popup (const Fl_Menu_Item *pmenu, Fl_Widget *w, void *v)Set popup menu pointer
void set_graph (mglCanvas *gr)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 setGraph() call.
HMGL get_graph ()Get pointer to grapher.
Fl_Valuator * tet_valPointer to external tet-angle validator.
Fl_Valuator * phi_valPointer to external phi-angle validator.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Autobuild on July 16, 2012 using texi2html 1.82.