Changeset 639 in Sophya for trunk/Poubelle/archediab.old/archediab.sources/c/trace_tout.c
- Timestamp:
- Nov 25, 1999, 2:07:25 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archediab.old/archediab.sources/c/trace_tout.c
r637 r639 19 19 int i,j; 20 20 double x,c1,c2; 21 static int scan_tt; 21 22 util_trace_tout *SS; 22 23 SS=infos(fen)->util; … … 91 92 92 93 case tache_de_fond : selectgra(fen); 93 94 c1=2*3.14*SS->fmini*gg->periode_echantillonage; c1=c1/(1+c1); 95 c2=2*3.14*SS->fmaxi*gg->periode_echantillonage; c2=c2/(1+c2); 94 c1=2*3.14*SS->fmini*gg->periode_echantillonage; if(c1>0) c1=c1/(1+c1); 95 c2=2*3.14*SS->fmaxi*gg->periode_echantillonage; if(c2>0) c2=c2/(1+c2); 96 96 97 97 for(j=0;j<nb_max_bolo;j++) … … 105 105 { 106 106 SS->ipas=SS->moyenne; 107 for(j=0;j<nb_max_bolo;j++) SS->y[j]=SS->y[j]/(double)SS->moyenne; 108 printf("trace_tout un point \n"); 109 110 // SS->[nb_max_bolo]=(0.95*graph->ymin+0.05*graph->ymax) + 111 // + ( (gg->don.sync[sync_subscan]!=0) et (gg->don.sync[sync_scan]!=0) ) 112 // * 0.9 * (graph->ymax-graph->ymin); 107 if(SS->moyenne) for(j=0;j<nb_max_bolo;j++) SS->y[j]=SS->y[j]/(double)SS->moyenne; 108 // printf("trace_tout un point \n"); 113 109 114 110 x=gg->periode_echantillonage*(double)gg->temps_cntl-gg->temps_origine; 115 // printf("x=%g x0=%g \n",x,x0); 116 //if(x<0) {x0=gg->periode_echantillonage*(double)gg->temps_cntl;x=0;} 111 112 if(scan_tt != ( (gg->don.sync[sync_subscan]!=0) et (gg->don.sync[sync_scan]!=0) ) ) 113 { 114 if(scan_tt) rectangle(fen,x,graph->ymin,x,graph->ymax,rouge); // trace le segment x1,y1 - x2,y2 115 else rectangle(fen,x,graph->ymin,x,graph->ymax,bleu); // trace le segment x1,y1 - x2,y2 117 116 117 scan_tt = ( (gg->don.sync[sync_subscan]!=0) et (gg->don.sync[sync_scan]!=0) ) ; 118 } 118 119 119 montracen_tout(fen,nb_max_bolo,x,SS); // SANS LA SYNCHRO 120 // montracen(fen,nb_max_bolo+1,x,SS->y); // avec la synchro 120 montracen_tout(fen,nb_max_bolo,x,SS); 121 121 122 122 … … 144 144 for(i=0;i<max_couleur;i++) 145 145 { 146 if( SS->bolo_couleur[i])yy[i]=SS->y[SS->bolo_couleur[i]-1];146 if( (SS->bolo_couleur[i]>=1) && (SS->bolo_couleur[i]<nb_max_bolo+1) ) yy[i]=SS->y[SS->bolo_couleur[i]-1]; 147 147 else yy[i]=0; 148 148 }
Note:
See TracChangeset
for help on using the changeset viewer.