00001
00002
00003
00004
00005
00006
00007
00015 #define DB_VCX_IND -1
00016 #define DB_VCY_IND -2
00017 #define DB_VCZ_IND -3
00018 #define DB_VCIX_IND -4
00019 #define DB_VCIY_IND -5
00020 #define DB_VCIZ_IND -6
00021
00022 #define DB_PLX_IND -1
00023 #define DB_PLY_IND -2
00024 #define DB_PLZ_IND -3
00025
00026
00027 extern long APT_VR_SIZ;
00028 extern long APT_PT_SIZ;
00029 extern long APT_VC_SIZ;
00030 extern long APT_LN_SIZ;
00031 extern long APT_CI_SIZ;
00032 extern long APT_PL_SIZ;
00033 extern long APT_MR_SIZ;
00034 extern long APT_TL_SIZ;
00035 extern long APT_CV_SIZ;
00036 extern long APT_TX_SIZ;
00037 extern long APT_SU_SIZ;
00038 extern long APT_SO_SIZ;
00039 extern long DB_CSIZ;
00040 extern long DB_MNM_SIZ;
00041
00042
00043
00044
00045 void DB_Init (int mode);
00046
00047 int DB_StoreAtt (long, GR_Att*);
00048 int DB_StoreTxt (char **pos, char *text);
00049 long DB_StoreDim (long Ind, Dimen *dim1);
00050 long DB_StoreDim3 (long Ind, Dim3 *dim3);
00051 long DB_StoreGTxt (long Ind, GText *gtx1);
00052 int DB_StoreSur (long Ind, ObjGX *ox1);
00053 int DB_StoreTra (long Ind, ObjGX *ox1);
00054 long DB_StoreVar (long, double);
00055 long DB_StoreVector (long, Vector*);
00056 long DB_StorePoint (long, Point*);
00057 long DB_StoreLine (long, Line*);
00058 long DB_StoreCirc (long, Circ*);
00059 long DB_StoreCvEll (long Ind, CurvPoly *cvell);
00060 long DB_StoreCvPlg (long Ind, CurvPoly *cvplg);
00061 long DB_StoreCvBsp (long Ind, CurvBSpl *cvbsp);
00062 long DB_StoreCurv (long, ObjGX*, int);
00063 long DB_StoreRef (long, Plane*);
00064 void DB_StoreTool (long, BTool*);
00065 int DB_StoreDummy (int typ, long Ind);
00066
00067 long DB_Store_hdr_cv (ObjGX **cvo, long Ind);
00068 long DB_Store_hdr_su (ObjGX **oxo, long Ind);
00069 long DB_Store_hdr_nt (ObjGX **oxo, long Ind);
00070
00071 void DB_Delete (int, long);
00072
00073 long DB_FindVector (Vector* vc1);
00074
00075 long DB_GetDynInd (int);
00076 char** DB_GetTxt (long);
00077 double DB_GetVar (long);
00078 double* DB_get_Var (long Ind);
00079 Vector DB_GetVector (long);
00080 Point DB_GetPoint (long);
00081 Line DB_GetLine (long);
00082 Circ DB_GetCirc (long);
00083 ObjGX* DB_GetCurv (long);
00084 ObjGX* DB_GetSol (long);
00085 ObjGX* DB_GetGTxt (long Ind);
00086 int DB_GetTool (BTool* tl1, long Ind);
00087 ObjGX* DB_GetSur (long Ind, int mode);
00088 ObjGX* DB_GetTra (long Ind);
00089
00090 Point* DB_get_PT (long Ind);
00091 Line* DB_get_LN (long Ind);
00092 Vector* DB_get_VC (long Ind);
00093 Circ* DB_get_CI (long Ind);
00094 void* DB_get_CV (int *ityp, long Ind);
00095 Plane* DB_get_PLN (long Ind);
00096 ModelRef* DB_get_ModRef (long Ind);
00097 ModelBas* DB_get_ModBas (long Ind);
00098 ModelNode* DB_get_ModNod (int ind);
00099
00100 int DB_GetObj (long, long*, int*);
00101 ObjGX DB_GetObjGX (int typ, long apt_ind);
00102
00103 int DB_GetConnObj (int*, long*, int*, long*, Point2 *);
00104 long DB_GetObjTyp2Pt (int*, Point2 *, Point2 *);
00105 void DB_GetRef (Plane*, int);
00106 Activity* DB_get_Activ (long Ind);
00107
00108 Plane* DB_DefRef (long Ind);
00109
00110 void* DB_cPos ();
00111 void* DB_cSav (long size, void *data);
00112 void* DB_cGet (void *data, void *pos, long size);
00113
00114 int DB_Lay (int, int, int);
00115 int DB_Lay_add (int, int, char*, int*, double*);
00116
00117 long DB_QueryPoint (Point*);
00118 long DB_QueryLine (Point*);
00119 long DB_QueryCirc (Point*);
00120 long DB_QueryCurv (Point*);
00121 int DB_QueryDynPoint (Point *, Point *);
00122
00123 long DB_QueryNew (char *typChr, int iOff);
00124 long DB_QueryNxtInd (int typ, int istart);
00125 long DB_QueryLastUsed (int typ, int istart);
00126
00127 void DB_fix_tol (double);
00128 int DB_2DTyp_3DTyp (int);
00129 int DB_Typ_Char (char*);
00130 char* DB_Char_Typ (int typ);
00131
00132 char* DB_ModBas_namNr (int bmNr);
00133
00134 void DB_Stat ();
00135 int DB_save__ ();
00136 int DB_load__ ();
00137
00138
00139