Go to the source code of this file.
Defines | |
#define | DB_VCX_IND -1 |
DX. | |
#define | DB_VCY_IND -2 |
DY. | |
#define | DB_VCZ_IND -3 |
DZ. | |
#define | DB_VCIX_IND -4 |
DIX. | |
#define | DB_VCIY_IND -5 |
DIY. | |
#define | DB_VCIZ_IND -6 |
DIZ. | |
#define | DB_PLX_IND -1 |
RX. | |
#define | DB_PLY_IND -2 |
RY. | |
#define | DB_PLZ_IND -3 |
RZ. | |
Functions | |
void | DB_Init (int mode) |
int | DB_StoreAtt (long, GR_Att *) |
int | DB_StoreTxt (char **pos, char *text) |
long | DB_StoreDim (long Ind, Dimen *dim1) |
long | DB_StoreDim3 (long Ind, Dim3 *dim3) |
long | DB_StoreGTxt (long Ind, GText *gtx1) |
int | DB_StoreSur (long Ind, ObjGX *ox1) |
int | DB_StoreTra (long Ind, ObjGX *ox1) |
long | DB_StoreVar (long, double) |
long | DB_StoreVector (long, Vector *) |
long | DB_StorePoint (long, Point *) |
long | DB_StoreLine (long, Line *) |
long | DB_StoreCirc (long, Circ *) |
long | DB_StoreCvEll (long Ind, CurvPoly *cvell) |
long | DB_StoreCvPlg (long Ind, CurvPoly *cvplg) |
long | DB_StoreCvBsp (long Ind, CurvBSpl *cvbsp) |
long | DB_StoreCurv (long, ObjGX *, int) |
long | DB_StoreRef (long, Plane *) |
void | DB_StoreTool (long, BTool *) |
int | DB_StoreDummy (int typ, long Ind) |
long | DB_Store_hdr_cv (ObjGX **cvo, long Ind) |
long | DB_Store_hdr_su (ObjGX **oxo, long Ind) |
long | DB_Store_hdr_nt (ObjGX **oxo, long Ind) |
void | DB_Delete (int, long) |
long | DB_FindVector (Vector *vc1) |
long | DB_GetDynInd (int) |
char ** | DB_GetTxt (long) |
double | DB_GetVar (long) |
double * | DB_get_Var (long Ind) |
Vector | DB_GetVector (long) |
Point | DB_GetPoint (long) |
Line | DB_GetLine (long) |
Circ | DB_GetCirc (long) |
ObjGX * | DB_GetCurv (long) |
ObjGX * | DB_GetSol (long) |
ObjGX * | DB_GetGTxt (long Ind) |
int | DB_GetTool (BTool *tl1, long Ind) |
ObjGX * | DB_GetSur (long Ind, int mode) |
ObjGX * | DB_GetTra (long Ind) |
Point * | DB_get_PT (long Ind) |
Line * | DB_get_LN (long Ind) |
Vector * | DB_get_VC (long Ind) |
Circ * | DB_get_CI (long Ind) |
void * | DB_get_CV (int *ityp, long Ind) |
Plane * | DB_get_PLN (long Ind) |
ModelRef * | DB_get_ModRef (long Ind) |
ModelBas * | DB_get_ModBas (long Ind) |
ModelNode * | DB_get_ModNod (int ind) |
int | DB_GetObj (long, long *, int *) |
ObjGX | DB_GetObjGX (int typ, long apt_ind) |
int | DB_GetConnObj (int *, long *, int *, long *, Point2 *) |
long | DB_GetObjTyp2Pt (int *, Point2 *, Point2 *) |
void | DB_GetRef (Plane *, int) |
Activity * | DB_get_Activ (long Ind) |
Plane * | DB_DefRef (long Ind) |
void * | DB_cPos () |
void * | DB_cSav (long size, void *data) |
void * | DB_cGet (void *data, void *pos, long size) |
int | DB_Lay (int, int, int) |
int | DB_Lay_add (int, int, char *, int *, double *) |
long | DB_QueryPoint (Point *) |
long | DB_QueryLine (Point *) |
long | DB_QueryCirc (Point *) |
long | DB_QueryCurv (Point *) |
int | DB_QueryDynPoint (Point *, Point *) |
long | DB_QueryNew (char *typChr, int iOff) |
long | DB_QueryNxtInd (int typ, int istart) |
long | DB_QueryLastUsed (int typ, int istart) |
void | DB_fix_tol (double) |
int | DB_2DTyp_3DTyp (int) |
int | DB_Typ_Char (char *) |
char * | DB_Char_Typ (int typ) |
char * | DB_ModBas_namNr (int bmNr) |
void | DB_Stat () |
int | DB_save__ () |
int | DB_load__ () |
Variables | |
long | APT_VR_SIZ |
long | APT_PT_SIZ |
long | APT_VC_SIZ |
long | APT_LN_SIZ |
long | APT_CI_SIZ |
long | APT_PL_SIZ |
long | APT_MR_SIZ |
long | APT_TL_SIZ |
long | APT_CV_SIZ |
long | APT_TX_SIZ |
long | APT_SU_SIZ |
long | APT_SO_SIZ |
long | DB_CSIZ |
long | DB_MNM_SIZ |
#define DB_VCX_IND -1 |
DX.
#define DB_VCY_IND -2 |
DY.
#define DB_VCZ_IND -3 |
DZ.
#define DB_VCIX_IND -4 |
DIX.
#define DB_VCIY_IND -5 |
DIY.
#define DB_VCIZ_IND -6 |
DIZ.
#define DB_PLX_IND -1 |
RX.
#define DB_PLY_IND -2 |
RY.
#define DB_PLZ_IND -3 |
RZ.
void DB_Init | ( | int | mode | ) |
mode=0: komplettes Init (alles) mode=1: alles ausser basicModels initialisieren mode=2: nur dyn-objects resetten
int DB_StoreAtt | ( | long | , | |
GR_Att * | ||||
) |
int DB_StoreTxt | ( | char ** | pos, | |
char * | text | |||
) |
long DB_StoreDim | ( | long | Ind, | |
Dimen * | dim1 | |||
) |
long DB_StoreDim3 | ( | long | Ind, | |
Dim3 * | dim3 | |||
) |
long DB_StoreGTxt | ( | long | Ind, | |
GText * | gtx1 | |||
) |
int DB_StoreSur | ( | long | Ind, | |
ObjGX * | ox1 | |||
) |
CIR u STRIP-Flaeche kommt als Punktindextabelle (von Dreiecken). Punkte als dynam. Punkte speichern.
int DB_StoreTra | ( | long | Ind, | |
ObjGX * | ox1 | |||
) |
long DB_StoreVar | ( | long | , | |
double | ||||
) |
long DB_StoreVector | ( | long | , | |
Vector * | ||||
) |
long DB_StorePoint | ( | long | , | |
Point * | ||||
) |
long DB_StoreLine | ( | long | , | |
Line * | ||||
) |
long DB_StoreCirc | ( | long | , | |
Circ * | ||||
) |
long DB_StoreCvEll | ( | long | Ind, | |
CurvPoly * | cvell | |||
) |
long DB_StoreCvPlg | ( | long | Ind, | |
CurvPoly * | cvplg | |||
) |
long DB_StoreCvBsp | ( | long | Ind, | |
CurvBSpl * | cvbsp | |||
) |
long DB_StoreCurv | ( | long | , | |
ObjGX * | , | |||
int | ||||
) |
RetCod: der DB-Index !!!!
iNew = 0; new data; save also Dataspace
iNew = 1; Derived (copied) curve; do not save dataspace (only ObjGX-Rec.)
long DB_StoreRef | ( | long | , | |
Plane * | ||||
) |
void DB_StoreTool | ( | long | , | |
BTool * | ||||
) |
int DB_StoreDummy | ( | int | typ, | |
long | Ind | |||
) |
occupy
long DB_Store_hdr_cv | ( | ObjGX ** | cvo, | |
long | Ind | |||
) |
long DB_Store_hdr_su | ( | ObjGX ** | oxo, | |
long | Ind | |||
) |
get surf-Index/Parent-obj
long DB_Store_hdr_nt | ( | ObjGX ** | oxo, | |
long | Ind | |||
) |
void DB_Delete | ( | int | , | |
long | ||||
) |
unbenutzte dyn-objekte eliminieren .. alle nach DBind benutzten dyn-pointer werden nicht mehr gebraucht. Abfrage ob ind existiert !!!
long DB_FindVector | ( | Vector * | vc1 | ) |
long DB_GetDynInd | ( | int | ) |
returns next free dynamic object-Index for typ
char** DB_GetTxt | ( | long | ) |
double DB_GetVar | ( | long | ) |
double* DB_get_Var | ( | long | Ind | ) |
Vector DB_GetVector | ( | long | ) |
DB_get_VC
Point DB_GetPoint | ( | long | ) |
Pointer: DB_get_PT
Line DB_GetLine | ( | long | ) |
Circ DB_GetCirc | ( | long | ) |
ObjGX* DB_GetCurv | ( | long | ) |
see also DB_get_CV
ObjGX* DB_GetSol | ( | long | ) |
int DB_GetTool | ( | BTool * | tl1, | |
long | Ind | |||
) |
ObjGX* DB_GetSur | ( | long | Ind, | |
int | mode | |||
) |
mode=0: silent; do not display Errors mode=1: display Errors Error (surf not defined): (ObjGX*)->typ == TX_Error) !
ObjGX* DB_GetTra | ( | long | Ind | ) |
rc = -1 = Fehler (undefined ...)
Point* DB_get_PT | ( | long | Ind | ) |
copy PT mit DB_GetPoint
Line* DB_get_LN | ( | long | Ind | ) |
copy: DB_GetLine
Vector* DB_get_VC | ( | long | Ind | ) |
copy: DB_GetVector
Circ* DB_get_CI | ( | long | Ind | ) |
copy: DB_GetCirc
void* DB_get_CV | ( | int * | ityp, | |
long | Ind | |||
) |
returns form and struct of Curve.
Out:
ityp <-- oGX[Ind].form (od Typ_CVCCV bei Typ_ObjGX)
retVal <-- oGX[Ind].data (also die struct !!!
Plane* DB_get_PLN | ( | long | Ind | ) |
ModelBas* DB_get_ModBas | ( | long | Ind | ) |
beim abfragen aller names wird Ind einfach incrementiert ..
ModelNode* DB_get_ModNod | ( | int | ind | ) |
int DB_GetObj | ( | long | , | |
long * | , | |||
int * | ||||
) |
ObjGX DB_GetObjGX | ( | int | typ, | |
long | apt_ind | |||
) |
returns a ObjGX of any object stored in DB; Liefert einen ObjGX-Record von jedem DB-Obj. Error: o.typ == Typ_Error;
see also DB_GetObjDat UTO_obj_getp ..
int DB_GetConnObj | ( | int * | , | |
long * | , | |||
int * | , | |||
long * | , | |||
Point2 * | ||||
) |
Jene Elemente suchen und Typ und Index ausgeben, deren Endpunkte auf pt1 liegen. RetCode: Anzahl der gefundenen Elemente; 0=nix, 1 = ein Obj, Ind out in ind_1 2 = zwei Obj, in ind_1 und ind_2 3 oder mehr möglich !
Jenes Element vom Typ typ suchen, dess Endpunkte pt1 / pt2 sind. Output: RetCode: der Index; -1 = nix gefunden. typ
void DB_GetRef | ( | Plane * | , | |
int | ||||
) |
Activity* DB_get_Activ | ( | long | Ind | ) |
Plane* DB_DefRef | ( | long | Ind | ) |
void* DB_cPos | ( | ) |
void* DB_cSav | ( | long | size, | |
void * | data | |||
) |
void* DB_cGet | ( | void * | data, | |
void * | pos, | |||
long | size | |||
) |
returns newPos = pos + size
int DB_Lay | ( | int | , | |
int | , | |||
int | ||||
) |
int DB_Lay_add | ( | int | , | |
int | , | |||
char * | , | |||
int * | , | |||
double * | ||||
) |
long DB_QueryPoint | ( | Point * | ) |
long DB_QueryLine | ( | Point * | ) |
long DB_QueryCirc | ( | Point * | ) |
long DB_QueryNew | ( | char * | typChr, | |
int | iOff | |||
) |
DB_QueryNew get first free index after iOff for object from char (eg 'P') returns a free index not less than iOff see also DB_QueryLastUsed DB_QueryNxtUsed DB_QueryNxtInd
long DB_QueryNxtInd | ( | int | typ, | |
int | istart | |||
) |
nächsten freien Index retournieren
long DB_QueryLastUsed | ( | int | typ, | |
int | istart | |||
) |
wenn( istart == 0) letzten definierten Indx holen else letzten vor istart
void DB_fix_tol | ( | double | ) |
int DB_2DTyp_3DTyp | ( | int | ) |
1=Index OK, -1=fehlerhaft.
char* DB_Char_Typ | ( | int | typ | ) |
char* DB_ModBas_namNr | ( | int | bmNr | ) |
DB_ModBas_namNr get the name of a basic-model from its nr Input: bmNr nr of its basic-model
void DB_Stat | ( | ) |
int DB_save__ | ( | ) |
gesamte DB -> Datei raus
int DB_load__ | ( | ) |
gesamte DB aus Datei einlesen
long APT_VR_SIZ |
long APT_PT_SIZ |
long APT_VC_SIZ |
long APT_LN_SIZ |
long APT_CI_SIZ |
long APT_PL_SIZ |
long APT_MR_SIZ |
long APT_TL_SIZ |
long APT_CV_SIZ |
long APT_TX_SIZ |
long APT_SU_SIZ |
long APT_SO_SIZ |
long DB_CSIZ |
long DB_MNM_SIZ |