Functions | |
| int | pvSetZoomX (PARAM *p, int id, float zoom) |
| int | pvSetZoomY (PARAM *p, int id, float zoom) |
| int | gWriteFile (const char *file) |
| int | gCloseFile () |
| int | gBeginDraw (PARAM *p, int id) |
| int | gBox (PARAM *p, int x, int y, int w, int h) |
| int | gRect (PARAM *p, int x, int y, int w, int h) |
| int | gEndDraw (PARAM *p) |
| int | gLineTo (PARAM *p, int x, int y) |
| int | gBufferedLine (PARAM *p) |
| int | gLine (PARAM *p, float *x, float *y, int n) |
| int | gMoveTo (PARAM *p, int x, int y) |
| int | gRightYAxis (PARAM *p, float start, float delta, float end, int draw) |
| int | gSetColor (PARAM *p, int r, int g, int b) |
| int | gSetWidth (PARAM *p, int w) |
| int | gSetStyle (PARAM *p, int style) |
| int | gDrawArc (PARAM *p, int x, int y, int w, int h, int start_angle, int angle_length) |
| int | gDrawPie (PARAM *p, int x, int y, int w, int h, int start_angle, int angle_length) |
| int | gDrawPolygon (PARAM *p, int *x, int *y, int n) |
| int | gSetFont (PARAM *p, const char *family, int size, int weight, int italic) |
| int | gSetLinestyle (PARAM *p, int style) |
| int | gText (PARAM *p, int x, int y, const char *text, int alignment) |
| int | gTextInAxis (PARAM *p, float x, float y, const char *text, int alignment) |
| int | gSetFloatFormat (PARAM *p, const char *text) |
| int | gXAxis (PARAM *p, float start, float delta, float end, int draw) |
| int | gYAxis (PARAM *p, float start, float delta, float end, int draw) |
| int | gXGrid (PARAM *p) |
| int | gYGrid (PARAM *p) |
| int | gBoxWithText (PARAM *p, int x, int y, int w, int h, int fontsize, const char *xlabel, const char *ylabel, const char *rylabel) |
| int | gComment (PARAM *p, const char *comment) |
| int | gPlaySVG (PARAM *p, const char *filename) |
| int | gSocketPlaySVG (PARAM *p, const char *svgstring) |
| int | gTranslate (PARAM *p, float x, float y) |
| int | gRotate (PARAM *p, float angle) |
| int | gScale (PARAM *p, float sx, float sy) |
|
||||||||||||
|
Call this function before you start drawing the widget. |
|
||||||||||||||||||||||||
|
Draws a rectangle frame. Later you can use it's coordinates to draw xAxis, yAxiy and ryAxis. |
|
||||||||||||||||||||||||||||||||||||||||
|
This is a convenience function that draws a box and write the xlabel ylabel and rylabel in the given font. If one of the text parameters is NULL no text is drawn for that item. |
|
|
Draw a line in a Axis. See pvXYAllocate See also Linestyle. |
|
|
Call this function after you have written graphical commands to a file. |
|
||||||||||||
|
Write a comment in the metafile |
|
||||||||||||||||||||||||||||||||
|
Draw an arc. For circle write: gDrawArc(p,x-radius/2,y-radius/2,radius/2,radius/2,0,360); |
|
||||||||||||||||||||||||||||||||
|
Draw an pie (filled part of a circle) . For filled circle write: gDrawArc(p,x-radius/2,y-radius/2,radius/2,radius/2,0,360); |
|
||||||||||||||||||||
|
x,y is an array with the edge points. n is the number of points |
|
|
Call this function when you are finished with drawing. |
|
||||||||||||||||||||
|
Draw a line in a Axis n=number of values in x,y. See also Linestyle. |
|
||||||||||||||||
|
Draw a line from the actual position to x,y. |
|
||||||||||||||||
|
Move to x,y. |
|
||||||||||||
|
Play SVG file You have to download the file first using: int pvDownloadFile(PARAM *p, const char *filename); |
|
||||||||||||||||||||||||
|
Draws a filled rectangle. |
|
||||||||||||||||||||||||
|
Draw a Axis on the right side of the diagram. It starts with start in steps of delta until end is reached. |
|
||||||||||||
|
Rotate the graphic Rotates the coordinate system angle degrees counterclockwise. |
|
||||||||||||||||
|
Scale the graphic |
|
||||||||||||||||||||
|
Set the drawing color. |
|
||||||||||||
|
Set the format in which the Axis is drawn. default: "%f" For example set "%5.2f" if you want two digits behind the . |
|
||||||||||||||||||||||||
|
Set a font. For the availabe fonts see Definitions (Events, Fonts, Colors ...) |
|
||||||||||||
|
Set the linestyle of a line in the Axis. You can draw a simple line or a line with centered symbols. |
|
||||||||||||
|
style = PenStyle. |
|
||||||||||||
|
Set the line width |
|
||||||||||||
|
Play SVG string over the socket |
|
||||||||||||||||||||||||
|
Draw a text at x,y. For alignment see Definitions (Events, Fonts, Colors ...) |
|
||||||||||||||||||||||||
|
Draw a text at x,y in Axis. For alignment see Definitions (Events, Fonts, Colors ...) |
|
||||||||||||||||
|
Translate the graphic |
|
|
Call this function before you write graphical commands to a file. |
|
||||||||||||||||||||||||
|
Draw a Axis on the bottom of the diagram. It starts with start in steps of delta until end is reached. |
|
|
Draw a grid orthogonal to the x-axis in the diagram. |
|
||||||||||||||||||||||||
|
Draw a Axis on the left side of the diagram. It starts with start in steps of delta until end is reached. |
|
|
Draw a grid orthogonal to the y-axis in the diagram. |
|
||||||||||||||||
|
Zoom the image in X direction. (default: zoom=1.0) |
|
||||||||||||||||
|
Zoom the image in Y direction. (default: zoom=1.0) |
1.4.6