C-PLOT

Scientific Graphics and Data Analysis

E.1.8. - Setting and retrieving data points



The following macros are only relevant with type 4 user functions. Since C-PLOT may keep data points in temporary files, access to the points is through functions rather than a static array. The functions, described later, require the address of the C-PLOT data structure, which is named Point. Within your C code, you declare storage for one of these structures and access it through the following macros, which also require the address of the storage of the Point.

 Name   What it Does 
 set_x(p, x  Assign x to Point whose address is p 
 set_y(p, y  Assign y to Point whose address is p 
 set_z(p, z  Assign z to Point whose address is p 
 set_r(p, r  Assign r to Point whose address is p 
 set_s(p, s  Assign s to Point whose address is p 
 set_up_pen(p  Assign up line control to Point whose address is p 
 set_down_pen(p  Assign down line control to Point whose address is p 
 get_x(p  Value is x of Point whose address is p 
 get_y(p  Value is y of Point whose address is p 
 get_z(p  Value is z of Point whose address is p 
 get_r(p  Value is r of Point whose address is p 
 get_s(p  Value is s of Point whose address is p 
 get_pen(p  Value is non-zero if Point has up line control 




The following functions provide the interface between your code and the routines in the overhead modules.