This commit is contained in:
soul-walker 2024-09-14 16:38:36 +08:00
commit 4e447beffa
4 changed files with 143 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

24
src/picture.proto Normal file
View File

@ -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;
}