144cd8c4
Hu Chunming
v6.0.0 替换模型
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//将与流量统计相关的结构体 临时拖到这个头文件中 交付给大千的版本
typedef struct VPT_TrafficResult //流量统计结果结构体
{
int *traffic; //各种类流量统计结果,对应检测的9类结果
}VPT_TrafficResult;
typedef struct VPT_Line //检测流量的拌线
{
int begin_x; //拌线起点X坐标
int begin_y; //拌线起点Y坐标
int end_x; //拌线终点X坐标
int end_y; //拌线终点Y坐标
VPT_Line(){}; //构造函数(一)
VPT_Line(int x, int y, int x2, int y2) :begin_x(x), begin_y(y), end_x(x2), end_y(y2){}; //构造函数(二)
void setData(int x, int y, int x2, int y2) //参数设置函数
{
begin_x = x;
begin_y = y;
end_x = x2;
end_y = y2;
}
}VPT_Line;
|