1 # Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 # Generated python file of Graph aNewDataFlow
27 # Graph creation of aNewDataFlow
28 def DefaNewDataFlow() :
29 aNewDataFlow = Graph( 'aNewDataFlow' )
30 aNewDataFlow.SetName( 'aNewDataFlow' )
31 aNewDataFlow.SetAuthor( '' )
32 aNewDataFlow.SetComment( '' )
33 aNewDataFlow.Coords( 0 , 0 )
35 # Creation of Factory Nodes
37 SetStudyID = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' )
38 SetStudyID.SetName( 'SetStudyID' )
39 SetStudyID.SetAuthor( '' )
40 SetStudyID.SetContainer( 'localhost/FactoryServer' )
41 SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' )
42 SetStudyID.Coords( 14 , 104 )
43 ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' )
44 ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' )
45 OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' )
47 MakeSphere = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' )
48 MakeSphere.SetName( 'MakeSphere' )
49 MakeSphere.SetAuthor( '' )
50 MakeSphere.SetContainer( 'localhost/FactoryServer' )
51 MakeSphere.SetComment( 'MakeSphere from GEOM_Superv' )
52 MakeSphere.Coords( 198 , 32 )
53 IMakeSpheretheX = MakeSphere.GetInPort( 'theX' )
54 IMakeSpheretheY = MakeSphere.GetInPort( 'theY' )
55 IMakeSpheretheZ = MakeSphere.GetInPort( 'theZ' )
56 IMakeSpheretheRadius = MakeSphere.GetInPort( 'theRadius' )
57 IMakeSphereGate = MakeSphere.GetInPort( 'Gate' )
58 OMakeSpherereturn = MakeSphere.GetOutPort( 'return' )
59 OMakeSphereGate = MakeSphere.GetOutPort( 'Gate' )
61 MakeCopy = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
62 MakeCopy.SetName( 'MakeCopy' )
63 MakeCopy.SetAuthor( '' )
64 MakeCopy.SetContainer( 'localhost/FactoryServer' )
65 MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' )
66 MakeCopy.Coords( 390 , 11 )
67 IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' )
68 IMakeCopyGate = MakeCopy.GetInPort( 'Gate' )
69 OMakeCopyreturn = MakeCopy.GetOutPort( 'return' )
70 OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' )
72 MakeCopy_1 = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
73 MakeCopy_1.SetName( 'MakeCopy_1' )
74 MakeCopy_1.SetAuthor( '' )
75 MakeCopy_1.SetContainer( 'localhost/FactoryServer' )
76 MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' )
77 MakeCopy_1.Coords( 429 , 177 )
78 IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' )
79 IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' )
80 OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' )
81 OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' )
83 TranslateDXDYDZ = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' )
84 TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' )
85 TranslateDXDYDZ.SetAuthor( '' )
86 TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' )
87 TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' )
88 TranslateDXDYDZ.Coords( 615 , 11 )
89 ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' )
90 ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' )
91 ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' )
92 ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' )
93 ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' )
94 OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' )
95 OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' )
97 MakeFuse = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' )
98 MakeFuse.SetName( 'MakeFuse' )
99 MakeFuse.SetAuthor( '' )
100 MakeFuse.SetContainer( 'localhost/FactoryServer' )
101 MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' )
102 MakeFuse.Coords( 806 , 33 )
103 IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' )
104 IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' )
105 IMakeFuseGate = MakeFuse.GetInPort( 'Gate' )
106 OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
107 OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' )
110 LSetStudyIDGateMakeSphereGate = aNewDataFlow.Link( OSetStudyIDGate , IMakeSphereGate )
112 LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopytheOriginal )
114 LMakeSpherereturnMakeCopy_1theOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopy_1theOriginal )
116 LMakeCopyreturnTranslateDXDYDZtheObject = aNewDataFlow.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject )
118 LMakeCopyGateMakeCopy_1Gate = aNewDataFlow.Link( OMakeCopyGate , IMakeCopy_1Gate )
119 LMakeCopyGateMakeCopy_1Gate.AddCoord( 1 , 382 , 174 )
120 LMakeCopyGateMakeCopy_1Gate.AddCoord( 2 , 552 , 147 )
122 LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow.Link( OMakeCopy_1return , IMakeFusetheShape2 )
123 LMakeCopy_1returnMakeFusetheShape2.AddCoord( 1 , 784 , 199 )
125 LMakeCopy_1GateTranslateDXDYDZGate = aNewDataFlow.Link( OMakeCopy_1Gate , ITranslateDXDYDZGate )
127 LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 )
129 LTranslateDXDYDZGateMakeFuseGate = aNewDataFlow.Link( OTranslateDXDYDZGate , IMakeFuseGate )
132 ISetStudyIDtheStudyID.Input( 1 )
133 IMakeSpheretheX.Input( 0 )
134 IMakeSpheretheY.Input( 0 )
135 IMakeSpheretheZ.Input( 0 )
136 IMakeSpheretheRadius.Input( 20 )
137 ITranslateDXDYDZtheDX.Input( 10 )
138 ITranslateDXDYDZtheDY.Input( 10 )
139 ITranslateDXDYDZtheDZ.Input( 10 )
141 # Output Ports of the graph
142 #OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
146 aNewDataFlow = DefaNewDataFlow()