| | |
| | | |
| | | typedef vector<struct road_exam_map> LIST_ROAD_MAP; |
| | | |
| | | #define ROAD_DOTTED_LINE 0 |
| | | #define ROAD_SOLID_LINE 1 |
| | | |
| | | typedef struct { |
| | | int character; // 属性(实线、虚线,有些可以掉头的路段) |
| | | std::vector<PointF> points; // |
| | | } edge_t; |
| | | |
| | | typedef struct { |
| | | int character; // 属性《实线、虚线》 |
| | | std::vector<Polygon> line; // 每一条线 |
| | | } separate_t; |
| | | |
| | | struct road_t { |
| | | int id; |
| | | Line startLine; |
| | | Line stopLine; |
| | | int active; // 到达路口尾部的行进方向 |
| | | string tts; |
| | | Polygon area; |
| | | std::vector<edge_t> leftEdge; |
| | | std::vector<edge_t> rightEdge; |
| | | std::vector<separate_t> separate; |
| | | }; |
| | | |
| | | struct special_area_t { |
| | | int id; |
| | | int road; |
| | | int character; |
| | | Line startLine; |
| | | Polygon area; |
| | | }; |
| | | |
| | | struct trigger2_line_t { |
| | | int id; |
| | | int road; |
| | | int active; |
| | | string tts; |
| | | Line line; |
| | | }; |
| | | |
| | | struct road_exam2_map { |
| | | std::vector<struct road_t> roads; |
| | | std::vector<struct special_area_t> specialAreas; |
| | | std::vector<struct trigger2_line_t> triggerLines; |
| | | }; |
| | | |
| | | struct area_exam_map { |
| | | int id; |
| | | int type; |