gCAD3D 2.35
ut_ox_base.h
Go to the documentation of this file.
1 
2 
3 
4 
5  int OGX_ox_ato1 (ObjGX *oxo, int *ausTyp, double *ausTab);
6 // void OGX_SET_OBJ (void*, int, int, int, void*);
7  long OGX_siz__ (ObjGX *oxi, int isolate);
8  int OGX_siz_ox (long *oSiz, void *obj1, int typ, int iNr, int isolate);
9  ObjGX* OGX_oxm_copy_ox (Memspc *mSpo, ObjGX *oTab, int iNr, int isolate);
11  void *obji, int typ, int iNr, int isolate);
12 
13 
14 
15 
16 //----------------------------------------------------------------
25 void OGX_SET_OBJ (ObjGX *ox, int oTyp, int oForm, int oSiz, void *oDat);
26 #define OGX_SET_OBJ(ox,oTyp,oForm,oSiz,oDat){\
27  (ox)->typ = (oTyp);\
28  (ox)->form = (oForm);\
29  (ox)->siz = (oSiz);\
30  (ox)->data = (oDat);\
31  (ox)->dir = 0;}
32 
33 
34 
44 void OGX_SET_OBJ_aux (ObjGX *ox, int typ, int form, int siz, void *dat, int aux);
45 #define OGX_SET_OBJ_aux(ox,oTyp,oForm,oSiz,oDat,iaux){\
46  (ox)->typ = (oTyp);\
47  (ox)->form = (oForm);\
48  (ox)->siz = (oSiz);\
49  (ox)->data = (oDat);\
50  (ox)->dir = 0;\
51  (ox)->aux = (iaux);}
52 
53 
54 
55 
62 void OGX_SET_INDEX (ObjGX *ox, int dbTyp, long dbInd);
63 #define OGX_SET_INDEX(ox,dbTyp,dbInd){\
64  (ox)->typ = (dbTyp);\
65  (ox)->form = Typ_Index;\
66  (ox)->siz = 1;\
67  (ox)->data = (void*)(dbInd);}
68 
69 
75 void OGX_GET_INDEX (int *typ, long *dbi, ObjGX *ox);
76 #define OGX_GET_INDEX(dbTyp,dbInd,ox){\
77  *(dbTyp) = (ox)->typ;\
78  *(dbInd) = (long)(ox)->data;}
79 
80 
81 
89 void OGX_SET_Float8 (ObjGX *ox, int f8typ, double *float8);
90 #define OGX_SET_Float8(ox,f8typ,float8){\
91  (ox)->typ = (f8typ);\
92  (ox)->form = Typ_Float8;\
93  (ox)->siz = 1;\
94  (ox)->data = (void*)(float8);}
95 
96 
97 
104 void OGX_SET_INT (int *typ, int *subTyp, ObjGX *ox);
105 #define OGX_SET_INT(dbTyp,ii4,ox){\
106  (ox)->typ = (dbTyp);\
107  (ox)->form = Typ_Int4;\
108  (ox)->siz = 1;\
109  (ox)->data = (void*)(ii4);}
110 
111 
112 
119 void OGX_SET_COLOR (ObjGX *ox, ColRGB *col);
120 #define OGX_SET_COLOR(ox,col){\
121  (ox)->typ = Typ_Color;\
122  (ox)->form = Typ_Int4;\
123  (ox)->siz = 1;\
124  (ox)->data = (void*)(*((long*)(col)));}
125 
126 
127 
132 #define OGX_GET_INT(ox)\
133  (long)(ox)->data
134 
135 
136 
137 // EOF
int typ
Definition: xa_tra.c:151
#define OGX_GET_INDEX(dbTyp, dbInd, ox)
Definition: ut_ox_base.h:76
#define OGX_SET_Float8(ox, f8typ, float8)
Definition: ut_ox_base.h:90
Typ_ObjGX.
Definition: ut_geo.h:240
color, Typ_Color
Definition: ut_geo.h:730
#define OGX_SET_INT(dbTyp, ii4, ox)
Definition: ut_ox_base.h:105
#define OGX_SET_OBJ_aux(ox, oTyp, oForm, oSiz, oDat, iaux)
Definition: ut_ox_base.h:45
int OGX_ox_ato1(ObjGX *oxo, int *ausTyp, double *ausTab)
Definition: ut_ox_base.c:143
#define OGX_SET_OBJ(ox, oTyp, oForm, oSiz, oDat)
Definition: ut_ox_base.h:26
#define OGX_SET_INDEX(ox, dbTyp, dbInd)
Definition: ut_ox_base.h:63
int OGX_siz_ox(long *oSiz, void *obj1, int typ, int iNr, int isolate)
ObjGX * OGX_oxm_copy_ox(Memspc *mSpo, ObjGX *oTab, int iNr, int isolate)
Definition: ut_ox_base.c:215
#define OGX_SET_COLOR(ox, col)
Definition: ut_ox_base.h:120
long OGX_siz__(ObjGX *oxi, int isolate)
Definition: ut_ox_base.c:835
Typ_Memspc (a class for variable-length-records in memory)
Definition: ut_umem.h:33
ObjGX * OGX_oxm_copy_obj(Memspc *mSpo, void *obji, int typ, int iNr, int isolate)
Definition: ut_ox_base.c:177