1RESET(3NCARG)                    NCAR GRAPHICS                   RESET(3NCARG)
2
3
4

NAME

6       RESET - The "super" version of RESET zeroes the internal integer array
7       used to detect crowded lines; other versions do nothing.
8

SYNOPSIS

10       CALL RESET
11

C-BINDING SYNOPSIS

13       #include <ncarg/ncargC.h>
14
15       void c_reset()
16

USAGE

18       The "super" version of the Dashline utility attempts to cull crowded
19       lines from the output picture.  It does this using an internal integer
20       array, ISCREN, in which each bit used represents a single pixel in a
21       square array of 1024x1024 pixels of the picture.  Initially, all the
22       bits must be set to zero by calling the routine RESET.  When a line
23       segment is about to be drawn, an appropriate set of bits in ISCREN
24       (representing the pixels through which the line segment passes) is
25       examined; if any bit in that set is a 1, the line segment is not drawn.
26       Then, the bits representing the pixels in the immediate vicinity of the
27       line segment are set to 1, so as to prevent any subsequent line segment
28       from being drawn through the area.
29
30       As each label is drawn, the bits in ISCREN representing the area
31       occupied by the label are set to 1, as well, which prevents subsequent
32       line segments from being drawn through the label.
33
34       This culling process has the following implications for the user of the
35       "super" version of Dashline:
36
37       ·  The routine RESET should be called at the beginning of each new
38          picture.  If this is not done, each of a consecutive series of
39          pictures will have progressively more gaps where line segments have
40          been culled.
41
42       ·  More important lines should be drawn first, followed by less
43          important lines.  For example, the "super" version of the routine
44          CONREC draws labeled contour lines first, followed by the contour
45          lines halfway in between the labeled lines, followed by the rest of
46          the lines.
47
48       ·  Because each line segment is either drawn in its entirety or not at
49          all, long straight line segments are broken into shorter pieces.
50          The internal parameter MLLINE determines how small the resulting
51          pieces will be; you may wish to reduce its value so that smaller
52          pieces will be used.
53

EXAMPLES

55       Use the ncargex command to see the following relevant examples: tdashp,
56       fdlsmth.
57

ACCESS

59       To use RESET or c_reset, load the NCAR Graphics libraries ncarg,
60       ncarg_gks, and ncarg_c, preferably in that order.
61

SEE ALSO

63       Online: dashline, dashline_params, curved, dashdb, dashdc, frstd,
64       lastd, lined, vectd, ncarg_cbind
65
66       Hardcopy: NCAR Graphics Contouring and Mapping Tutorial; NCAR Graphics
67       Fundamentals, UNIX Version; User's Guide for NCAR GKS-0A Graphics
68
70       Copyright (C) 1987-2009
71       University Corporation for Atmospheric Research
72       The use of this Software is governed by a License Agreement.
73
74
75
76UNIX                              March 1993                     RESET(3NCARG)
Impressum