home *** CD-ROM | disk | FTP | other *** search
- #include <suntool/sunview.h>
-
- scan_compute()
- {
- int i,j,type,color,s_type,lock_interval_old;
- double *t_x;
- extern int stop,lock_interval,symbol_size;
- extern int scan_col_dim,scan_region_index,scan_n_max,scan_n_stored;
- extern int *scan_type;
- extern double **scan_x;
- extern Pixwin *pw;
-
- stop=0;
- lock_interval_old = lock_interval;
- lock_interval = 0;
-
- for(i=0;i<scan_n_max;i++){
- type = (int) test_dynamics();
- color = (int) scan_type_to_color(type);
- for(j=0;j<scan_col_dim;j++)
- t_x[j] = scan_x[i][j];
- decode_color_symbol(scan_type[i],&color,&s_type);
- pen_down(scan_region_index,pw,t_x,color,s_type,symbol_size,1);
- *(scan_type+scan_n_stored) = color;
- scan_n_stored++;
- }
- lock_interval_old = lock_interval;
- (void) free_dvector(t_x,0,scan_col_dim-1);
- }
-