aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h196
1 files changed, 196 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h
new file mode 100644
index 0000000..4382888
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h
@@ -0,0 +1,196 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_DXF_CHUNKS_H
23#define _IMP_DXF_CHUNKS_H
24
25#include "imp_dxf_callbacks.h"
26#include "imp_dxf_types.h"
27#include "imp_dxf_def.h"
28
29static DxfChunkInfo dxf_chunks[] = {
30 /* app: <0 */
31 /* string: 0-9 */
32 { 0, "entity type", DXF_T_EMPTY },
33 { 1, "primary text value", DXF_T_STRING },
34 { 2, "name", DXF_T_STRING },
35 { 3, "other text (3)", DXF_T_STRING },
36 { 4, "other text (4)", DXF_T_STRING },
37 { 5, "entity handle", DXF_T_STRING },
38 { 6, "linetype name", DXF_T_STRING },
39 { 7, "text style name", DXF_T_STRING },
40 { 8, "layer name", DXF_T_STRING },
41 { 9, "variable name identifier", DXF_T_UNKNOWN },
42 /* double precision 3D point value: 10-39 */
43 { 10, "primary point, X value", DXF_T_FLOAT64 },
44 { 11, "point #2, X value", DXF_T_FLOAT64 },
45 { 12, "point #3, X value", DXF_T_FLOAT64 },
46 { 13, "point #4, X value", DXF_T_FLOAT64 },
47 { 14, "point #5, X value", DXF_T_FLOAT64 },
48 { 15, "point #6, X value", DXF_T_FLOAT64 },
49 { 16, "point #7, X value", DXF_T_FLOAT64 },
50 { 17, "point #8, X value", DXF_T_FLOAT64 },
51 { 18, "point #9, X value", DXF_T_FLOAT64 },
52 { 19, "point #10, X value", DXF_T_FLOAT64 },
53 { 20, "primary point, Y value", DXF_T_FLOAT64 },
54 { 21, "point #2, Y value", DXF_T_FLOAT64 },
55 { 22, "point #3, Y value", DXF_T_FLOAT64 },
56 { 23, "point #4, Y value", DXF_T_FLOAT64 },
57 { 24, "point #5, Y value", DXF_T_FLOAT64 },
58 { 25, "point #6, Y value", DXF_T_FLOAT64 },
59 { 26, "point #7, Y value", DXF_T_FLOAT64 },
60 { 27, "point #8, Y value", DXF_T_FLOAT64 },
61 { 28, "point #9, Y value", DXF_T_FLOAT64 },
62 { 29, "point #10, Y value", DXF_T_FLOAT64 },
63 { 30, "primary point, Z value", DXF_T_FLOAT64 },
64 { 31, "point #2, Z value", DXF_T_FLOAT64 },
65 { 32, "point #3, Z value", DXF_T_FLOAT64 },
66 { 33, "point #4, Z value", DXF_T_FLOAT64 },
67 { 34, "point #5, Z value", DXF_T_FLOAT64 },
68 { 35, "point #6, Z value", DXF_T_FLOAT64 },
69 { 36, "point #7, Z value", DXF_T_FLOAT64 },
70 { 37, "point #8, Z value", DXF_T_FLOAT64 },
71 { 38, "point #9, Z value", DXF_T_FLOAT64 },
72 { 39, "point #10, Z value", DXF_T_FLOAT64 },
73 /* double precision floating-point value: 40-59 */
74 { 40, "double-precision floating-point value", DXF_T_FLOAT64 },
75 { 41, "double-precision floating-point value", DXF_T_FLOAT64 },
76 { 42, "double-precision floating-point value", DXF_T_FLOAT64 },
77 { 43, "double-precision floating-point value", DXF_T_FLOAT64 },
78 { 44, "double-precision floating-point value", DXF_T_FLOAT64 },
79 { 45, "double-precision floating-point value", DXF_T_FLOAT64 },
80 { 46, "double-precision floating-point value", DXF_T_FLOAT64 },
81 { 47, "double-precision floating-point value", DXF_T_FLOAT64 },
82 { 48, "linetype scale dbl-prec fp value", DXF_T_FLOAT64 },
83 { 49, "repeated dbl-prec fp value", DXF_T_FLOAT64 },
84 { 50, "angle", DXF_T_FLOAT64 },
85 { 51, "angle", DXF_T_FLOAT64 },
86 { 52, "angle", DXF_T_FLOAT64 },
87 /* 16-bit integer value: 60-79 */
88 { 60, "entity visibility", DXF_T_INT16 },
89 { 62, "color number", DXF_T_INT16 },
90 { 65, "integer value, 16-bit", DXF_T_INT16 },
91 { 66, "entities follow", DXF_T_INT16 },
92 { 67, "space", DXF_T_INT16 },
93 { 68, "APP: viewport not visible", DXF_T_INT16 },
94 { 69, "APP: viewport identification number", DXF_T_INT16 },
95 { 70, "integer value, 16-bit", DXF_T_INT16 },
96 { 71, "integer value, 16-bit", DXF_T_INT16 },
97 { 72, "integer value, 16-bit", DXF_T_INT16 },
98 { 73, "integer value, 16-bit", DXF_T_INT16 },
99 { 74, "integer value, 16-bit", DXF_T_INT16 },
100 { 75, "integer value, 16-bit", DXF_T_INT16 },
101 { 76, "integer value, 16-bit", DXF_T_INT16 },
102 { 77, "integer value, 16-bit", DXF_T_INT16 },
103 { 78, "integer value, 16-bit", DXF_T_INT16 },
104 { 79, "integer value, 16-bit", DXF_T_INT16 },
105 /* 32-bit integer value: 90-99 */
106 { 90, "integer value, 32-bit", DXF_T_INT32 },
107 { 91, "integer value, 32-bit", DXF_T_INT32 },
108
109 { 100, "subclass data marker", DXF_T_STRING },
110 { 102, "control string", DXF_T_STRING },
111 { 105, "DIMVAR object handle", DXF_T_STRING },
112
113 { 110, "UCS origin, X value", DXF_T_FLOAT64 },
114 { 111, "UCS X-axis, X value", DXF_T_FLOAT64 },
115 { 112, "UCS Y-axis, X value", DXF_T_FLOAT64 },
116 { 120, "UCS origin, Y value", DXF_T_FLOAT64 },
117 { 121, "UCS X-axis, Y value", DXF_T_FLOAT64 },
118 { 122, "UCS Y-axis, Y value", DXF_T_FLOAT64 },
119 { 130, "UCS origin, Z value", DXF_T_FLOAT64 },
120 { 131, "UCS X-axis, Z value", DXF_T_FLOAT64 },
121 { 132, "UCS Y-axis, Z value", DXF_T_FLOAT64 },
122
123 /* double precision floating-point value: 140-149 */
124 { 140, "double-precision floating-point value", DXF_T_FLOAT64 },
125 { 141, "double-precision floating-point value", DXF_T_FLOAT64 },
126 { 142, "double-precision floating-point value", DXF_T_FLOAT64 },
127 { 143, "double-precision floating-point value", DXF_T_FLOAT64 },
128 { 144, "double-precision floating-point value", DXF_T_FLOAT64 },
129 { 145, "double-precision floating-point value", DXF_T_FLOAT64 },
130 { 146, "double-precision floating-point value", DXF_T_FLOAT64 },
131 { 147, "double-precision floating-point value", DXF_T_FLOAT64 },
132 { 148, "double-precision floating-point value", DXF_T_FLOAT64 },
133 { 149, "double-precision floating-point value", DXF_T_FLOAT64 },
134 /* 16-bit integer value: 170-179 */
135 { 170, "integer value, 16-bit", DXF_T_INT16 },
136 { 171, "integer value, 16-bit", DXF_T_INT16 },
137 { 172, "integer value, 16-bit", DXF_T_INT16 },
138
139 { 210, "extrusion direction, X value", DXF_T_FLOAT64 },
140 { 220, "extrusion direction, Y value", DXF_T_FLOAT64 },
141 { 230, "extrusion direction, Z value", DXF_T_FLOAT64 },
142 /* 16-bit integer value: 270-279 */
143 { 270, "integer value, 16-bit", DXF_T_INT16 },
144 { 271, "integer value, 16-bit", DXF_T_INT16 },
145 { 272, "integer value, 16-bit", DXF_T_INT16 },
146 { 273, "integer value, 16-bit", DXF_T_INT16 },
147 { 274, "integer value, 16-bit", DXF_T_INT16 },
148 { 275, "integer value, 16-bit", DXF_T_INT16 },
149 { 276, "integer value, 16-bit", DXF_T_INT16 },
150 { 277, "integer value, 16-bit", DXF_T_INT16 },
151 { 278, "integer value, 16-bit", DXF_T_INT16 },
152 { 279, "integer value, 16-bit", DXF_T_INT16 },
153 /* 16-bit integer value: 280-289 */
154 { 280, "integer value, 16-bit", DXF_T_INT16 },
155 { 281, "integer value, 16-bit", DXF_T_INT16 },
156 { 282, "integer value, 16-bit", DXF_T_INT16 },
157 { 283, "integer value, 16-bit", DXF_T_INT16 },
158 { 284, "integer value, 16-bit", DXF_T_INT16 },
159 { 285, "integer value, 16-bit", DXF_T_INT16 },
160 { 286, "integer value, 16-bit", DXF_T_INT16 },
161 { 287, "integer value, 16-bit", DXF_T_INT16 },
162 { 288, "integer value, 16-bit", DXF_T_INT16 },
163 { 289, "integer value, 16-bit", DXF_T_INT16 },
164
165 /* boolean flag value: 290-299 */
166
167 { 330, "softpointer handle", DXF_T_STRING },
168 { 331, "softpointer handle", DXF_T_STRING },
169 { 340, "hardpointer handle", DXF_T_STRING },
170 { 350, "softowner handle", DXF_T_STRING },
171
172 { 370, "lineweight enum value", DXF_T_INT16 },
173
174 { 390, "PlotStyleName handle", DXF_T_STRING },
175
176 { 420, "integer value, 32-bit", DXF_T_INT32 },
177
178 { 1000, "ASCII string", DXF_T_STRING },
179 { 1001, "registered application name", DXF_T_STRING },
180 { 1002, "extended data control string", DXF_T_STRING },
181
182 { 1010, "extended data point, X value", DXF_T_FLOAT64 },
183 { 1011, "extended 3D world space, X value", DXF_T_FLOAT64 },
184 { 1020, "extended data point, Y value", DXF_T_FLOAT64 },
185 { 1021, "extended 3D world space, Y value", DXF_T_FLOAT64 },
186 { 1030, "extended data point, Z value", DXF_T_FLOAT64 },
187 { 1031, "extended 3D world space, Z value", DXF_T_FLOAT64 },
188 { 1040, "extended data dbl-prec fp value", DXF_T_FLOAT64 },
189 { 1041, "extended data distance value", DXF_T_FLOAT64 },
190 { 1070, "extended data 16-bit integer", DXF_T_INT16 },
191 { 1071, "extended data 32-bit integer", DXF_T_INT32 },
192
193 { DXF_CODE_INVALID, NULL, DXF_T_UNKNOWN },
194};
195
196#endif /* _IMP_DXF_CHUNKS_H */