1 #define DWG_TYPE DWG_TYPE_WIPEOUT
2 #include "common.c"
3
4 void
5 api_process (dwg_object *obj)
6 {
7 int error;
8 BITCODE_BL class_version;
9 dwg_point_3d pt0, uvec, vvec;
10 dwg_point_2d size; /*!< DXF 13/23; width, height in pixel */
11 BITCODE_BS display_props;
12 BITCODE_B clipping;
13 BITCODE_RC brightness;
14 BITCODE_RC contrast;
15 BITCODE_RC fade;
16 BITCODE_B clip_mode;
17 BITCODE_BS clip_boundary_type;
18 BITCODE_BL num_clip_verts;
19 dwg_point_2d *clip_verts;
20 BITCODE_2RD *cpts;
21 BITCODE_H imagedef;
22 BITCODE_H imagedefreactor;
23
24 dwg_ent_wipeout *wipeout = dwg_object_to_WIPEOUT (obj);
25
26 CHK_ENTITY_3RD (wipeout, WIPEOUT, pt0);
27 CHK_ENTITY_3RD (wipeout, WIPEOUT, uvec);
28 CHK_ENTITY_3RD (wipeout, WIPEOUT, vvec);
29 CHK_ENTITY_TYPE (wipeout, WIPEOUT, display_props, BS);
30 CHK_ENTITY_TYPE (wipeout, WIPEOUT, clipping, B);
31 CHK_ENTITY_TYPE (wipeout, WIPEOUT, brightness, RC);
32 CHK_ENTITY_TYPE (wipeout, WIPEOUT, contrast, RC);
33 CHK_ENTITY_TYPE (wipeout, WIPEOUT, fade, RC);
34 CHK_ENTITY_TYPE (wipeout, WIPEOUT, clip_mode, B);
35 CHK_ENTITY_TYPE (wipeout, WIPEOUT, clip_boundary_type, BS);
36 CHK_ENTITY_TYPE (wipeout, WIPEOUT, num_clip_verts, BL);
37
38 if (!dwg_dynapi_entity_value (wipeout, "WIPEOUT", "clip_verts", &clip_verts,
39 NULL))
40 fail ("WIPEOUT.clip_verts");
41 else
42 {
43 for (BITCODE_BL i = 0; i < num_clip_verts; i++)
44 {
45 ok ("WIPEOUT.clip_verts[%d]: (%f, %f)", i, clip_verts[i].x,
46 clip_verts[i].y);
47 }
48 }
49 CHK_ENTITY_H (wipeout, WIPEOUT, imagedef);
50 CHK_ENTITY_H (wipeout, WIPEOUT, imagedefreactor);
51 }