更新了画图模块
This commit is contained in:
parent
73a51b417d
commit
162e914247
Binary file not shown.
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 270 KiB |
|
@ -53,17 +53,17 @@ def dot_tree(
|
||||||
common.BlackBoxLevel.BIG_PICTURE: "white"
|
common.BlackBoxLevel.BIG_PICTURE: "white"
|
||||||
}
|
}
|
||||||
if node.type =="Selector":
|
if node.type =="Selector":
|
||||||
attributes = ('diamond', 'cyan', 'black') # octagon
|
attributes = ('box', '#B0FFFF', 'black') # octagon
|
||||||
elif node.type =="Sequence":
|
elif node.type =="Sequence":
|
||||||
attributes = ('octagon', 'orange', 'black')
|
attributes = ('box', '#FF8080', 'black')
|
||||||
elif isinstance(node, composites.Parallel):
|
elif isinstance(node, composites.Parallel):
|
||||||
attributes = ('parallelogram', 'gold', 'black')
|
attributes = ('parallelogram', 'lightgold', 'black')
|
||||||
elif isinstance(node, decorators.Decorator):
|
elif isinstance(node, decorators.Decorator):
|
||||||
attributes = ('ellipse', 'ghostwhite', 'black')
|
attributes = ('ellipse', 'ghostwhite', 'black')
|
||||||
elif node.type =="Act":
|
elif node.type =="Act":
|
||||||
attributes = ('box', 'lawngreen', 'black')
|
attributes = ('box', 'lightgreen', 'black')
|
||||||
else:
|
else:
|
||||||
attributes = ('ellipse', 'yellow', 'black')
|
attributes = ('ellipse', '#FFFF80', 'black')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if node.blackbox_level != common.BlackBoxLevel.NOT_A_BLACKBOX:
|
if node.blackbox_level != common.BlackBoxLevel.NOT_A_BLACKBOX:
|
||||||
|
@ -111,10 +111,10 @@ def dot_tree(
|
||||||
if with_qualified_names:
|
if with_qualified_names:
|
||||||
node_label += f"\n({utilities.get_fully_qualified_name(behaviour)})"
|
node_label += f"\n({utilities.get_fully_qualified_name(behaviour)})"
|
||||||
'''
|
'''
|
||||||
# if node_name == "Sequence":
|
if node_name == "Sequence":
|
||||||
# node_name = ">"
|
node_name = "→"
|
||||||
# if node_name == "Selector":
|
if node_name == "Selector":
|
||||||
# node_name = "?"
|
node_name = "?"
|
||||||
return node_name
|
return node_name
|
||||||
|
|
||||||
fontsize = 20
|
fontsize = 20
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 96 KiB |
Loading…
Reference in New Issue