| Last change
 on this file since 3974 was             1844, checked in by ansari, 24 years ago | 
        
          | 
changement de nom des fichiers (ajout de gp_ ou gpc_ ) pour eviter les confusions - Reza 30/12/2001
 | 
        
          | File size:
            1.0 KB | 
      
      
| Rev | Line |  | 
|---|
| [1844] | 1 | #ifndef GPC_MISC_H | 
|---|
|  | 2 | #define GPC_MISC_H | 
|---|
|  | 3 |  | 
|---|
|  | 4 | #ifndef __cplusplus | 
|---|
|  | 5 | #undef bool | 
|---|
|  | 6 | typedef 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 */ | 
|---|
|  | 19 | extern double zero;             /* zero threshold, not 0! */ | 
|---|
|  | 20 |  | 
|---|
|  | 21 | /** labels **/ | 
|---|
|  | 22 | /* The data describing an axis label, or the plot title */ | 
|---|
|  | 23 | typedef struct { | 
|---|
|  | 24 | char text[MAX_LINE_LEN+1]; | 
|---|
|  | 25 | char font[MAX_LINE_LEN+1]; | 
|---|
|  | 26 | double xoffset, yoffset; | 
|---|
|  | 27 | } label_struct; | 
|---|
|  | 28 |  | 
|---|
|  | 29 | typedef 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: */ | 
|---|
|  | 38 | typedef struct position { | 
|---|
|  | 39 | enum position_type scalex,scaley,scalez; | 
|---|
|  | 40 | double x,y,z; | 
|---|
|  | 41 | } t_position; | 
|---|
|  | 42 |  | 
|---|
|  | 43 | #endif /*ifndef GPC_MISC_H*/ | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.