提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
import com.sun.jna.Pointer; |
|
5 |
|
7412dd
|
6 |
import static com.iailab.netsdk.lib.NetSDKLib.MAX_INSIDEOBJECT_NUM; |
149dd0
|
7 |
|
H |
8 |
|
|
9 |
/** |
|
10 |
* X光机关联图片类型 |
|
11 |
* |
|
12 |
* @author : 260611 |
|
13 |
* @since : Created in 2021/10/19 14:46 |
|
14 |
*/ |
|
15 |
public class DEV_EVENT_XRAY_DETECTION_INFO extends NetSDKLib.SdkStructure { |
|
16 |
|
|
17 |
/** |
|
18 |
* 通道号 |
|
19 |
*/ |
|
20 |
public int nChannelID; |
|
21 |
/** |
|
22 |
* 事件名称 |
|
23 |
*/ |
|
24 |
public byte szName[] = new byte[128]; |
|
25 |
|
|
26 |
/** |
|
27 |
* 保留字节对齐 |
|
28 |
*/ |
|
29 |
public byte Reserved[] = new byte[4]; |
|
30 |
|
|
31 |
/** |
|
32 |
* 时间戳(单位是毫秒) |
|
33 |
*/ |
|
34 |
public double PTS; |
|
35 |
/** |
|
36 |
* 事件发生的时间 |
|
37 |
*/ |
|
38 |
public NET_TIME_EX UTC = new NET_TIME_EX(); |
|
39 |
/** |
|
40 |
* 事件ID |
|
41 |
*/ |
|
42 |
public int nEventID; |
|
43 |
/** |
7412dd
|
44 |
* 所属大类 {@link com.iailab.netsdk.lib.enumeration.EM_CLASS_TYPE} |
149dd0
|
45 |
*/ |
H |
46 |
public int emClassType; |
|
47 |
|
|
48 |
/** |
|
49 |
* 包裹信息 |
|
50 |
*/ |
|
51 |
public NET_PACKAGE_INFO stuPacketInfo = new NET_PACKAGE_INFO(); |
|
52 |
|
|
53 |
/** |
|
54 |
* 保留字节对齐 |
|
55 |
*/ |
|
56 |
public byte Reserved1[] = new byte[4]; |
|
57 |
|
|
58 |
/** |
|
59 |
* 主视角包裹内物品个数 |
|
60 |
*/ |
|
61 |
public int nObjectNum; |
|
62 |
/** |
|
63 |
* 主视角包裹内物品信息 |
|
64 |
*/ |
|
65 |
public NET_INSIDE_OBJECT stuInsideObj[] = (NET_INSIDE_OBJECT[]) new NET_INSIDE_OBJECT().toArray(MAX_INSIDEOBJECT_NUM); |
|
66 |
|
|
67 |
/** |
|
68 |
* 从视角包裹内物品个数 |
|
69 |
*/ |
|
70 |
public int nSlaveViewObjectNum; |
|
71 |
/** |
|
72 |
* 从视角包裹内物品信息 |
|
73 |
*/ |
|
74 |
public NET_INSIDE_OBJECT stuSlaveViewInsideObj[] = (NET_INSIDE_OBJECT[]) new NET_INSIDE_OBJECT().toArray(MAX_INSIDEOBJECT_NUM); |
|
75 |
|
|
76 |
/** |
|
77 |
* 图片数量 |
|
78 |
*/ |
|
79 |
public int nImageCount; |
|
80 |
/** |
|
81 |
* 图片信息 |
|
82 |
*/ |
|
83 |
public NET_XRAY_IMAGE_INFO stuImageInfo[] = (NET_XRAY_IMAGE_INFO[]) new NET_XRAY_IMAGE_INFO().toArray(8); |
|
84 |
|
|
85 |
/** |
|
86 |
* 客户自定义信息个数 |
|
87 |
*/ |
|
88 |
public int nViewCustomInfoNum; |
|
89 |
/** |
|
90 |
* 客户自定义信息, X光机专用 |
|
91 |
*/ |
|
92 |
public NetSDKLib.NET_XRAY_CUSTOM_INFO stuViewCustomInfo[] = (NetSDKLib.NET_XRAY_CUSTOM_INFO[]) new NetSDKLib.NET_XRAY_CUSTOM_INFO().toArray(4); |
|
93 |
|
|
94 |
/** |
|
95 |
* 包裹标识, 用来唯一标识一个包裹 |
|
96 |
*/ |
|
97 |
public byte szPackageTag[] = new byte[32]; |
|
98 |
|
|
99 |
/** |
7412dd
|
100 |
* 包裹产生方式 {@link com.iailab.netsdk.lib.enumeration.EM_XRAY_PACKAGE_MODE} |
149dd0
|
101 |
*/ |
H |
102 |
public int emPackageMode; |
|
103 |
|
|
104 |
/** |
|
105 |
* 关联图片数量 |
|
106 |
*/ |
|
107 |
public int nRelatedImageNum; |
|
108 |
/** |
|
109 |
* 关联图片 |
|
110 |
*/ |
|
111 |
public NET_XRAY_RELATED_IMAGE_INFO stuRelatedImageInfo[] = new NET_XRAY_RELATED_IMAGE_INFO[8]; |
|
112 |
|
|
113 |
/** |
|
114 |
* 与包裹关联的单号的个数 |
|
115 |
*/ |
|
116 |
public int nBarCodeCount; |
|
117 |
/** |
|
118 |
* 与包裹关联的单号的内容 |
|
119 |
*/ |
|
120 |
public NET_BAR_CODE_INFO stuBarCodeInfo[] = new NET_BAR_CODE_INFO[32]; |
|
121 |
/** |
|
122 |
* 事件公共扩展字段结构体 |
|
123 |
*/ |
|
124 |
public NET_EVENT_INFO_EXTEND stuEventInfoEx = new NET_EVENT_INFO_EXTEND(); |
|
125 |
|
|
126 |
/** |
7412dd
|
127 |
* 是否使用远程判图 {@link com.iailab.netsdk.lib.enumeration.EM_XRAY_DETECTION_JUDGE_REMOTELY} |
149dd0
|
128 |
*/ |
H |
129 |
public int emJudgeRemotely; |
|
130 |
|
|
131 |
/** |
|
132 |
* / 图片信息个数 |
|
133 |
*/ |
|
134 |
public int nImageInfoNum; |
|
135 |
/** |
|
136 |
* / 图片信息数组, refer to {@link NET_IMAGE_INFO_EX3} |
|
137 |
*/ |
|
138 |
public Pointer pstuImageInfo; |
|
139 |
/** |
|
140 |
* / 切包信息 |
|
141 |
*/ |
|
142 |
public NET_XRAY_CUT_INFO stuCutInfo = new NET_XRAY_CUT_INFO(); |
|
143 |
|
|
144 |
/** |
|
145 |
* 保留字节,留待扩展 |
|
146 |
*/ |
|
147 |
public byte byReserved[] = new byte[300 - NetSDKLib.POINTERSIZE]; |
|
148 |
|
|
149 |
public DEV_EVENT_XRAY_DETECTION_INFO() { |
|
150 |
for (int i = 0; i < stuRelatedImageInfo.length; i++) { |
|
151 |
stuRelatedImageInfo[i] = new NET_XRAY_RELATED_IMAGE_INFO(); |
|
152 |
} |
|
153 |
|
|
154 |
for (int i = 0; i < stuBarCodeInfo.length; i++) { |
|
155 |
stuBarCodeInfo[i] = new NET_BAR_CODE_INFO(); |
|
156 |
} |
|
157 |
} |
|
158 |
|
|
159 |
} |