SFNORM(3NCARG) | NCAR GRAPHICS | SFNORM(3NCARG) |
SFNORM - The subroutines SFWRLD and SFNORM are used to fill that portion of the plotter frame inside the area defined by a given polygonal boundary.
CALL SFNORM (XRA,YRA,NRA,DST,NST,IND,NND)
CALL SFWRLD (XRA,YRA,NRA,DST,NST,IND,NND)
#include <ncarg/ncargC.h>
void c_sfnorm (float *xra, float *yra, int nra,
float *dst, int nst, int *ind, int nnd)
void c_sfwrld (float *xra, float *yra, int nra,
float *dst, int nst, int *ind, int nnd)
The C-binding argument descriptions are the same as the FORTRAN argument descriptions.
Both SFWRLD and SFNORM fill the area defined by the points (XRA(I),YRA(I)), for I from 1 to NRA. The lines connecting point 1 to point 2, point 2 to point 3, ..., point NRA-1 to point NRA, and point NRA to point 1 bound the area to be filled. The default values of SOFTFILL's internal parameters cause fill to be done with solid, horizontal lines .00125 normalized-device-coordinate units apart.
Use SFWRLD if the arrays XRA and YRA contain world coordinates. Use SFNORM if XRA and YRA contain normalized device coordinates. Since SFWRLD transforms XRA and YRA from world coordinates to normalized device coordinates, any subsequent calls with those arrays should be to SFNORM (for example, to create a cross-hatched effect).
Use the ncargex command to see the following relevant examples: ccpscam, cpex01, cpex02, cpex03, sfex01, tsoftf.
To use SFWRLD, SFNORM, c_sfwrld, or c_sfnorm, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in that order.
See the softfill man page for a description of all Softfill error messages and/or informational messages.
Online: softfill, softfill_params, sfgetc, sfgeti, sfgetp, sfgetr, sfsetc, sfseti, sfsetp, sfsetr, sfsgfa, ncarg_cbind
Hardcopy: NCAR Graphics Fundamentals, UNIX Version
Copyright (C) 1987-2009
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.
March 1993 | UNIX |