| | |
| | | item.Id = pipe.Code; |
| | | item.Rotation = 90; |
| | | item.SpeedX = 0.1; |
| | | if (pipe.FlowDirectionX == Yw.Hydro.FlowDirection.None) |
| | | { |
| | | item.SpeedX = 0; |
| | | } |
| | | else if (pipe.FlowDirectionX == Yw.Hydro.FlowDirection.Positive) |
| | | { |
| | | item.SpeedX = 0.1; |
| | | } |
| | | else |
| | | { |
| | | item.SpeedX = -0.1; |
| | | } |
| | | //if (pipe.FlowDirectionX == Yw.Hydro.FlowDirection.None) |
| | | //{ |
| | | // item.SpeedX = 0; |
| | | //} |
| | | //else if (pipe.FlowDirectionX == Yw.Hydro.FlowDirection.Positive) |
| | | //{ |
| | | // item.SpeedX = 0.1; |
| | | //} |
| | | //else |
| | | //{ |
| | | // item.SpeedX = -0.1; |
| | | //} |
| | | |
| | | if (pipe.FlowDirectionY == Yw.Hydro.FlowDirection.None) |
| | | { |
| | | item.SpeedY = 0; |
| | | } |
| | | else if (pipe.FlowDirectionY == Yw.Hydro.FlowDirection.Positive) |
| | | { |
| | | item.SpeedY = 0.1; |
| | | } |
| | | else |
| | | { |
| | | item.SpeedY = -0.1; |
| | | } |
| | | //if (pipe.FlowDirectionY == Yw.Hydro.FlowDirection.None) |
| | | //{ |
| | | // item.SpeedY = 0; |
| | | //} |
| | | //else if (pipe.FlowDirectionY == Yw.Hydro.FlowDirection.Positive) |
| | | //{ |
| | | // item.SpeedY = 0.1; |
| | | //} |
| | | //else |
| | | //{ |
| | | // item.SpeedY = -0.1; |
| | | //} |
| | | |
| | | var calcuLinkResult = allCalcuResultVisualDict?.GetValue(pipe.Code) as HydroCalcuLinkResult; |
| | | if (calcuLinkResult != null) |