This commit is contained in:
fan 2023-07-14 14:07:13 +08:00
commit 649dd84620
2 changed files with 60 additions and 48 deletions

View File

@ -52,11 +52,11 @@ message TrainState{
string id = 1;
//link的索引
string headLinkId = 2;
//link内的偏移量cm
//link内的偏移量mm
int64 headLinkOffset = 3;
//link的索引
string tailLinkId = 4;
//link内的偏移量cm
//link内的偏移量mm
int64 tailLinkOffset = 5;
//link的索引的列表
//
@ -86,3 +86,14 @@ message AllDevicesStatus{
//
repeated SectionState sectionState = 3;
}
//
message PushedDevicesStatus{
//true-allStatus有效
//false - varStatus有效
bool all = 1;
//
VariationStatus varStatus = 2;
//
AllDevicesStatus allStatus = 3;
}

View File

@ -6,16 +6,16 @@ option java_outer_classname = "LayoutGraphicsProto";
message RtssGraphicStorage {
Canvas canvas = 1;
repeated Link links = 2;
repeated IscsFan iscsFans = 3;
// repeated Link links = 2;
// repeated IscsFan iscsFans = 3;
repeated Platform Platforms = 4;
repeated Station stations = 5;
repeated Rect rects = 6;
repeated Train train = 7;
// repeated Rect rects = 6;
// repeated Train train = 7;
repeated Signal signals = 8;
repeated Turnout turnouts = 9;
repeated Section section = 10;
repeated Polygon polygons = 11;
// repeated Polygon polygons = 11;
repeated TrainWindow trainWindows = 12;
repeated AxleCounting axleCountings = 13;
repeated Separator separators = 14;
@ -69,34 +69,34 @@ message CommonInfo {
repeated ChildTransform childTransforms = 4;
}
message Link {
CommonInfo common = 1;
string code = 2;
bool curve = 3; // 线
int32 segmentsCount = 4; // 线
int32 lineWidth = 5; // 线
string lineColor = 6; // 线
repeated Point points = 7; //
}
// message Link {
// CommonInfo common = 1;
// string code = 2;
// bool curve = 3; // 线
// int32 segmentsCount = 4; // 线
// int32 lineWidth = 5; // 线
// string lineColor = 6; // 线
// repeated Point points = 7; //
// }
message Rect {
CommonInfo common = 1;
string code = 2;
int32 lineWidth = 3; // 线
string lineColor = 4; // 线
float width = 5; //
float height = 6; //
int32 radius = 7; //
Point point = 8; //
}
// message Rect {
// CommonInfo common = 1;
// string code = 2;
// int32 lineWidth = 3; // 线
// string lineColor = 4; // 线
// float width = 5; //
// float height = 6; //
// int32 radius = 7; //
// Point point = 8; //
// }
message Polygon {
CommonInfo common = 1;
string code = 2;
int32 lineWidth = 3; // 线
string lineColor = 4; // 线
repeated Point points = 5; //
}
// message Polygon {
// CommonInfo common = 1;
// string code = 2;
// int32 lineWidth = 3; // 线
// string lineColor = 4; // 线
// repeated Point points = 5; //
// }
message Platform {
CommonInfo common = 1;
@ -124,19 +124,19 @@ message AxleCounting {
CommonInfo common = 1;
string code = 2;
KilometerSystem kilometerSystem = 3; //
repeated RelatedRef axleCountingRef = 4; //
repeated RelatedRef axleCountingRef = 4; //
int32 indexNumber = 5; //
}
message Train {
CommonInfo common = 1;
string code = 2;
}
// message Train {
// CommonInfo common = 1;
// string code = 2;
// }
message IscsFan {
CommonInfo common = 1;
string code = 2;
}
// message IscsFan {
// CommonInfo common = 1;
// string code = 2;
// }
message Turnout {
CommonInfo common = 1;
@ -209,10 +209,10 @@ message RelatedRef {
DevicePort devicePort = 3; //
}
//
//
message TurnoutPosRef {
string id = 1; //ID
int32 position = 2; //01
int32 position = 2; //01
}
message Separator { //
@ -246,10 +246,10 @@ message AxleCountingSection { // 计轴区段
CommonInfo common = 1;
string code = 2;
repeated Point points = 3;
RelatedRef paRef = 4; // A端关联的设备
RelatedRef pbRef = 5; // B端关联的设备
repeated TurnoutPosRef turnoutPos = 6; //
int32 indexNumber = 7; //
RelatedRef paRef = 4; // A端关联的计轴
RelatedRef pbRef = 5; // B端关联的计轴
repeated TurnoutPosRef turnoutPos = 6; //--01
int32 indexNumber = 7; //
}
message LogicSection { //
@ -258,4 +258,5 @@ message LogicSection { // 逻辑区段
repeated Point points = 3;
string axleSectionId = 4; // Id
int32 indexNumber = 5; //
string turnoutId = 6; // id
}