Plot_OpenGL
Plot_Window
Draw a 2D plot to to either an OpenGL or a GDI window.

Syntax
void Plot_OpenGL(
Boxs *box,
Plot_Datas **data,
int size,
char name_x[], char name_y[],
char unit_x[], char unit_y[],
Plot_Point *min, Plot_Point *max
) ;
void Plot_Window(
Boxs *box,
Plot_Datas **data,
int size,
char name_x[], char name_y[],
char unit_x[], char unit_y[],
Plot_Point *min, Plot_Point *max
) ;
Parameters
box
Pointer to the a box that will contain the plot.
data
A NULL terminated array of pointers to the plot data. Each Plot_Datas structure is for one curve, you can have multiple curves.
size
Font size to use for the plot annotation and legend.
name_x, name_y
names of the horizontal (x) and vertical (y) axis. The legend displayed under the plot will be: "name_y (unit_y) /vs/ name_x (unit_x)"
unit_x, unit_y
names of the units used for the horizontal (x) and vertical (y) axis. The legend displayed under the plot will be: "name_y (unit_y) /vs/ name_x (unit_x)"
min, max
Pointer to Plot_Point structures to receive the min (x and y) and max(x and y) values of all the data points used to display the plot. These values are used by the "HighLight" functions.
Return value
This function does not return a value.
Remarks
There are 2 variation for this function depending on whether you want to draw the plot to an OpenGL or a Windows GDI window.
The plot functions will not erase the box's background, this should be done before the function is called.
Requirements
Header:
TomoVision_Util.hpp
plot.hpp
Library:
TomoVision_Util.lib
plot.lib
Example
See also