gCAD3D 2.40
xa.h
Go to the documentation of this file.
1 // include with deactivated extern in "../xa/xa.c"
2 // needs #include "../ut/ut_geo.h" (Point)
3 
4 
6 #ifdef DEB
7 #define printd if(AP_stat.debStat) AP_deb_print
8 #else
9 #define printd if(0) printf
10 #endif
11 
12 
13 
33 typedef struct {int errLn; short sysStat, errStat;
34  unsigned batch:1,
35  texture:1,
36  build:1,
37  APP_stat:1,
38  TUT_stat:1,
39  jntStat:1,
40  debStat:1,
41  iActStat:1,
42  tstDllStat:1,
43  mdl_modified:1,
44  mdl_box_valid:1,
45  uuBits:21;
46  char cadIniM, cadIniS, subtyp;} AP_STAT;
47 
48 
53 typedef struct {char* oNam; int oTyp;} APP_OBJ_NAM;
54 
55 
56 
57 //================================================================
58 // defined in ../xa/xa.c (with extern invalidated)
59 extern char AP_mod_dir[128]; // directory of active model, with '/' at end
60 extern char AP_mod_fnam[128]; // active Modelname - without path
61 extern char AP_mod_ftyp[32]; // filetyp of active model
62 extern char AP_mod_sym[64]; // symbolic directory for OPEN (no '/' at end)
63  // AP_mod_iftyp: integer-filetyp of active model; eg Mtyp_DXF
64 extern char AP_mod_iftyp; // integer-filetyp - eg Mtyp_Gcad|Mtyp_DXF ..
65 extern char AP_modact_nam[128]; // name of the active submodel; def="" (main)
66  // not set in runmode.
67 extern Point AP_box_pm1, AP_box_pm2; // box around mainmodel
68 
69 // extern char AP_dir_save[128]; // directory for SAVE
70 // extern char AP_sym_save[64]; // symbolic directory for SAVE
71 
72 extern char AP_dir_prg[128]; // directory for programs
73 extern char AP_sym_prg[64]; // symbolic directory for programs
74 
75 extern char AP_errText[128]; // errortext for minor errors
76 extern char AP_printer[80]; // Printer
77 extern char AP_browser[80]; // HTML-browser
78 extern char AP_editor[80]; // TextEditor
79 extern char AP_lang[4]; // en or de
80 
81 extern int APP_act_typ; // type of APP_act_nam: 0=none;
82  // 1=applic. 2=process 3=plugin 4=remote;
83  // APP PRC PLU RPC
84 extern char APP_act_nam[128]; // name of last script- or plugin-program
85 extern char APP_act_proc[128]; // name of processor (dll)
86 extern long APP_dli_start; // first free dli (last dli of core-obj's)
87 
88 extern FILE *AP_deb_fp;
89 
96 extern AP_STAT AP_stat;
97 
98 
99 
100 //================================================================
101  int AP_defaults_write ();
102  long AP_cre_defHdr (int typ, int istart);
103  int AP_Init0 ();
104  int AP_Init1 ();
105  int AP_search_init ();
106  // int AP_search_obj (char *bufIn);
107  // int AP_search_def (char *cbuf);
108  int AP_Print0 (int mode,char* cmd,int irot,char* off,char* scl);
109  int AP_PrintWrHex (FILE *fpo,unsigned char *dat,int ilen,int gray);
110  int AP_defaults_read ();
111 
112  char AP_typChar_typ (int typ);
113  int APED_oid_dbo__ (char *buf, int typ, long ind);
114 
115  // int AP_appr (char *obj, char *ref, double tol, double lmin, int mode);
116 
117  int AP_obj_del0 ();
118  // int AP_obj_del1 ();
119  // int AP_obj_del2 (int lNr, char *tx1, int mode);
120  // int AP_obj_analyze (int typ, long ind);
121 
122  int AP_get_lNr ();
123  int AP_set_lNr (int lNr);
124 
125  // long AP_lNr_get ();
126  // int AP_lNr_set (long lNr);
127 
128  // int AP_colSel (ColRGB *cSel); // ColRGB!
129 
130  char* AP_Get_ConstPl_Z (int typ);
131  // int AP_GetObj (ObjG* o1, long dli);
132  int AP_APT_clean ();
133 
134  // AP_STAT AP_stat__ (AP_STAT *newStat);
135  int AP_errStat_set (int stat);
136  int AP_errStat_get ();
137 
138 // nur temp:
139  // void GR_tmpSym (int typ, Point *pt1); // Point !
140 
141 
142 
143 //=================== EOF ==============================
int AP_get_lNr()
int typ
Definition: xa_tra.c:151
AP_STAT AP_stat
Definition: xa.h:33
int AP_PrintWrHex(FILE *fpo, unsigned char *dat, int ilen, int gray)
char subtyp
Definition: xa.h:46
int APP_act_typ
int AP_obj_del0()
char AP_mod_ftyp[32]
Definition: xa.h:53
char mode
Definition: xa_tra.c:152
char * AP_Get_ConstPl_Z(int typ)
Definition: xa.c:4385
int AP_set_lNr(int lNr)
int AP_errStat_get()
Definition: xa.c:766
char AP_editor[80]
char AP_sym_prg[64]
char APP_act_nam[128]
Definition: ut_utx_dummy.c:13
char stat
Definition: xa_tra.c:152
char AP_lang[4]
Definition: ut_utx_dummy.c:12
int AP_search_init()
Definition: xa.c:3552
long APP_dli_start
char AP_browser[80]
char AP_typChar_typ(int typ)
Definition: ut_gtypes.c:1142
char AP_mod_sym[64]
int APED_oid_dbo__(char *buf, int typ, long ind)
Definition: ut_gtypes.c:387
int AP_Init0()
int AP_Init1()
Definition: xa.c:2183
char APP_act_proc[128]
short sysStat
Definition: xa.h:33
3D-point, Typ_PT
Definition: tessbug1.c:66
char AP_mod_fnam[128]
int AP_APT_clean()
Definition: xa.c:1607
FILE * AP_deb_fp
debug-file-pointer
char AP_dir_prg[128]
char AP_mod_dir[128]
char AP_mod_iftyp
Definition: t1.c:75
long AP_cre_defHdr(int typ, int istart)
Definition: xa.c:1880
int AP_defaults_write()
Definition: xa.c:2306
int AP_errStat_set(int stat)
Definition: xa.c:710
Point AP_box_pm2
Point AP_box_pm1
long lNr
Definition: xa_tra.c:150
char AP_printer[80]
int AP_defaults_read()
Definition: xa.c:2555
int oTyp
Definition: xa.h:53
char AP_errText[128]
char AP_modact_nam[128]
int ind
Definition: xa_tra.c:151
int AP_Print0(int mode, char *cmd, int irot, char *off, char *scl)