2 # Generated python file of Graph aNewDataFlow
6 # Graph creation of aNewDataFlow
7 def DefaNewDataFlow() :
8 aNewDataFlow = Graph( 'aNewDataFlow' )
9 aNewDataFlow.SetName( 'aNewDataFlow' )
10 aNewDataFlow.SetAuthor( '' )
11 aNewDataFlow.SetComment( '' )
12 aNewDataFlow.Coords( 0 , 0 )
14 # Creation of Factory Nodes
16 SetStudyID = aNewDataFlow.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( 13 , 109 )
22 ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' )
23 ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' )
24 OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' )
26 MakeSphere = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' )
27 MakeSphere.SetName( 'MakeSphere' )
28 MakeSphere.SetAuthor( '' )
29 MakeSphere.SetContainer( 'localhost/FactoryServer' )
30 MakeSphere.SetComment( 'MakeSphere from GEOM_Superv' )
31 MakeSphere.Coords( 210 , 49 )
32 IMakeSpheretheX = MakeSphere.GetInPort( 'theX' )
33 IMakeSpheretheY = MakeSphere.GetInPort( 'theY' )
34 IMakeSpheretheZ = MakeSphere.GetInPort( 'theZ' )
35 IMakeSpheretheRadius = MakeSphere.GetInPort( 'theRadius' )
36 IMakeSphereGate = MakeSphere.GetInPort( 'Gate' )
37 OMakeSpherereturn = MakeSphere.GetOutPort( 'return' )
38 OMakeSphereGate = MakeSphere.GetOutPort( 'Gate' )
40 MakeCopy = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
41 MakeCopy.SetName( 'MakeCopy' )
42 MakeCopy.SetAuthor( '' )
43 MakeCopy.SetContainer( 'localhost/FactoryServer' )
44 MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' )
45 MakeCopy.Coords( 412 , 12 )
46 IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' )
47 IMakeCopyGate = MakeCopy.GetInPort( 'Gate' )
48 OMakeCopyreturn = MakeCopy.GetOutPort( 'return' )
49 OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' )
51 MakeCopy_1 = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
52 MakeCopy_1.SetName( 'MakeCopy_1' )
53 MakeCopy_1.SetAuthor( '' )
54 MakeCopy_1.SetContainer( 'localhost/FactoryServer' )
55 MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' )
56 MakeCopy_1.Coords( 414 , 183 )
57 IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' )
58 IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' )
59 OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' )
60 OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' )
62 TranslateDXDYDZ = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' )
63 TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' )
64 TranslateDXDYDZ.SetAuthor( '' )
65 TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' )
66 TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' )
67 TranslateDXDYDZ.Coords( 606 , 12 )
68 ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' )
69 ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' )
70 ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' )
71 ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' )
72 ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' )
73 OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' )
74 OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' )
76 MakeFuse = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' )
77 MakeFuse.SetName( 'MakeFuse' )
78 MakeFuse.SetAuthor( '' )
79 MakeFuse.SetContainer( 'localhost/FactoryServer' )
80 MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' )
81 MakeFuse.Coords( 801 , 163 )
82 IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' )
83 IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' )
84 IMakeFuseGate = MakeFuse.GetInPort( 'Gate' )
85 OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
86 OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' )
89 LSetStudyIDGateMakeSphereGate = aNewDataFlow.Link( OSetStudyIDGate , IMakeSphereGate )
91 LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopytheOriginal )
93 LMakeSpherereturnMakeCopy_1theOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopy_1theOriginal )
95 LMakeCopyreturnTranslateDXDYDZtheObject = aNewDataFlow.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject )
97 LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow.Link( OMakeCopy_1return , IMakeFusetheShape2 )
99 LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 )
102 ISetStudyIDtheStudyID.Input( 1 )
103 IMakeSpheretheX.Input( 0 )
104 IMakeSpheretheY.Input( 0 )
105 IMakeSpheretheZ.Input( 0 )
106 IMakeSpheretheRadius.Input( 20 )
107 ITranslateDXDYDZtheDX.Input( 10 )
108 ITranslateDXDYDZtheDY.Input( 10 )
109 ITranslateDXDYDZtheDZ.Input( 10 )
111 # Output Ports of the graph
112 #OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
116 aNewDataFlow = DefaNewDataFlow()