protoc修改

This commit is contained in:
joylink_zhaoerwei 2024-09-19 10:42:08 +08:00
parent a162241091
commit 1672a8c0e2
4 changed files with 65 additions and 133 deletions

View File

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

View File

@ -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;
}
//
@ -91,4 +91,4 @@ enum FeatureType {
FeatureType_Simulation = 1;
//
FeatureType_RunPlan = 2;
}
}

View File

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

View File

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