1 #include "afni.h"
2 
3 /* All definitions here taken out of afni.h  ZSS Jan 2011 */
4 
5 char * INIT_def_colovr[DEFAULT_NCOLOVR] = {
6    "#ffff00" , "#ffcc00"   , "#ff9900"  , "#ff6900" , "#ff4400" , "#ff0000" ,
7    "#0000ff" , "#0044ff"   , "#0069ff"  , "#0099ff" , "#00ccff" , "#00ffff" ,
8    "green"   , "limegreen" , "violet"   , "hotpink" ,
9    "white"   , "#dddddd"   , "#bbbbbb"  , "#010101" ,
10 
11    "#cc1033" , "#992066"   , "#663199"  , "#3341cc" ,  /* RGB cycle */
12    "#0051ff" , "#0074cc"   , "#009799"  , "#00b966" ,  /* 10 Jun 2002 */
13    "#00dc33" , "#00ff00"   , "#33ff00"  , "#66ff00" ,
14    "#99ff00" , "#ccff00"   , "#ffff00"  , "#ffcc00" ,
15    "#ff9900" , "#ff6600"   , "#ff3300"  , "#ff0000"
16 } ;
17 
18 char * INIT_def_labovr[DEFAULT_NCOLOVR] = {
19    "yellow" , "yell-oran" , "oran-yell" , "orange"   , "oran-red" , "red"   ,
20    "dk-blue", "blue"      , "lt-blue1"  , "lt-blue2" , "blue-cyan", "cyan"  ,
21    "green"  , "limegreen" , "violet"    , "hotpink"  ,
22    "white"  , "gry-dd"    , "gry-bb"    , "black"    ,
23 
24    "rbgyr20_01" , "rbgyr20_02" , "rbgyr20_03" , "rbgyr20_04" , /* RBG cycle */
25    "rbgyr20_05" , "rbgyr20_06" , "rbgyr20_07" , "rbgyr20_08" , /* 10 Jun 2002 */
26    "rbgyr20_09" , "rbgyr20_10" , "rbgyr20_11" , "rbgyr20_12" ,
27    "rbgyr20_13" , "rbgyr20_14" , "rbgyr20_15" , "rbgyr20_16" ,
28    "rbgyr20_17" , "rbgyr20_18" , "rbgyr20_19" , "rbgyr20_20"
29 } ;
30 
31 #define COL_yellow     1
32 #define COL_yell_oran  2
33 #define COL_oran_yell  3
34 #define COL_orange     4
35 #define COL_oran_red   5
36 #define COL_red        6
37 #define COL_dk_blue    7
38 #define COL_blue       8
39 #define COL_lt_blue1   9
40 #define COL_lt_blue2   10
41 #define COL_blue_cyan  11
42 #define COL_cyan       12
43 #define COL_green      13
44 #define COL_limegreen  14
45 #define COL_violet     15
46 #define COL_hotpink    16
47 #define COL_white      17
48 #define COL_gry_dd     18
49 #define COL_gry_bb     19
50 #define COL_black      20
51 #define COL_rbgyr20_01 21
52 #define COL_rbgyr20_02 22
53 #define COL_rbgyr20_03 23
54 #define COL_rbgyr20_04 24
55 #define COL_rbgyr20_05 25
56 #define COL_rbgyr20_06 26
57 #define COL_rbgyr20_07 27
58 #define COL_rbgyr20_08 28
59 #define COL_rbgyr20_09 29
60 #define COL_rbgyr20_10 30
61 #define COL_rbgyr20_11 31
62 #define COL_rbgyr20_12 32
63 #define COL_rbgyr20_13 33
64 #define COL_rbgyr20_14 34
65 #define COL_rbgyr20_15 35
66 #define COL_rbgyr20_16 36
67 #define COL_rbgyr20_17 37
68 #define COL_rbgyr20_18 38
69 #define COL_rbgyr20_19 39
70 #define COL_rbgyr20_20 40
71 
72 /** actual colors (from defaults above, or from X11 resources) **/
73 
74 char * INIT_colovr[MAX_NCOLOVR] ;
75 char * INIT_labovr[MAX_NCOLOVR] ;
76 
77 /** misc constants **/
78 
79 int INIT_ngray           = DEFAULT_NGRAY ,
80     INIT_ncolovr         = DEFAULT_NCOLOVR ,
81     INIT_crosshair_color = DEFAULT_CROSSHAIR_COLOR ,
82     INIT_marks1_color    = DEFAULT_PRIMARY_COLOR ,
83     INIT_marks2_color    = DEFAULT_SECONDARY_COLOR ,
84     INIT_marks_size      = DEFAULT_MARK_SIZE ,
85     INIT_marks_gap       = DEFAULT_MARK_GAP ,
86     INIT_crosshair_gap   = DEFAULT_CROSSHAIR_GAP ,
87     INIT_purge           = 0 ,
88     INIT_posfunc         = 0 ,
89     INIT_bigscroll       = 5 ,
90     INIT_resam_anat      = RESAM_LINEAR_TYPE ,
91     INIT_resam_func      = RESAM_NN_TYPE ,
92     INIT_resam_thr       = RESAM_NN_TYPE   ;
93 
94 float INIT_gamma         = DEFAULT_GAMMA ,
95       INIT_resam_vox     = DEFAULT_RESAMPLE_VOX ;
96 
97 int INIT_ignore           = 0 ;
98 int INIT_tlrc_big         = 1 ;
99 int INIT_montage_periodic = 1 ;
100 int INIT_fim_polort       = 1 ; /* 30 May 1999 */
101 
102 int INIT_panes_pos  = DEFAULT_PANES_POS ,
103     INIT_panes_sgn  = DEFAULT_PANES_SGN ,
104     INIT_panes_hide = 0 ;
105 
106 
107 float INIT_pval_pos[NPANE_MAX+1][NPANE_MAX+1] = {
108   { 0 },                                                                        /* 0 panes */
109   { 1.00, 0.00 },                                                               /* 1 */
110   { 1.00, 0.50,  0.00 },                                                        /* 2 */
111   { 1.00, 0.67,  0.33,  0.00 },                                                 /* 3 */
112   { 1.00, 0.75,  0.50,  0.25,  0.00 },                                          /* 4 */
113   { 1.00, 0.80,  0.60,  0.40,  0.20,  0.00 },                                   /* 5 */
114   { 1.00, 0.84,  0.67,  0.50,  0.33,  0.16,  0.00 },                            /* 6 */
115   { 1.00, 0.90,  0.75,  0.60,  0.45,  0.30,  0.15,  0.00 },                     /* 7 */
116   { 1.00, 0.80,  0.70,  0.60,  0.50,  0.40,  0.30,  0.15,  0.00 },              /* 8 */
117   { 1.00, 0.90,  0.80,  0.70,  0.60,  0.50,  0.25,  0.15,  0.05,  0.00 },       /* 9 */
118   { 1.00, 0.90,  0.80,  0.70,  0.60,  0.50,  0.40,  0.30,  0.20,  0.10,  0.00 } /*10 */
119 } ;
120 
121 int INIT_ovin_pos[NPANE_MAX+1][NPANE_MAX+1] = {
122   { 0 } ,                                    /* 0 panes */
123   { 1 } ,                                    /* 1 */
124   { 1 , 0 } ,                                /* 2 */
125   { 1 , 6 , 0 } ,                            /* 3 */
126   { 1 , 4 , 6 , 0 } ,                        /* 4 */
127   { 1 , 3 , 5 , 6 , 0 } ,                    /* 5 */
128   { 1 , 2 , 3 , 5 , 6 , 0 } ,                /* 6 */
129   { 1 , 2 , 3 , 4 , 5 , 6 , 0 } ,            /* 7 */
130   { 1 , 2 , 3 , 4 , 5 , 6 ,16 , 0 } ,        /* 8 */
131   { 1 , 2 , 3 , 4 , 5 , 6 ,16 ,15 , 0 } ,    /* 9 */
132   { 1 , 2 , 3 , 5 , 5 , 6 ,16 ,15 , 7 , 0 }  /*10 */
133 } ;
134 
135 float INIT_pval_sgn[NPANE_MAX+1][NPANE_MAX+1] = {
136   { 0 },                                                                        /* 0 panes */
137   { 1.00,-1.00 },                                                               /* 1 */
138   { 1.00, 0.00, -1.00 },                                                        /* 2 */
139   { 1.00, 0.05, -0.05, -1.00 },                                                 /* 3 */
140   { 1.00, 0.50,  0.00, -0.50, -1.00 },                                          /* 4 */
141   { 1.00, 0.50,  0.05, -0.05, -0.50, -1.00 },                                   /* 5 */
142   { 1.00, 0.66,  0.33,  0.00, -0.33, -0.66, -1.00 },                            /* 6 */
143   { 1.00, 0.66,  0.33,  0.05, -0.05, -0.33, -0.66, -1.00 },                     /* 7 */
144   { 1.00, 0.75,  0.50,  0.25,  0.00, -0.25, -0.50, -0.75, -1.00 },              /* 8 */
145   { 1.00, 0.75,  0.50,  0.25,  0.05, -0.05, -0.25, -0.50, -0.75, -1.00 },       /* 9 */
146   { 1.00, 0.80,  0.60,  0.40,  0.20,  0.00, -0.20, -0.40, -0.60, -0.80, -1.00 } /*10 */
147 } ;
148 
149 int INIT_ovin_sgn[NPANE_MAX+1][NPANE_MAX+1] = {
150   { 0 } ,
151   { 1 } ,
152   { 1 , 11 } ,
153   { 1 , 0 , 11 } ,
154   { 1 , 4 ,  8 , 11 } ,
155   { 1 , 4 ,  0 ,  8 , 11 } ,
156   { 1 , 3 ,  5 ,  7 ,  9 , 11 } ,
157   { 1 , 3 ,  5 ,  0 ,  7 ,  9 , 11 } ,
158   { 1 , 2 ,  4 ,  5 ,  8 ,  9 , 10 , 11 } ,
159   { 1 , 2 ,  4 ,  5 ,  0 ,  8 ,  9 , 10 , 11 } ,
160   { 1 , 2 ,  3 ,  4 ,  5 ,  7 ,  8 ,  9 , 10 , 11 }
161 } ;
162