protoc修改
This commit is contained in:
parent
a162241091
commit
1672a8c0e2
@ -1,25 +0,0 @@
|
||||
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;
|
||||
repeated iscsGraphicData.Rect rects = 5;
|
||||
}
|
||||
|
||||
|
||||
/** CCTV按钮 */
|
||||
message CCTVButton {
|
||||
enum ButtonType {
|
||||
rect = 0;
|
||||
monitor = 1; //监控样子的按钮
|
||||
semicircle = 2; //半圆样子的按钮
|
||||
}
|
||||
iscsGraphicData.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
ButtonType buttonType = 3;
|
||||
}
|
@ -9,17 +9,17 @@ message Canvas {
|
||||
// 画布高
|
||||
int32 height = 2;
|
||||
// 背景色
|
||||
string background_color = 3;
|
||||
string backgroundColor = 3;
|
||||
// 视口变换
|
||||
Transform viewport_transform = 4;
|
||||
Transform viewportTransform = 4;
|
||||
//画布格子背景
|
||||
Grid grid_background = 5;
|
||||
Grid gridBackground = 5;
|
||||
}
|
||||
|
||||
//格子背景
|
||||
message Grid {
|
||||
bool has_grid = 1;
|
||||
string line_color = 2; // 线色
|
||||
bool hasGrid = 1;
|
||||
string lineColor = 2; // 线色
|
||||
int32 space = 3; //间隔
|
||||
}
|
||||
|
||||
@ -55,11 +55,11 @@ message CommonInfo {
|
||||
// 数据id
|
||||
uint32 id = 1;
|
||||
// 数据类型
|
||||
string graphic_type = 2;
|
||||
string graphicType = 2;
|
||||
// 变换
|
||||
Transform transform = 3;
|
||||
// 子元素变换
|
||||
repeated ChildTransform children_transform = 4;
|
||||
repeated ChildTransform childTransforms = 4;
|
||||
}
|
||||
|
||||
// 数据类型
|
||||
|
@ -1,41 +0,0 @@
|
||||
syntax = "proto3";
|
||||
import "iscs_graphic_data.proto";
|
||||
|
||||
package FASGraphicData;
|
||||
|
||||
message FASGraphicStorage {
|
||||
iscsGraphicData.Canvas canvas = 1;
|
||||
repeated iscsGraphicData.Arrow arrows = 2;
|
||||
repeated iscsGraphicData.IscsText iscsTexts = 3;
|
||||
repeated iscsGraphicData.Rect rects = 4;
|
||||
repeated ManualAlarmButton manualAlarmButtons = 5;
|
||||
repeated HydrantAlarmButton hydrantAlarmButtons = 6;
|
||||
repeated GasExtinguishing gasExtinguishings = 7;
|
||||
}
|
||||
|
||||
|
||||
message ManualAlarmButton { //手动报警按钮
|
||||
iscsGraphicData.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
message HydrantAlarmButton { //消防栓报警按钮
|
||||
iscsGraphicData.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
message GasExtinguishing { //气体灭火
|
||||
iscsGraphicData.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
message SmokeDetector { //烟雾探测器
|
||||
iscsGraphicData.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
message TemperatureDetector { //温度探测器
|
||||
iscsGraphicData.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
|
||||
}
|
@ -1,59 +1,14 @@
|
||||
syntax = "proto3";
|
||||
|
||||
import "common.proto";
|
||||
package iscsGraphicData;
|
||||
|
||||
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 IscsGraphicStorage {
|
||||
common.Canvas canvas = 1;
|
||||
repeated Arrow arrows = 2;
|
||||
repeated IscsText iscsTexts = 3;
|
||||
repeated Rect rects = 4;
|
||||
repeated CCTVButton cctvButtons = 5;
|
||||
}
|
||||
|
||||
message UniqueIdOfStationLayout {
|
||||
@ -63,14 +18,14 @@ message UniqueIdOfStationLayout {
|
||||
}
|
||||
|
||||
message Arrow {
|
||||
CommonInfo common = 1;
|
||||
common.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
repeated Point points = 3;
|
||||
repeated common.Point points = 3;
|
||||
}
|
||||
|
||||
/** Iscs文字 */
|
||||
//Iscs文字
|
||||
message IscsText {
|
||||
CommonInfo common = 1;
|
||||
common.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
string content = 3;
|
||||
string color = 4;
|
||||
@ -78,12 +33,55 @@ message IscsText {
|
||||
}
|
||||
|
||||
message Rect {
|
||||
CommonInfo common = 1;
|
||||
common.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
int32 lineWidth = 3; // 线宽
|
||||
string lineColor = 4; // 线色
|
||||
float width = 5; //宽度
|
||||
float height = 6; //高度
|
||||
int32 radius = 7; //圆角半径
|
||||
Point point = 8; // 画第一个点的坐标
|
||||
common.Point point = 8; // 画第一个点的坐标
|
||||
}
|
||||
|
||||
//CCTV按钮
|
||||
message CCTVButton {
|
||||
enum ButtonType {
|
||||
rect = 0;
|
||||
monitor = 1; //监控样子的按钮
|
||||
semicircle = 2; //半圆样子的按钮
|
||||
}
|
||||
common.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
ButtonType buttonType = 3;
|
||||
}
|
||||
|
||||
//手动报警按钮
|
||||
message ManualAlarmButton {
|
||||
common.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
//消防栓报警按钮
|
||||
message HydrantAlarmButton {
|
||||
common.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
//气体灭火
|
||||
message GasExtinguishing {
|
||||
common.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
//烟雾探测器
|
||||
message SmokeDetector {
|
||||
common.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
}
|
||||
|
||||
//温度探测器
|
||||
message TemperatureDetector {
|
||||
common.CommonInfo common = 1;
|
||||
string code = 2;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user