File: pxyplot.h

package info (click to toggle)
libforms1 1.0-8
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 6,648 kB
  • ctags: 14,351
  • sloc: ansic: 90,441; makefile: 9,902; sh: 8
file content (123 lines) | stat: -rw-r--r-- 4,726 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*
 *
 *  This file is part of the XForms library package.
 *
 * XForms is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1, or
 * (at your option) any later version.
 *
 * XForms is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with XForms; see the file COPYING.  If not, write to
 * the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
 * MA 02111-1307, USA.
 *
 */


/*
 * $Id: pxyplot.h,v 0.89 1999/07/17 03:17:54 zhao Beta $
 *
 *  This file is part of the XForms library package.
 *  Copyright (c) 1995-1997  T.C. Zhao and Mark Overmars
 *  All rights reserved.
 *.
 *
 *  private header for xyplot object
 */

#ifndef PXYPLOT_H
#define PXYPLOT_H

#define MAX_ALABEL        64
#define MAX_MAJOR         50
#define MAX_MINOR         50
#define MAX_TIC           200	/* really should be MAJOR * MINOR */

typedef struct
{
    float xmin, xmax;		/* true xbounds                 */
    float ymin, ymax;		/* true ybounds                 */
    float xscmin, xscmax;	/* bounds used in mapping       */
    float yscmin, yscmax;	/* bounds used in mapping       */
    float ax, bx, ay, by;	/* data -> screen conversion    */
    float xtic, ytic;		/* tic marks                    */
    float xbase, ybase;		/* log base                     */
    float lxbase, lybase;	/* log10 of the log base        */
    int xi, xf, yi, yf;		/* ploted area bounds           */
    char *title;		/* overall title                */
    char *xlabel, *ylabel;	/* the x- and y-axis labels     */
    char *axtic[MAX_ALABEL];	/* alphanumerical tic marks     */
    char *aytic[MAX_ALABEL];	/* alphanumerical tic marks     */
    char *xmargin1, *xmargin2;
    char *ymargin1, *ymargin2;	/* fixed area. margins          */
    char **text;		/* inset text *text[over]       */
    float *xt, *yt;		/* inset text position xt[over] */
    float **x, **y;		/* real data *x, *y[over+1]     */
    float *grid;		/* interpolating grid[over+1]   */
    float ux, uy;		/* points to be updated         */
    float *wx, *wy;		/* working array for interpolation */
    FL_POINT *xp;		/* screen data                  */
    FL_POINT *xpactive;		/* active(mouse) screen data    */
    FL_POINT *xpi;		/* screen data for interpolated */
    short *thickness;		/* line thickness [over+1]      */
    FL_COLOR *col;		/* overlay color [over+1]       */
    FL_COLOR *tcol;		/* overlay text color [over+1]  */
    int *type;			/* type[over+1]                 */
    int *n, nxp;		/* total points/viewable points */
    int n1;
    int ninterpol;
    int nxpi;
    int cur_nxp;		/* length of xp                 */
    int inside;
    int grid_linestyle;
    FL_XYPLOT_SYMBOL *symbol;	/* [over + 1] */
    short *interpolate;		/* if interpolate[over+1]       */
    short *talign;		/* inset text alignment [over+1] */
    short xscale;		/* linear or log for x          */
    short yscale;		/* linear or log for y          */
    short active;		/* if accepting mouse events    */
    short how_return;		/* interaction flags            */
    short ssize;		/* symbol size                  */
    short lsize, lstyle;	/* font and style for labels    */
    short xautoscale;		/* autoscale to fit             */
    short yautoscale;		/* autoscale to fit             */
    short xmajor, xminor;	/* x-axis scaling               */
    short ymajor, yminor;	/* y-axis scaling               */
    short inspect;
    short update;
    short maxoverlay;
    short xgrid, ygrid;		/* if draw grid                 */
    short iactive;		/* which overlay is active      */
    int objx, objy;		/* singlebuffer mode           */
    float bxm, bym;		/* data -> screen conversion    */
    float key_x, key_y;		/* key place location           */
    int key_lstyle, key_lsize;
    int key_align;
    int no_keybox;
    char **key;
    short maxytic;		/* max tic mark length in pixels */
    int key_maxw, key_maxh, key_ascend, key_descend;
    int key_xs, key_ys;
    /* tic locations */
    int num_xminor;
    int num_xmajor;
    int num_yminor;
    int num_ymajor;
    float xmajor_val[MAX_MAJOR];
    float ymajor_val[MAX_MAJOR];
    short xtic_minor[MAX_TIC];
    short xtic_major[MAX_MAJOR];
    short ytic_minor[MAX_TIC];
    short ytic_major[MAX_MAJOR];
    short mark_active;
    short external_data;
}
FL_XYPLOT_SPEC;

#endif /* PXYPLOT.H */