1GCELL_ARRAY(3NCARG) NCAR GRAPHICS GCELL_ARRAY(3NCARG)
2
3
4
6 gcell_array (Cell array) - draws a cell array starting with a rectangle
7 specified by two corner points; this initial rectangle is subdivided
8 into subrectangles by specifying an arbitrary number of divisions in
9 the X and Y directions; each subrectangle (or cell) is assigned a color
10 and drawn with that color.
11
13 #include <ncarg/gks.h>
14
15 void gcell_array(const Grect *rect, const Gpat_rep *colr_array);
16
18 rect.p.x (Gfloat Input) - X world coordinate of point 1.
19
20 rect.p.y (Gfloat Input) - Y world coordinate of point 1.
21
22 rect.q.x (Gfloat Input) - X world coordinate of point 2.
23
24 rect.q.y (Gfloat Input) - Y world coordinate of point 2.
25
26 colr_array.dims.size_x
27 (Gint, Input) - X dimension of the color index array
28 colr_array.colr_array.
29
30 colr_array.dims.size_y
31 (Gint, Input) - Y dimension of the color index array
32 colr_array.colr_array.
33
34 colr_array.colr_array
35 (Gint *, Input) - An array of color indices dimensioned
36 colr_array.dims.size_x by colr_array.dims.size_y which is
37 used to determine the color of each cell drawn.
38
40 Points 1 and 2 must be diagonally opposite corner points of a rectangle
41 to be divided into colr_array.dims.size_x cells in the X dimension and
42 colr_array.dims.size_y cells in the Y dimension.
43
45 To use the GKS C-binding routines, load the ncarg_gks and ncarg_c
46 libraries.
47
49 Online: gset_colr_rep(3NCARG), gks(3NCARG), ncarg_gks_cbind(3NCARG)
50
51 Hardcopy: User's Guide for NCAR GKS-0A Graphics; NCAR Graphics Funda‐
52 mentals, UNIX Version
53
55 Copyright (C) 1987-2007
56 University Corporation for Atmospheric Research
57
58 This documentation is free software; you can redistribute it and/or
59 modify it under the terms of the GNU General Public License as pub‐
60 lished by the Free Software Foundation; either version 2 of the
61 License, or (at your option) any later version.
62
63 This software is distributed in the hope that it will be useful, but
64 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
65 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
66 Public License for more details.
67
68 You should have received a copy of the GNU General Public License along
69 with this software; if not, write to the Free Software Foundation,
70 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
71
72
73
74UNIX March 1993 GCELL_ARRAY(3NCARG)