Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.TVP
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.TVP
Commits
5f6b37e9
Commit
5f6b37e9
authored
Dec 22, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控制指令支持 viz4
parent
e3cdb818
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
5 deletions
+50
-5
VIZ.TVP.Service/VIZ/Implementation/VizCommandService.cs
+50
-5
No files found.
VIZ.TVP.Service/VIZ/Implementation/VizCommandService.cs
View file @
5f6b37e9
...
...
@@ -122,7 +122,16 @@ namespace VIZ.TVP.Service
if
(
connection
==
null
)
throw
new
ArgumentNullException
(
nameof
(
connection
));
connection
.
EndpointManager
.
Send
(
$"RENDERER SET_SAFE_AREA
{(
show
?
1
:
0
)}
"
);
LocalInfoEntity
info
=
ApplicationDomainEx
.
DataBaseManager
.
LocalInfo
;
if
(
info
.
LocalEngineType
==
LocalEngineType
.
Eng3
)
{
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>
...
...
@@ -135,7 +144,16 @@ namespace VIZ.TVP.Service
if
(
connection
==
null
)
throw
new
ArgumentNullException
(
nameof
(
connection
));
connection
.
EndpointManager
.
Send
(
$"RENDERER SHOW_BOUNDING_BOX
{(
show
?
1
:
0
)}
"
);
LocalInfoEntity
info
=
ApplicationDomainEx
.
DataBaseManager
.
LocalInfo
;
if
(
info
.
LocalEngineType
==
LocalEngineType
.
Eng3
)
{
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>
...
...
@@ -147,7 +165,16 @@ namespace VIZ.TVP.Service
if
(
connection
==
null
)
throw
new
ArgumentNullException
(
nameof
(
connection
));
connection
.
EndpointManager
.
Send
(
$"RENDERER SET_KEY 0,RENDERER*KEY_INTERNAL*ACTIVE SET 0"
);
LocalInfoEntity
info
=
ApplicationDomainEx
.
DataBaseManager
.
LocalInfo
;
if
(
info
.
LocalEngineType
==
LocalEngineType
.
Eng3
)
{
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>
...
...
@@ -159,7 +186,16 @@ namespace VIZ.TVP.Service
if
(
connection
==
null
)
throw
new
ArgumentNullException
(
nameof
(
connection
));
connection
.
EndpointManager
.
Send
(
$"RENDERER SET_KEY 1,RENDERER*KEY_INTERNAL*ACTIVE SET 0"
);
LocalInfoEntity
info
=
ApplicationDomainEx
.
DataBaseManager
.
LocalInfo
;
if
(
info
.
LocalEngineType
==
LocalEngineType
.
Eng3
)
{
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>
...
...
@@ -171,7 +207,16 @@ namespace VIZ.TVP.Service
if
(
connection
==
null
)
throw
new
ArgumentNullException
(
nameof
(
connection
));
connection
.
EndpointManager
.
Send
(
$"RENDERER SET_KEY 0,RENDERER*KEY_INTERNAL*IMAGE RESET,RENDERER*KEY_INTERNAL*ACTIVE SET 1"
);
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"
);
}
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"
);
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment