source: Sophya/trunk/SophyaPI/PIGcont/mymisc.h@ 1829

Last change on this file since 1829 was 1829, checked in by perderos, 24 years ago

Creation du module PIGcont, Drawer de trace de contour / a partir
de l'adaptation du code de trace de contour de GNUplot, interfacage
avec la librairie PI .

Olivier Perdereau 19/12/2001

File size: 1.0 KB
Line 
1#ifndef MYMISC_H
2#define MYMISC_H
3
4#ifndef __cplusplus
5#undef bool
6typedef unsigned int bool;
7#endif
8
9/* TRUE or FALSE */
10#define TBOOLEAN bool
11#define EMPTY_LABELSTRUCT {"", "", 0.0, 0.0}
12#define NO_CARET (-1)
13#define VERYLARGE 1e37
14
15#define MAX_LINE_LEN 1024 /* maximum number of chars allowed on line */
16#define MAX_ID_LEN 50
17
18#define ZERO 1e-8 /* default for 'zero' set option */
19extern double zero; /* zero threshold, not 0! */
20
21/** labels **/
22/* The data describing an axis label, or the plot title */
23typedef struct {
24 char text[MAX_LINE_LEN+1];
25 char font[MAX_LINE_LEN+1];
26 double xoffset, yoffset;
27} label_struct;
28
29typedef enum position_type {
30 first_axes,
31 second_axes,
32 graph,
33 screen
34} position_type;
35
36/* A full 3D position, with all 3 coordinates of different axes,
37 * possibly. Used for 'set label' and 'set arrow' positions: */
38typedef struct position {
39 enum position_type scalex,scaley,scalez;
40 double x,y,z;
41} t_position;
42
43#endif /*ifndef MYMISC_H*/
Note: See TracBrowser for help on using the repository browser.