Commit 5f6b37e9 by liulongfei

控制指令支持 viz4

parent e3cdb818
...@@ -122,8 +122,17 @@ namespace VIZ.TVP.Service ...@@ -122,8 +122,17 @@ namespace VIZ.TVP.Service
if (connection == null) if (connection == null)
throw new ArgumentNullException(nameof(connection)); throw new ArgumentNullException(nameof(connection));
LocalInfoEntity info = ApplicationDomainEx.DataBaseManager.LocalInfo;
if (info.LocalEngineType == LocalEngineType.Eng3)
{
connection.EndpointManager.Send($"RENDERER SET_SAFE_AREA {(show ? 1 : 0)}"); connection.EndpointManager.Send($"RENDERER SET_SAFE_AREA {(show ? 1 : 0)}");
} }
else if (info.LocalEngineType == LocalEngineType.Eng4)
{
connection.EndpointManager.Send($"{ApplicationDomainEx.LocalVizManager.VizRendererName} SET_SAFE_AREA {(show ? 1 : 0)}");
}
}
/// <summary> /// <summary>
/// 显示边界框 /// 显示边界框
...@@ -135,8 +144,17 @@ namespace VIZ.TVP.Service ...@@ -135,8 +144,17 @@ namespace VIZ.TVP.Service
if (connection == null) if (connection == null)
throw new ArgumentNullException(nameof(connection)); throw new ArgumentNullException(nameof(connection));
LocalInfoEntity info = ApplicationDomainEx.DataBaseManager.LocalInfo;
if (info.LocalEngineType == LocalEngineType.Eng3)
{
connection.EndpointManager.Send($"RENDERER SHOW_BOUNDING_BOX {(show ? 1 : 0)}"); connection.EndpointManager.Send($"RENDERER SHOW_BOUNDING_BOX {(show ? 1 : 0)}");
} }
else if (info.LocalEngineType == LocalEngineType.Eng4)
{
connection.EndpointManager.Send($"{ApplicationDomainEx.LocalVizManager.VizRendererName} SHOW_BOUNDING_BOX {(show ? 1 : 0)}");
}
}
/// <summary> /// <summary>
/// 显示RGB /// 显示RGB
...@@ -147,8 +165,17 @@ namespace VIZ.TVP.Service ...@@ -147,8 +165,17 @@ namespace VIZ.TVP.Service
if (connection == null) if (connection == null)
throw new ArgumentNullException(nameof(connection)); throw new ArgumentNullException(nameof(connection));
LocalInfoEntity info = ApplicationDomainEx.DataBaseManager.LocalInfo;
if (info.LocalEngineType == LocalEngineType.Eng3)
{
connection.EndpointManager.Send($"RENDERER SET_KEY 0,RENDERER*KEY_INTERNAL*ACTIVE SET 0"); connection.EndpointManager.Send($"RENDERER SET_KEY 0,RENDERER*KEY_INTERNAL*ACTIVE SET 0");
} }
else if (info.LocalEngineType == LocalEngineType.Eng4)
{
connection.EndpointManager.Send($"{ApplicationDomainEx.LocalVizManager.VizRendererName} SET_KEY 0,RENDERER*KEY_INTERNAL*ACTIVE SET 0");
}
}
/// <summary> /// <summary>
/// 显示键 /// 显示键
...@@ -159,8 +186,17 @@ namespace VIZ.TVP.Service ...@@ -159,8 +186,17 @@ namespace VIZ.TVP.Service
if (connection == null) if (connection == null)
throw new ArgumentNullException(nameof(connection)); throw new ArgumentNullException(nameof(connection));
LocalInfoEntity info = ApplicationDomainEx.DataBaseManager.LocalInfo;
if (info.LocalEngineType == LocalEngineType.Eng3)
{
connection.EndpointManager.Send($"RENDERER SET_KEY 1,RENDERER*KEY_INTERNAL*ACTIVE SET 0"); connection.EndpointManager.Send($"RENDERER SET_KEY 1,RENDERER*KEY_INTERNAL*ACTIVE SET 0");
} }
else if (info.LocalEngineType == LocalEngineType.Eng4)
{
connection.EndpointManager.Send($"{ApplicationDomainEx.LocalVizManager.VizRendererName} SET_KEY 1,RENDERER*KEY_INTERNAL*ACTIVE SET 0");
}
}
/// <summary> /// <summary>
/// 显示预览键 /// 显示预览键
...@@ -171,7 +207,16 @@ namespace VIZ.TVP.Service ...@@ -171,7 +207,16 @@ namespace VIZ.TVP.Service
if (connection == null) if (connection == null)
throw new ArgumentNullException(nameof(connection)); throw new ArgumentNullException(nameof(connection));
LocalInfoEntity info = ApplicationDomainEx.DataBaseManager.LocalInfo;
if (info.LocalEngineType == LocalEngineType.Eng3)
{
connection.EndpointManager.Send($"RENDERER SET_KEY 0,RENDERER*KEY_INTERNAL*IMAGE RESET,RENDERER*KEY_INTERNAL*ACTIVE SET 1"); connection.EndpointManager.Send($"RENDERER SET_KEY 0,RENDERER*KEY_INTERNAL*IMAGE RESET,RENDERER*KEY_INTERNAL*ACTIVE SET 1");
} }
else if (info.LocalEngineType == LocalEngineType.Eng4)
{
connection.EndpointManager.Send($"{ApplicationDomainEx.LocalVizManager.VizRendererName} SET_KEY 0,RENDERER*KEY_INTERNAL*IMAGE RESET,RENDERER*KEY_INTERNAL*ACTIVE SET 1");
}
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment