wn_world(_c)
status.i4.v = wn_world(window_id.i4.r, min_x.r4.r, min_y.r4.r,
max_x.r4.r, max_y.r4.r)
status.i4.v = wn_world_c(window_id.i4.v, min_x.r4.v, min_y.r4.v,
max_x.r4.v, max_y.r4.v)
This routine sets the virtual (or world) limits for a graphics window
and from these calculates the scaling transform constants. The limits
("min_x", "min_y", "max_x", and "max_y") should be in real world
coordinates such as seconds, amps, etc.
window_id window ID (use WN_BACKGROUND for background window)
min_x, min_y lower left hand corner of window
max_x, max_y upper right hand corner of window
This function returns ACNET status values as follows:
CBS_OK success
CBS_INVARG invalid ID or coordinates specified
CBS_INVID this window does not exist
CBS_RANGE invalid coordinates for the scaling chosen
CBS_MATH_EXCEPTION math exception occurred while calculating
window scaling parameters
This function requires the following include files:
cbslib_h, acnet_errors_h
Related functions:
wn_view(_c), wn_active(_c), wn_set_scaling(_c), intro_graphics_windows
C/C++ usage:
int status;
int window_id;
float min_x = 1.0;
float min_y = 1.0;
float max_x = 10.0;
float max_y = 10.0;
status = wn_world_c(window_id,min_x,min_y,max_x,max_y);