[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
5. Widget classes
There are set of “window” classes for making a window with MathGL graphics: mglGraphFLTK
, mglGraphQT
, mglGraphGLUT
. All these classes allow user to show, rotate, export, and change view of the plot using keyboard. Most of them (except mglGraphGLUT
) also have toolbar and menu for simplifying plot manipulation. Usually these classes (except mglGraphGLUT
) are derived from mglGraphZB
class and have a “connected” class for widget in corresponding window library. All window classes have the same set of functions (see section mglGraphAB class). Below the full list of classes with short comments.
- Class: mglGraphFLTK
Class
mglGraphFLTK
adds the possibility to create plotting window with the help of FLTK library. It allows one to show, rotate, export, and change view of the plot by keyboard, menu and toolbar. “Corresponding” widget class isFl_MathGL
. Class is defined in#include <mgl/mgl_fltk.h>
.
- Class: Fl_MathGL
Class is FLTK widget for displaying the MathGL output. Class is defined in
#include <mgl/mgl_fltk.h>
.
Example of FLTK window with MathGL plot.
- Class: mglGraphQT
Class
mglGraphQT
adds the possibility to create plotting window with the help of QT library. It allows one to show, rotate, export, and change view of the plot by keyboard, menu and toolbar. “Corresponding” widget class isQMathGL
. Class is defined in#include <mgl/mgl_qt.h>
.
- Class: QMathGL
Class is Qt widget for dysplaying the MathGL output. Class is defined in
#include <mgl/mgl_qt.h>
.
Example of Qt window with MathGL plot.
- Class: mglGraphGLUT
Class
mglGraphGLUT
adds the possibility to create plotting window with the help of GLUT library. It allows one to show, rotate, export, and change view of the plot only by keyboard. Class is defined in#include <mgl/mgl_glut.h>
.
Example of GLUT window with MathGL plot.
5.1 Fl_MathGL class | ||
5.2 QMathGL class |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |