Used to select thecurrent, or "active" window to be used by the graphics and imaging routines.
The window-index number of the current window is given by the read-only system variable !D.Window.
cwavec
function is used to call the PV-WAVE functions from the C program.
static void resizeCB_drawingArea( widget, data, cbs ) Widget widget; XtPointer data; XmDrawingAreaCallbackStruct *cbs; { int action, numcmds, istat, cwavec(); char *cmds[2]; if (!XtIsRealized(widget)) return; if (cbs-reason == XmCR_RESIZE) { action = 2; cmds[0] = 'erase'; istat = cwavec (action, 1, cmds); /* * Update display, to solve Motif geometry changes * and give PV-WAVE the proper window size. */ XmUpdateDisplay(widget); cmds[0] = 'WSET,0,/Resize'; cmds[1] = 'SHADE_SURF, HANNING(20,20)'; istat = cwavec (action, 2, cmds); } }
wavecmds
function is used to call the PV-WAVE functions from the C program.
static void resizeCB_drawingArea( widget, data, cbs ) Widget widget; XtPointer data; XmDrawingAreaCallbackStruct *cbs; { if (!XtIsRealized(widget)) return; if (cbs-reason == XmCR_RESIZE) { wavecmd('ERASE'); /* * Update display, to solve Motif geometry changes * and give PV-WAVE the proper window size. */ XmUpdateDisplay(widget); wavecmd('WSET,0,/Resize'); wavecmd('SHADE_SURF, HANNING(20,20)'); } }