1 // File: ModelDefinitions.hxx
2 // Created: Thu Apr 30 12:07:06 2009
3 // Author: Sergey ZARITCHNY <sergey.zaritchny@opencascade.com>
4 // Copyright: Open CasCade SA 2009
7 #ifndef ModelDefinitions_HeaderFile
8 #define ModelDefinitions_HeaderFile
10 #define GEOMOBJECT_GUID Standard_GUID("6c6915ab-775f-4475-859e-befd74d26a23")
11 #define ATTCH_GUID Standard_GUID("12e94554-6dbc-11d4-b9c8-0060b0ee281b")
12 #define XTTCH_GUID Standard_GUID("12e94555-6dbc-11d4-b9c8-0060b0ee281b")
13 #define PTXYZ_GUID Standard_GUID("12e94556-6dbc-11d4-b9c8-0060b0ee281b")
14 #define PTALINE_GUID Standard_GUID("12e94557-6dbc-11d4-b9c8-0060b0ee281b")
15 #define PRRLINE_GUID Standard_GUID("12e94558-6dbc-11d4-b9c8-0060b0ee281b")
16 #define PMIRR_GUID Standard_GUID("12e94559-6dbc-11d4-b9c8-0060b0ee281b")
18 #define BOX_GUID Standard_GUID("12e94543-6dbc-11d4-b9c8-0060b0ee281b")
19 #define SPH_GUID Standard_GUID("12e94544-6dbc-11d4-b9c8-0060b0ee281b")
20 #define CYL_GUID Standard_GUID("12e94545-6dbc-11d4-b9c8-0060b0ee281b")
21 #define CONE_GUID Standard_GUID("12e94546-6dbc-11d4-b9c8-0060b0ee281b")
22 #define TORUS_GUID Standard_GUID("12e94547-6dbc-11d4-b9c8-0060b0ee281b")
24 #define CUT_GUID Standard_GUID("12e94548-6dbc-11d4-b9c8-0060b0ee281b")
25 #define FUSE_GUID Standard_GUID("12e94549-6dbc-11d4-b9c8-0060b0ee281b")
26 #define COMMON_GUID Standard_GUID("12e9454a-6dbc-11d4-b9c8-0060b0ee281b")
28 #define PRISM_GUID Standard_GUID("12e94550-6dbc-11d4-b9c8-0060b0ee281b")
29 #define FULREVOL_GUID Standard_GUID("12e94551-6dbc-11d4-b9c8-0060b0ee281b")
30 #define SECREVOL_GUID Standard_GUID("12e94552-6dbc-11d4-b9c8-0060b0ee281b")
31 #define FILLT_GUID Standard_GUID("12e94553-6dbc-11d4-b9c8-0060b0ee281b")
32 #define CHAMF_GUID Standard_GUID("12e9455a-6dbc-11d4-b9c8-0060b0ee281b")
33 #define OFFSET_GUID Standard_GUID("12e9455b-6dbc-11d4-b9c8-0060b0ee281b")
35 #define PNTXYZ_GUID Standard_GUID("12e9455c-6dbc-11d4-b9c8-0060b0ee281b")
36 #define PNTRLT_GUID Standard_GUID("12e9455d-6dbc-11d4-b9c8-0060b0ee281b")
37 #define LINE3D_GUID Standard_GUID("12e9455e-6dbc-11d4-b9c8-0060b0ee281b")
38 #define WIRE_GUID Standard_GUID("12e9455f-6dbc-11d4-b9c8-0060b0ee281b")
40 //Function structure definitions
41 #define FUNCTION_ARGUMENTS_LABEL 1
42 #define FUNCTION_RESULT_LABEL 2
43 #define POSITION(Function,theA) Function->Label().FindChild(FUNCTION_ARGUMENTS_LABEL).FindChild(theA)
44 #define RESPOSITION(Function) Function->Label().FindChild(FUNCTION_RESULT_LABEL)
53 #define FILLET_RADIUS 1
54 #define FILLET_SURFTYPE 2
61 #define PTRANSF_LINE 2
62 #define PTRANSF_PLANE 1
64 #define PRISM_HEIGHT 2
70 #define SPHERE_CENTER 1
71 #define SPHERE_RADIUS 2
77 #define LINE3D_PNTNB 2
80 #define ALGO_FAILED 11
81 #define RESULT_NOT_VALID 12
83 #define WRONG_ARGUMENT 14
84 #define UNSUPPORTED_FUNCTION 15
85 #define NULL_RESULT 16
86 #define WRONG_CONTEXT 14
87 #define NAMING_FAILED 15