2 # Generated python file of Graph aNewDataFlow_1
6 # Graph creation of aNewDataFlow_1
7 def DefaNewDataFlow_1() :
8 aNewDataFlow_1 = Graph( 'aNewDataFlow_1' )
9 aNewDataFlow_1.SetName( 'aNewDataFlow_1' )
10 aNewDataFlow_1.SetAuthor( '' )
11 aNewDataFlow_1.SetComment( '' )
12 aNewDataFlow_1.Coords( 0 , 0 )
14 # Creation of Factory Nodes
16 SetStudyID = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' )
17 SetStudyID.SetName( 'SetStudyID' )
18 SetStudyID.SetAuthor( '' )
19 SetStudyID.SetContainer( 'localhost/FactoryServer' )
20 SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' )
21 SetStudyID.Coords( 14 , 241 )
22 ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' )
23 ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' )
24 OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' )
26 MakeBox = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeBox' )
27 MakeBox.SetName( 'MakeBox' )
28 MakeBox.SetAuthor( '' )
29 MakeBox.SetContainer( 'localhost/FactoryServer' )
30 MakeBox.SetComment( 'MakeBox from GEOM_Superv' )
31 MakeBox.Coords( 198 , 46 )
32 IMakeBoxtheX1 = MakeBox.GetInPort( 'theX1' )
33 IMakeBoxtheY1 = MakeBox.GetInPort( 'theY1' )
34 IMakeBoxtheZ1 = MakeBox.GetInPort( 'theZ1' )
35 IMakeBoxtheX2 = MakeBox.GetInPort( 'theX2' )
36 IMakeBoxtheY2 = MakeBox.GetInPort( 'theY2' )
37 IMakeBoxtheZ2 = MakeBox.GetInPort( 'theZ2' )
38 IMakeBoxGate = MakeBox.GetInPort( 'Gate' )
39 OMakeBoxreturn = MakeBox.GetOutPort( 'return' )
40 OMakeBoxGate = MakeBox.GetOutPort( 'Gate' )
42 MakeCopy = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
43 MakeCopy.SetName( 'MakeCopy' )
44 MakeCopy.SetAuthor( '' )
45 MakeCopy.SetContainer( 'localhost/FactoryServer' )
46 MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' )
47 MakeCopy.Coords( 383 , 46 )
48 IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' )
49 IMakeCopyGate = MakeCopy.GetInPort( 'Gate' )
50 OMakeCopyreturn = MakeCopy.GetOutPort( 'return' )
51 OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' )
53 TranslateDXDYDZ = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' )
54 TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' )
55 TranslateDXDYDZ.SetAuthor( '' )
56 TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' )
57 TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' )
58 TranslateDXDYDZ.Coords( 579 , 46 )
59 ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' )
60 ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' )
61 ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' )
62 ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' )
63 ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' )
64 OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' )
65 OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' )
67 MakeCopy_1 = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
68 MakeCopy_1.SetName( 'MakeCopy_1' )
69 MakeCopy_1.SetAuthor( '' )
70 MakeCopy_1.SetContainer( 'localhost/FactoryServer' )
71 MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' )
72 MakeCopy_1.Coords( 384 , 168 )
73 IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' )
74 IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' )
75 OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' )
76 OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' )
78 MakeSphere_1 = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' )
79 MakeSphere_1.SetName( 'MakeSphere_1' )
80 MakeSphere_1.SetAuthor( '' )
81 MakeSphere_1.SetContainer( 'localhost/FactoryServer' )
82 MakeSphere_1.SetComment( 'MakeSphere from GEOM_Superv' )
83 MakeSphere_1.Coords( 201 , 332 )
84 IMakeSphere_1theX = MakeSphere_1.GetInPort( 'theX' )
85 IMakeSphere_1theY = MakeSphere_1.GetInPort( 'theY' )
86 IMakeSphere_1theZ = MakeSphere_1.GetInPort( 'theZ' )
87 IMakeSphere_1theRadius = MakeSphere_1.GetInPort( 'theRadius' )
88 IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' )
89 OMakeSphere_1return = MakeSphere_1.GetOutPort( 'return' )
90 OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' )
92 MakeFuse = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' )
93 MakeFuse.SetName( 'MakeFuse' )
94 MakeFuse.SetAuthor( '' )
95 MakeFuse.SetContainer( 'localhost/FactoryServer' )
96 MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' )
97 MakeFuse.Coords( 790 , 148 )
98 IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' )
99 IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' )
100 IMakeFuseGate = MakeFuse.GetInPort( 'Gate' )
101 OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
102 OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' )
104 MakeFuse_1 = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' )
105 MakeFuse_1.SetName( 'MakeFuse_1' )
106 MakeFuse_1.SetAuthor( '' )
107 MakeFuse_1.SetContainer( 'localhost/FactoryServer' )
108 MakeFuse_1.SetComment( 'MakeFuse from GEOM_Superv' )
109 MakeFuse_1.Coords( 993 , 312 )
110 IMakeFuse_1theShape1 = MakeFuse_1.GetInPort( 'theShape1' )
111 IMakeFuse_1theShape2 = MakeFuse_1.GetInPort( 'theShape2' )
112 IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' )
113 OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' )
114 OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' )
117 LSetStudyIDGateMakeBoxGate = aNewDataFlow_1.Link( OSetStudyIDGate , IMakeBoxGate )
119 LSetStudyIDGateMakeSphere_1Gate = aNewDataFlow_1.Link( OSetStudyIDGate , IMakeSphere_1Gate )
121 LMakeBoxreturnMakeCopytheOriginal = aNewDataFlow_1.Link( OMakeBoxreturn , IMakeCopytheOriginal )
123 LMakeBoxreturnMakeCopy_1theOriginal = aNewDataFlow_1.Link( OMakeBoxreturn , IMakeCopy_1theOriginal )
125 LMakeCopyreturnTranslateDXDYDZtheObject = aNewDataFlow_1.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject )
127 LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow_1.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 )
129 LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow_1.Link( OMakeCopy_1return , IMakeFusetheShape2 )
131 LMakeSphere_1returnMakeFuse_1theShape2 = aNewDataFlow_1.Link( OMakeSphere_1return , IMakeFuse_1theShape2 )
133 LMakeFusereturnMakeFuse_1theShape1 = aNewDataFlow_1.Link( OMakeFusereturn , IMakeFuse_1theShape1 )
136 ISetStudyIDtheStudyID.Input( 1 )
137 IMakeBoxtheX1.Input( 0 )
138 IMakeBoxtheY1.Input( 0 )
139 IMakeBoxtheZ1.Input( 0 )
140 IMakeBoxtheX2.Input( 50 )
141 IMakeBoxtheY2.Input( 50 )
142 IMakeBoxtheZ2.Input( 50 )
143 ITranslateDXDYDZtheDX.Input( 10 )
144 ITranslateDXDYDZtheDY.Input( 10 )
145 ITranslateDXDYDZtheDZ.Input( 10 )
146 IMakeSphere_1theX.Input( 0 )
147 IMakeSphere_1theY.Input( 0 )
148 IMakeSphere_1theZ.Input( 0 )
149 IMakeSphere_1theRadius.Input( 12 )
151 # Output Ports of the graph
152 #OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' )
153 return aNewDataFlow_1
156 aNewDataFlow_1 = DefaNewDataFlow_1()