ut_DB.h File Reference


Detailed Description

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)
ObjGXDB_GetCurv (long)
ObjGXDB_GetSol (long)
ObjGXDB_GetGTxt (long Ind)
int DB_GetTool (BTool *tl1, long Ind)
ObjGXDB_GetSur (long Ind, int mode)
ObjGXDB_GetTra (long Ind)
PointDB_get_PT (long Ind)
LineDB_get_LN (long Ind)
VectorDB_get_VC (long Ind)
CircDB_get_CI (long Ind)
void * DB_get_CV (int *ityp, long Ind)
PlaneDB_get_PLN (long Ind)
ModelRefDB_get_ModRef (long Ind)
ModelBasDB_get_ModBas (long Ind)
ModelNodeDB_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)
ActivityDB_get_Activ (long Ind)
PlaneDB_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 Documentation

#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.


Function Documentation

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   ) 

ObjGX* DB_GetGTxt ( long  Ind  ) 

get Note (GText, AText, Dimen, tag, Image ..)

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  ) 

    see also DB_GetRef DB_StoreRef
    es gibt keine dyn planes !
    see DB_GetRef

ModelRef* DB_get_ModRef ( long  Ind  ) 

DB_get_ModRef get Ditto from Index

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 !

long DB_GetObjTyp2Pt ( int *  ,
Point2 ,
Point2  
)

    Jenes Element vom Typ typ suchen, dess Endpunkte pt1 / pt2 sind.
    Output:
      RetCode: der Index; -1 = nix gefunden.
      typ

void DB_GetRef ( Plane ,
int   
)

    get a copy of a plane
    see DB_get_PLN

Activity* DB_get_Activ ( long  Ind  ) 

Plane* DB_DefRef ( long  Ind  ) 

    das Defaultrefsys (RX/RY/RZ) liefern.
    Diese liegen fix in pln_dyn[0/1/2] !
    Ind   0  alle initialisieren
    Ind  -1  return Plane

void* DB_cPos (  ) 

void* DB_cSav ( long  size,
void *  data 
)

    <size> Bytes aus data nach DB_CDAT speichern.
    Returns the position in DB_CDAT AFTER storage  (unlike UME_save !)
    ask for active position with DB_cPos();

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_QueryCurv ( Point  ) 

befindet sich Punkt auf Curv ???

int DB_QueryDynPoint ( Point ,
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.

int DB_Typ_Char ( char *   ) 

    Text > int-3D-Typ
    give typ(int) from text "PT" --> Typ_PT

char* DB_Char_Typ ( int  typ  ) 

    make text from (int)typ; Typ_PT --> "PT" ..
    max 8 chars

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


Variable Documentation

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


Generated on Sat May 30 09:31:54 2009 for gCAD3D by  doxygen 1.5.6