5.4 wxMathGL class
Class is WX widget which display MathGL graphics. It is defined in #include <mgl2/wx.h>.
- Method on wxMathGL:
voidSetDraw (mglDraw *dr) Sets drawing functions from a class inherited from
mglDraw.
- Method on wxMathGL:
voidSetDraw (int (*draw)(mglBase *gr,void *p),void *par=NULL) - Method on wxMathGL:
voidSetDraw (int (*draw)(mglGraph *gr)) Sets the drawing function draw. 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 wxMathGL:
voidSetGraph (HMGLgr) - Method on wxMathGL:
voidSetGraph (mglGraph *gr) Set pointer to external grapher (instead of built-in one). Note that wxMathGL will automatically delete this object at destruction or at new
setGraph()call.
- Method on wxMathGL:
HMGLGetGraph () Get pointer to grapher.
- Method on wxMathGL:
voidSetPopup (wxMenu *p) Set popup menu pointer.
- Method on wxMathGL:
voidSetSize (intw,inth) Set widget/picture sizes
- Method on wxMathGL:
doubleGetRatio () Return aspect ratio of the picture.
- Method on wxMathGL:
intGetPer () Get perspective value in percents.
- Method on wxMathGL:
intGetPhi () Get Phi-angle value in degrees.
- Method on wxMathGL:
intGetTet () Get Theta-angle value in degrees.
- Method on wxMathGL:
boolGetAlpha () Get transparency state.
- Method on wxMathGL:
boolGetLight () Get lightning state.
- Method on wxMathGL:
boolGetZoom () Get mouse zooming state.
- Method on wxMathGL:
boolGetRotate () Get mouse rotation state.
- Method on wxMathGL:
voidRepaint () Redraw saved bitmap without executing drawing function.
- Method on wxMathGL:
voidUpdate () Update picture by executing drawing function.
- Method on wxMathGL:
voidCopy () Copy graphics to clipboard.
- Method on wxMathGL:
voidPrint () Print current picture.
- Method on wxMathGL:
voidAdjust () Adjust image size to fit whole widget.
- Method on wxMathGL:
voidNextSlide () Show next slide.
- Method on wxMathGL:
voidPrevSlide () Show previous slide.
- Method on wxMathGL:
voidAnimation (boolst=true) Start/stop animation.
- Method on wxMathGL:
voidSetPer (intval) Set perspective value.
- Method on wxMathGL:
voidSetPhi (intval) Set Phi-angle value.
- Method on wxMathGL:
voidSetTet (intval) Set Theta-angle value.
- Method on wxMathGL:
voidSetAlpha (boolval) Switch on/off transparency.
- Method on wxMathGL:
voidSetLight (boolval) Switch on/off lightning.
- Method on wxMathGL:
voidSetZoom (boolval) Switch on/off mouse zooming.
- Method on wxMathGL:
voidSetRotate (boolval) Switch on/off mouse rotation.
- Method on wxMathGL:
voidZoomIn () Zoom in graphics.
- Method on wxMathGL:
voidZoomOut () Zoom out graphics.
- Method on wxMathGL:
voidShiftLeft () Shift graphics to left direction.
- Method on wxMathGL:
voidShiftRight () Shift graphics to right direction.
- Method on wxMathGL:
voidShiftUp () Shift graphics to up direction.
- Method on wxMathGL:
voidShiftDown () Shift graphics to down direction.
- Method on wxMathGL:
voidRestore () Restore zoom and rotation to default values.
- Method on wxMathGL:
voidAbout () Show about information.
- Method on wxMathGL:
voidExportPNG (QStringfname="") Export current picture to PNG file.
- Method on wxMathGL:
voidExportPNGs (QStringfname="") Export current picture to PNG file (no transparency).
- Method on wxMathGL:
voidExportJPG (QStringfname="") Export current picture to JPEG file.
- Method on wxMathGL:
voidExportBPS (QStringfname="") Export current picture to bitmap EPS file.
- Method on wxMathGL:
voidExportEPS (QStringfname="") Export current picture to vector EPS file.
- Method on wxMathGL:
voidExportSVG (QStringfname="") Export current picture to SVG file.
This document was generated on March 21, 2014 using texi2html 5.0.