00001 00002 00003 #ifndef __IMAGER_IMPORT_H__ 00004 #define __IMAGER_IMPORT_H__ 00005 00006 #include "defs.h" 00007 00008 00009 00010 typedef enum { iB_CHAR, iB_SHORT, iB_RGB, iB_FLOAT, iB_DOUBLE } SRC_TYPE; 00011 00012 typedef struct 00013 { 00014 long xdim, ydim, zdim, ofs; 00015 unsigned char imp_swab, is_ascii; 00016 char filename[1024]; 00017 TYPE_SELECTOR imgtype; 00018 SRC_TYPE src_type; 00019 } 00020 import_params; 00021 00022 00023 int do_import (image_type *img, import_params params); 00024 00025 int do_import_ascii (image_type *img, import_params params); 00026 00027 00028 int shmatch(char* p, char* s); 00029 00030 int import_dialog (char* infilename); 00031 void rgbload_main (); 00032 void do_open_multiple (); 00033 00034 #endif