diff --git a/src/cctv_graphic_data.proto b/src/cctv_graphic_data.proto new file mode 100644 index 0000000..3f99058 --- /dev/null +++ b/src/cctv_graphic_data.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; +import "iscs_graphic_data.proto"; + +package CCTVGraphicData; + +message CCTVGraphicStorage { + iscsGraphicData.Canvas canvas = 1; + repeated CCTVButton cctvButtons = 2; + repeated iscsGraphicData.Arrow arrows = 3; + repeated iscsGraphicData.IscsText iscsTexts = 4; +} + + +/** CCTV按钮 */ +message CCTVButton { + enum ButtonType { + rect = 0; + monitor = 1; //监控样子的按钮 + semicircle = 2; //半圆样子的按钮 + } + iscsGraphicData.CommonInfo common = 1; + string code = 2; + ButtonType buttonType = 3; +} diff --git a/src/fire_alarm_graphic_data.proto b/src/fire_alarm_graphic_data.proto new file mode 100644 index 0000000..28ff4c2 --- /dev/null +++ b/src/fire_alarm_graphic_data.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; +import "iscs_graphic_data.proto"; + +package FireAlarmGraphicData; + +message FireAlarmGraphicStorage { + iscsGraphicData.Canvas canvas = 1; + repeated iscsGraphicData.Arrow arrows = 2; + repeated iscsGraphicData.IscsText iscsTexts = 3; +} diff --git a/src/iscs_graphic_data.proto b/src/iscs_graphic_data.proto new file mode 100644 index 0000000..a140a5f --- /dev/null +++ b/src/iscs_graphic_data.proto @@ -0,0 +1,85 @@ +syntax = "proto3"; +package iscsGraphicData; + +message IscsGraphicStorage { + Canvas canvas = 1; + UniqueIdOfStationLayout UniqueIdPrefix = 2;//地图唯一信息 + repeated Arrow arrows = 3; + repeated IscsText iscsTexts = 4; +} + +message Canvas { + // 画布宽 + int32 width = 1; + // 画布高 + int32 height = 2; + // 背景色 + string backgroundColor = 3; + // 视口变换 + Transform viewportTransform = 4; + //画布格子背景 + Grid gridBackground = 5; +} + +//格子背景 +message Grid { + bool hasGrid = 1; + string lineColor = 2; // 线色 + int32 space = 3; //间隔 +} + +message Point { + // x坐标 + float x = 1; + // y坐标 + float y = 2; +} + +//变换 +message Transform { + // 位移 + Point position = 1; + // 缩放 + Point scale = 2; + // 旋转弧度 + float rotation = 3; + // 歪斜 + Point skew = 4; +} + +//子元素变换 +message ChildTransform { + // 子元素名称 + string name = 1; + // 子元素变换 + Transform transform = 2; +} +// 公共属性 +message CommonInfo { +// string oldid = 1; + string graphicType = 2; + Transform transform = 3; + repeated ChildTransform childTransforms = 4; + uint32 id = 5; +} + +message UniqueIdOfStationLayout { + string city = 1;//城市 + string lineId = 2;//线路号 + string mainCoordinateSystem = 3;//地图的公里标主坐标系 +} + +message Arrow { + CommonInfo common = 1; + string code = 2; + repeated Point points = 3; +} + +/** Iscs文字 */ +message IscsText { + CommonInfo common = 1; + string code = 2; + string content = 3; + string color = 4; + int32 fontSize = 5; +} diff --git a/src/picture.proto b/src/picture.proto new file mode 100644 index 0000000..01180dd --- /dev/null +++ b/src/picture.proto @@ -0,0 +1,24 @@ +syntax = "proto3"; + +enum PictureType { + /** 火灾报警 */ + FireAlarm = 0; + /** 机电 */ + Electromechanical = 1; + /** 广播 */ + Broadcast = 2; + /** 乘客信息 */ + PassengerInformation = 3; + /** 闭路电视 */ + CCTV = 4; + /** 屏蔽门 */ + PSD = 5; + /** 售检票 */ + TicketSalesAndChecking = 6; + /** 门禁 */ + AccessControl = 7; + /** 防淹门 */ + FloodGate = 8; + /** 网络状态 */ + NetworkStatus = 9; +}