Compare commits

..

No commits in common. "4e447beffa31c94b30bcee57a7cf229dcf01351f" and "2b9a6287fb04b6cd7a8c6018f2c12b7d87dfad28" have entirely different histories.

3 changed files with 88 additions and 117 deletions

View File

@ -0,0 +1,88 @@
syntax = "proto3";
package basic_signal_data;
message Storage {
Canvas canvas = 1;
repeated Station stations = 2;
}
//
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 {
// id
uint32 id = 1;
//
string graphicType = 2;
//
Transform transform = 3;
//
repeated ChildTransform childrenTransform = 4;
}
//
message KilometerMark {
//
string coordinate = 1;
//
int64 value = 2;
}
//
message Station {
CommonInfo common = 1;
string name = 2; //
string zhanName = 3; //
string namePinyin = 4; //
KilometerMark km = 6; //
bool concentration = 10; //
bool depots = 11; //
repeated uint32 manageStationIds = 13; // -id
}

View File

@ -1,87 +0,0 @@
syntax = "proto3";
package common;
//
message Canvas {
//
int32 width = 1;
//
int32 height = 2;
//
string background_color = 3;
//
Transform viewport_transform = 4;
//
Grid grid_background = 5;
}
//
message Grid {
bool has_grid = 1;
string line_color = 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 {
// id
uint32 id = 1;
//
string graphic_type = 2;
//
Transform transform = 3;
//
repeated ChildTransform children_transform = 4;
}
//
enum DataType {
//
DataType_Unknown = 0;
//
DataType_Em = 1;
// IBP数据
DataType_Ibp = 2;
// PSL数据
DataType_Psl = 3;
// ISCS数据
DataType_Iscs = 4;
}
//
enum FeatureType {
//
FeatureType_Unknown = 0;
// 仿
FeatureType_Simulation = 1;
//
FeatureType_RunPlan = 2;
}

View File

@ -1,30 +0,0 @@
syntax = "proto3";
package em_data;
import "common.proto";
//
message Em {
common.Canvas canvas = 1;
repeated Station stations = 2;
}
//
message KilometerMark {
//
string coordinate = 1;
//
int64 value = 2;
}
//
message Station {
common.CommonInfo common = 1;
string name = 2; //
string zhanName = 3; //
string namePinyin = 4; //
KilometerMark km = 6; //
bool concentration = 10; //
bool depots = 11; //
repeated uint32 manageStationIds = 13; // -id
}