1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
from common.AAAAAA import *
def ImplicitOutputPort(outroot, attribid, parentattribid, ordering, geometry,
addDataLines=False, value='', forSplitBlock=False,
style=None):
func_name = 'ImplicitOutputPort'
if style is None:
style = func_name
if forSplitBlock:
outnode = addNode(outroot, func_name, **{'id': attribid},
parent=parentattribid, ordering=ordering,
initialState="-1.0",
style=style, value='')
elif addDataLines:
outnode = addNode(outroot, func_name, **{'id': attribid},
parent=parentattribid, ordering=ordering,
dataType='REAL_MATRIX', dataColumns=1,
dataLines=1, style=style,
value=value)
else:
outnode = addNode(outroot, func_name, **{'id': attribid},
parent=parentattribid, ordering=ordering,
dataType='REAL_MATRIX', dataColumns=1,
dataLines=1, initialState="-1.0",
style=style, value=value)
return outnode
def addImplicitOutputPortForSplit(outroot, splitBlock, sourceVertex, targetVertex,
sourceType, targetType, inputCount,
outputCount, nextAttrib, nextAttribForSplit, waypoints):
outputCount += 1
geometry = {}
geometry['width'] = 8
geometry['height'] = 8
geometry['x'] = 7
geometry['y'] = -4
ImplicitOutputPort(outroot, nextAttrib, splitBlock, outputCount, geometry, forSplitBlock=True)
nextAttrib += 1
nextAttribForSplit += 1
return (inputCount, outputCount, nextAttrib, nextAttribForSplit)
|