source:
Sophya/trunk/SophyaPI/PIGcont/gpc_set.c@
1844
Last change on this file since 1844 was 1844, checked in by , 24 years ago | |
---|---|
File size: 1.0 KB |
Line | |
---|---|
1 | #include "gpc_set.h" |
2 | |
3 | void set_contour_kind(t_contour_kind in){ |
4 | contour_kind = in; |
5 | } |
6 | |
7 | t_contour_kind get_contour_kind(){ |
8 | return (contour_kind); |
9 | } |
10 | |
11 | void set_contour_levels_kind(t_contour_levels_kind in){ |
12 | contour_levels_kind = in; |
13 | |
14 | } |
15 | |
16 | t_contour_levels_kind get_contour_levels_kind(){ |
17 | |
18 | return(contour_levels_kind); |
19 | } |
20 | |
21 | void set_contour_levels(int num){ |
22 | contour_levels = num; |
23 | } |
24 | |
25 | int get_contour_levels(){ |
26 | return(contour_levels); |
27 | } |
28 | void set_contour_levels_list(double *vec){ |
29 | |
30 | contour_levels_list=vec; |
31 | } |
32 | |
33 | /******* |
34 | void set_contour_levels_list(double *vec,int sz){ |
35 | int i; |
36 | printf(" <set_contour_levels_list> sz %d \n",sz); |
37 | contour_levels_list = (double *) malloc(sz*sizeof(double)); |
38 | for (i=0 ; i<sz ; i++){ |
39 | printf(" <set_contour_levels_list> i %d vec %g\n",i,vec[i]); |
40 | contour_levels_list[i] = vec[i]; |
41 | |
42 | } |
43 | } |
44 | void free_contour_levels_list(){ |
45 | if(contour_levels_list != NULL){ |
46 | free(contour_levels_list); |
47 | contour_levels_list = NULL; |
48 | } |
49 | } |
50 | *****/ |
51 | double * get_contour_levels_list(){ |
52 | |
53 | return(contour_levels_list); |
54 | } |
55 |
Note:
See TracBrowser
for help on using the repository browser.