manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ 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_angle (float t, float p)

Set angles for additional plot rotation

Method on Fl_MathGL: void set_state (int f)

Set bitwise flags for general state (1-Alpha, 2-Light)

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 set_zoom (float X1, float Y1, float X2, float Y2)

Set zoom in/out region

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

Method on Fl_MathGL: mglGraph * get_graph ()

Get pointer to grapher

Widget option of Fl_MathGL: Fl_Valuator * tet_val

Pointer to external tet-angle validator.

Widget option of Fl_MathGL: Fl_Valuator * phi_val

Pointer to external phi-angle validator.

Widget option of Fl_MathGL: mglGraphAB * graph

Pointer to grapher

Widget option of Fl_MathGL: void * draw_par

Parameters for drawing function mglGraph::DrawFunc.

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] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.