gCAD3D 2.35
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 
30 typedef struct {int errLn; short sysStat, errStat;
31  unsigned batch:1,
32  texture:1,
33  build:1,
34  APP_stat:1,
35  TUT_stat:1,
36  jntStat:1,
37  debStat:1,
38  iActStat:1,
39  tstDllStat:1,
40  mdl_modified:1,
41  mdl_box_valid:1,
42  uuBits:21;
43  char subtyp;} AP_STAT;
44 
45 
50 typedef struct {char* oNam; int oTyp;} APP_OBJ_NAM;
51 
52 
53 
54 //================================================================
55 // defined in ../xa/xa.c (with extern invalidated)
56 extern char WC_modnam[128]; // active Modelname - without path
57 extern char WC_modact_nam[128]; // name of the active submodel; def="" (main)
58  // not set in runmode.
59 extern Point AP_box_pm1, AP_box_pm2; // box around mainmodel
60 
61 extern char AP_dir_open[128]; // directory for OPEN
62 extern char AP_dir_save[128]; // directory for SAVE
63 extern char AP_dir_prg[128]; // directory for programs
64 
65 extern char AP_sym_open[64]; // symbolic directory for OPEN
66 extern char AP_sym_save[64]; // symbolic directory for SAVE
67 extern char AP_sym_prg[64]; // symbolic directory for programs
68 
69 extern char AP_errText[128]; // errortext for minor errors
70 extern char AP_printer[80]; // Printer
71 extern char AP_browser[80]; // HTML-browser
72 extern char AP_editor[80]; // TextEditor
73 extern char AP_lang[4]; // en or de
74 
75 extern int APP_act_typ; // type of APP_act_nam: 0=none;
76  // 1=applic. 2=process 3=plugin 4=remote;
77  // APP PRC PLU RPC
78 extern char APP_act_nam[128]; // name of last script- or plugin-program
79 extern char APP_act_proc[128]; // name of processor (dll)
80 extern long APP_dli_start; // first free dli (last dli of core-obj's)
81 
82 extern FILE *AP_deb_fp;
83 
90 extern AP_STAT AP_stat;
91 
92 
93 
94 //================================================================
95  int AP_defaults_write ();
96  long AP_cre_defHdr (int typ, int istart);
97  int AP_Init0 ();
98  int AP_Init1 ();
99  int AP_search_init ();
100  // int AP_search_obj (char *bufIn);
101  // int AP_search_def (char *cbuf);
102  int AP_Print0 (int mode,char* cmd,int irot,char* off,char* scl);
103  int AP_PrintWrHex (FILE *fpo,unsigned char *dat,int ilen,int gray);
104  int AP_defaults_read ();
105 
106  char AP_typChar_typ (int typ);
107  int APED_oid_dbo__ (char *buf, int typ, long ind);
108 
109  // int AP_appr (char *obj, char *ref, double tol, double lmin, int mode);
110 
111  int AP_obj_del0 ();
112  // int AP_obj_del1 ();
113  // int AP_obj_del2 (int lNr, char *tx1, int mode);
114  // int AP_obj_analyze (int typ, long ind);
115 
116  int AP_get_lNr ();
117  int AP_set_lNr (int lNr);
118 
119  // long AP_lNr_get ();
120  // int AP_lNr_set (long lNr);
121 
122  // int AP_colSel (ColRGB *cSel); // ColRGB!
123 
124  char* AP_Get_ConstPl_Z (int typ);
125  // int AP_GetObj (ObjG* o1, long dli);
126  int AP_APT_clean ();
127 
128  // AP_STAT AP_stat__ (AP_STAT *newStat);
129  int AP_errStat_set (int stat);
130  int AP_errStat_get ();
131 
132 // nur temp:
133  // void GR_tmpSym (int typ, Point *pt1); // Point !
134 
135 
136 
137 //=================== EOF ==============================
int AP_get_lNr()
int typ
Definition: xa_tra.c:151
char * AP_Get_ConstPl_Z(int typ)
Definition: xa.c:4400
Definition: xa.h:30
int AP_PrintWrHex(FILE *fpo, unsigned char *dat, int ilen, int gray)
char subtyp
Definition: xa.h:43
int APP_act_typ
int AP_obj_del0()
Definition: xa.h:50
char mode
Definition: xa_tra.c:152
int AP_set_lNr(int lNr)
char AP_editor[80]
char AP_sym_prg[64]
int AP_errStat_get()
Definition: xa.c:817
char stat
Definition: xa_tra.c:152
char AP_lang[4]
char AP_dir_open[128]
long APP_dli_start
char AP_browser[80]
char AP_typChar_typ(int typ)
Definition: ut_gtypes.c:1133
char AP_dir_save[128]
int APED_oid_dbo__(char *buf, int typ, long ind)
Definition: ut_gtypes.c:386
int AP_Init0()
int AP_search_init()
Definition: xa.c:3569
AP_STAT AP_stat
progress of Start
int AP_Init1()
Definition: xa.c:2230
char AP_sym_save[64]
char APP_act_proc[128]
short sysStat
Definition: xa.h:30
char APP_act_nam[128]
3D-point, Typ_PT
Definition: ut_geo.h:195
int AP_APT_clean()
Definition: xa.c:1641
char AP_sym_open[64]
FILE * AP_deb_fp
debug-file-pointer
char AP_dir_prg[128]
int AP_defaults_write()
Definition: xa.c:2354
char WC_modnam[128]
char WC_modact_nam[128]
int AP_defaults_read()
Definition: xa.c:2603
long AP_cre_defHdr(int typ, int istart)
Definition: xa.c:1914
Point AP_box_pm2
int AP_errStat_set(int stat)
Definition: xa.c:761
Point AP_box_pm1
long lNr
Definition: xa_tra.c:150
char AP_printer[80]
int oTyp
Definition: xa.h:50
char AP_errText[128]
int ind
Definition: xa_tra.c:151
int AP_Print0(int mode, char *cmd, int irot, char *off, char *scl)