Main Page | Modules | File List | Related Pages

devices control
[g2 User Interface]


Functions

void g2_close (int dev)
void g2_set_auto_flush (int dev, int on_off)
void g2_set_coordinate_system (int dev, double x_origin, double y_origin, double x_mul, double y_mul)
int g2_ld (void)
void g2_set_ld (int dev)

Function Documentation

void g2_close int  dev  ) 
 

Close and delete a device.

Parameters:
dev device

int g2_ld void   ) 
 

Get the last accessed device. G2LD macro is defined as the g2_ld function.

g2_open_X11(100, 100); g2_plot(G2LD, 50, 50);

void g2_set_auto_flush int  dev,
int  on_off
 

Set auto flush mode for device dev. Auto flush mode means that after each graphical operation g2 library automatically calls flush function to ensure that output is realy displayed. However, freqent flushing decreases performance. Alternative is to flush output when needed by calling g2_flush function.

Parameters:
dev device
on_off 1-on 0-off

void g2_set_coordinate_system int  dev,
double  x_origin,
double  y_origin,
double  x_mul,
double  y_mul
 

Set the user coordinate system.

Parameters:
dev device
x_origin x coordinate of the new origin (expressed in the default coordinate system)
y_origin x coordinate of the new origin (expressed in the default coordinate system)
x_mul x scaling factor
y_mul y scaling factor

void g2_set_ld int  dev  ) 
 

Set the last accessed device. See also g2_ld() function.

Parameters:
dev device


Generated on Thu Apr 8 23:32:50 2004 for g2 by doxygen 1.3.6