1SFGETP(3NCARG) NCAR GRAPHICS SFGETP(3NCARG)
2
3
4
6 SFGETP - Used to retrieve the current dot pattern.
7
9 CALL SFGETP (IDP)
10
12 #include <ncarg/ncargC.h>
13
14 void c_sfgetp (int idp[8][8])
15
17 IDP (an output array of type INTEGER, dimensioned 8x8) contains
18 0s and 1s specifying the dot pattern currently contained in
19 the internal array LDP. When dot fill is selected, each
20 fill line is drawn using dots the same distance apart along
21 the line as the lines are from each other. The dots thus
22 fall at the intersection points of a square grid. Each dot
23 is associated with a particular element of LDP. If that
24 element is a 1, the dot is drawn; if it is a 0, the dot is
25 not drawn. The association is done in such a way as to
26 replicate the pattern specified by LDP across the entire
27 filled area.
28
29 If the fill angle is 0 (the default), then incrementing the
30 first subscript of LDP corresponds to a horizontal motion
31 across the plot from left to right and incrementing the
32 second subscript of LDP corresponds to a vertical motion
33 across the plot from top to bottom. This allows the
34 contents of IDP to be declared in a DATA statement which
35 creates a "picture" of the pattern. For example, the
36 FORTRAN statements
37
38 DIMENSION IDP(8,8)
39 ...
40 DATA IDP / 0,0,0,0,0,0,0,0,
41 + 0,1,1,1,1,1,1,0,
42 + 0,1,0,0,0,0,0,1,
43 + 0,1,0,0,0,0,0,1,
44 + 0,1,1,1,1,1,1,0,
45 + 0,1,0,0,0,1,0,0,
46 + 0,1,0,0,0,0,1,0,
47 + 0,1,0,0,0,0,0,1/
48
49 creates the letter "R", with the correct orientation.
50
51 The default dot pattern consists of all 1s.
52
54 This routine allows you to retrieve the current value of Softfill's dot
55 pattern. For a description of Softfill's dot pattern parameter, see the
56 softfill_params man page.
57
59 To use SFGETP or c_sfgetp, load the NCAR Graphics libraries ncarg,
60 ncarg_gks, and ncarg_c, preferably in that order.
61
63 Online: softfill, softfill_params, sfgetc, sfgeti, sfgetr, sfsetc,
64 sfseti, sfsetp, sfsetr, sfsgfa, sfwrld, ncarg_cbind
65
66 Hardcopy: NCAR Graphics Fundamentals, UNIX Version
67
69 Copyright (C) 1987-2009
70 University Corporation for Atmospheric Research
71
72 The use of this Software is governed by a License Agreement.
73
74
75
76UNIX March 1993 SFGETP(3NCARG)