Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
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.Package
Commits
83514cfa
Commit
83514cfa
authored
Mar 01, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控制对象
parent
2b364f7d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
22 deletions
+89
-22
VIZ.Package.Domain/Model/ControlObject/ControlObjectModel.cs
+73
-14
VIZ.Package.Service/Viz/VizCommandControlObjectService.cs
+5
-0
VIZ.Package.Storage/Enum/VizControlObjectParameters.cs
+11
-8
No files found.
VIZ.Package.Domain/Model/ControlObject/ControlObjectModel.cs
View file @
83514cfa
...
@@ -55,20 +55,6 @@ namespace VIZ.Package.Domain
...
@@ -55,20 +55,6 @@ namespace VIZ.Package.Domain
#
endregion
#
endregion
#
region
UseAllDirectors
--
使用所有的控制器
private
bool
useAllDirectors
;
/// <summary>
/// 使用所有的控制器
/// </summary>
public
bool
UseAllDirectors
{
get
{
return
useAllDirectors
;
}
set
{
useAllDirectors
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
UseAllDirectors
));
}
}
#
endregion
#
region
FieldDetails
--
字段描述
#
region
FieldDetails
--
字段描述
private
string
fieldDetails
;
private
string
fieldDetails
;
...
@@ -124,5 +110,78 @@ namespace VIZ.Package.Domain
...
@@ -124,5 +110,78 @@ namespace VIZ.Package.Domain
}
}
#
endregion
#
endregion
#
region
UseAllDirectors
--
使用所有的控制器
private
bool
useAllDirectors
;
/// <summary>
/// 使用所有的控制器
/// </summary>
public
bool
UseAllDirectors
{
get
{
return
useAllDirectors
;
}
set
{
useAllDirectors
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
UseAllDirectors
));
}
}
#
endregion
// -------------------------------------------------------------------
// 切换逻辑
#
region
TransitionLogic
--
是否为切换逻辑层
private
bool
transitionLogic
;
/// <summary>
/// 是否为切换逻辑层
/// </summary>
public
bool
TransitionLogic
{
get
{
return
transitionLogic
;
}
set
{
transitionLogic
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
TransitionLogic
));
}
}
#
endregion
#
region
LayerIdentifier
--
切换逻辑层名
private
string
layerIdentifier
;
/// <summary>
/// 切换逻辑层名
/// </summary>
public
string
LayerIdentifier
{
get
{
return
layerIdentifier
;
}
set
{
layerIdentifier
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
LayerIdentifier
));
}
}
#
endregion
#
region
StateIdentifier
--
进入方式
private
string
stateIdentifier
;
/// <summary>
/// 进入方式
/// </summary>
public
string
StateIdentifier
{
get
{
return
stateIdentifier
;
}
set
{
stateIdentifier
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
StateIdentifier
));
}
}
#
endregion
#
region
BackgroundScene
--
背景层
private
string
backgroundScene
;
/// <summary>
/// 背景层
/// </summary>
public
string
BackgroundScene
{
get
{
return
backgroundScene
;
}
set
{
backgroundScene
=
value
;
}
}
#
endregion
}
}
}
}
VIZ.Package.Service/Viz/VizCommandControlObjectService.cs
View file @
83514cfa
...
@@ -226,6 +226,11 @@ namespace VIZ.Package.Service
...
@@ -226,6 +226,11 @@ namespace VIZ.Package.Service
obj
.
TreeNodeName
=
objTreeNodeInfo
.
Name
;
obj
.
TreeNodeName
=
objTreeNodeInfo
.
Name
;
obj
.
Description
=
this
.
GetControlObjectParameter
(
conn
,
obj
.
TreeNodePath
,
VizControlObjectParameters
.
description
);
obj
.
Description
=
this
.
GetControlObjectParameter
(
conn
,
obj
.
TreeNodePath
,
VizControlObjectParameters
.
description
);
obj
.
UseAllDirectors
=
this
.
GetControlObjectParameter
(
conn
,
obj
.
TreeNodePath
,
VizControlObjectParameters
.
use_all_directors
)
==
"1"
;
obj
.
UseAllDirectors
=
this
.
GetControlObjectParameter
(
conn
,
obj
.
TreeNodePath
,
VizControlObjectParameters
.
use_all_directors
)
==
"1"
;
// 切换场景
obj
.
TransitionLogic
=
this
.
GetControlObjectParameter
(
conn
,
obj
.
TreeNodePath
,
VizControlObjectParameters
.
trio_loadable
)
==
"1"
;
obj
.
LayerIdentifier
=
this
.
GetControlObjectParameter
(
conn
,
obj
.
TreeNodePath
,
VizControlObjectParameters
.
layer
);
obj
.
StateIdentifier
=
this
.
GetControlObjectParameter
(
conn
,
obj
.
TreeNodePath
,
VizControlObjectParameters
.
state
);
obj
.
BackgroundScene
=
this
.
GetControlObjectParameter
(
conn
,
obj
.
TreeNodePath
,
VizControlObjectParameters
.
background
);
// Step 5. 获取第一个控制对象的字段描述
// Step 5. 获取第一个控制对象的字段描述
string
fieldDetails
=
this
.
GetControlObjectResult
(
conn
,
obj
.
TreeNodePath
);
string
fieldDetails
=
this
.
GetControlObjectResult
(
conn
,
obj
.
TreeNodePath
);
...
...
VIZ.Package.Storage/Enum/VizControlObjectParameters.cs
View file @
83514cfa
...
@@ -17,11 +17,6 @@ namespace VIZ.Package.Storage
...
@@ -17,11 +17,6 @@ namespace VIZ.Package.Storage
description
,
description
,
/// <summary>
/// <summary>
/// trio 是否已经加载
/// </summary>
trio_loadable
,
/// <summary>
/// Viz层
/// Viz层
/// </summary>
/// </summary>
viz_layer
,
viz_layer
,
...
@@ -31,18 +26,26 @@ namespace VIZ.Package.Storage
...
@@ -31,18 +26,26 @@ namespace VIZ.Package.Storage
/// </summary>
/// </summary>
use_all_directors
,
use_all_directors
,
// -----------------------------------------------------------------------
// 切换场景
/// <summary>
/// 是否使用切换逻辑
/// </summary>
trio_loadable
,
/// <summary>
/// <summary>
///
图层 0 FRONT_LAYER, 1 MAIN_LAYER, 2 BACK_LAYER
///
切换场景层
/// </summary>
/// </summary>
layer
,
layer
,
/// <summary>
/// <summary>
/// 状态
///
切换场景
状态
/// </summary>
/// </summary>
state
,
state
,
/// <summary>
/// <summary>
///
背景场
景
///
切换场景背
景
/// </summary>
/// </summary>
background
background
}
}
...
...
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