1 # Copyright (C) 2007-2011 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.
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
22 # Generated python file of Graph aNewDataFlow_1
26 # Graph creation of aNewDataFlow_1
27 def DefaNewDataFlow_1() :
28 aNewDataFlow_1 = Graph( 'aNewDataFlow_1' )
29 aNewDataFlow_1.SetName( 'aNewDataFlow_1' )
30 aNewDataFlow_1.SetAuthor( '' )
31 aNewDataFlow_1.SetComment( '' )
32 aNewDataFlow_1.Coords( 0 , 0 )
34 # Creation of Factory Nodes
36 SetStudyID = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'SetStudyID' )
37 SetStudyID.SetName( 'SetStudyID' )
38 SetStudyID.SetAuthor( '' )
39 SetStudyID.SetContainer( 'localhost/FactoryServer' )
40 SetStudyID.SetComment( 'SetStudyID from GEOM_Superv' )
41 SetStudyID.Coords( 9 , 118 )
42 ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' )
43 ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' )
44 OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' )
46 MakeSphere = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' )
47 MakeSphere.SetName( 'MakeSphere' )
48 MakeSphere.SetAuthor( '' )
49 MakeSphere.SetContainer( 'localhost/FactoryServer' )
50 MakeSphere.SetComment( 'MakeSphere from GEOM_Superv' )
51 MakeSphere.Coords( 202 , 58 )
52 IMakeSpheretheX = MakeSphere.GetInPort( 'theX' )
53 IMakeSpheretheY = MakeSphere.GetInPort( 'theY' )
54 IMakeSpheretheZ = MakeSphere.GetInPort( 'theZ' )
55 IMakeSpheretheRadius = MakeSphere.GetInPort( 'theRadius' )
56 IMakeSphereGate = MakeSphere.GetInPort( 'Gate' )
57 OMakeSpherereturn = MakeSphere.GetOutPort( 'return' )
58 OMakeSphereGate = MakeSphere.GetOutPort( 'Gate' )
60 MakeCopy = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
61 MakeCopy.SetName( 'MakeCopy' )
62 MakeCopy.SetAuthor( '' )
63 MakeCopy.SetContainer( 'localhost/FactoryServer' )
64 MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' )
65 MakeCopy.Coords( 425 , 11 )
66 IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' )
67 IMakeCopyGate = MakeCopy.GetInPort( 'Gate' )
68 OMakeCopyreturn = MakeCopy.GetOutPort( 'return' )
69 OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' )
71 TranslateDXDYDZ = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' )
72 TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' )
73 TranslateDXDYDZ.SetAuthor( '' )
74 TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' )
75 TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' )
76 TranslateDXDYDZ.Coords( 428 , 197 )
77 ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' )
78 ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' )
79 ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' )
80 ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' )
81 ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' )
82 OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' )
83 OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' )
85 MakeFuse = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' )
86 MakeFuse.SetName( 'MakeFuse' )
87 MakeFuse.SetAuthor( '' )
88 MakeFuse.SetContainer( 'localhost/FactoryServer' )
89 MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' )
90 MakeFuse.Coords( 651 , 103 )
91 IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' )
92 IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' )
93 IMakeFuseGate = MakeFuse.GetInPort( 'Gate' )
94 OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
95 OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' )
98 LSetStudyIDGateMakeSphereGate = aNewDataFlow_1.Link( OSetStudyIDGate , IMakeSphereGate )
100 LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow_1.Link( OMakeSpherereturn , IMakeCopytheOriginal )
102 LMakeSpherereturnTranslateDXDYDZtheObject = aNewDataFlow_1.Link( OMakeSpherereturn , ITranslateDXDYDZtheObject )
104 LMakeCopyreturnMakeFusetheShape1 = aNewDataFlow_1.Link( OMakeCopyreturn , IMakeFusetheShape1 )
106 LTranslateDXDYDZreturnMakeFusetheShape2 = aNewDataFlow_1.Link( OTranslateDXDYDZreturn , IMakeFusetheShape2 )
109 ISetStudyIDtheStudyID.Input( 1 )
110 IMakeSpheretheX.Input( 0 )
111 IMakeSpheretheY.Input( 0 )
112 IMakeSpheretheZ.Input( 0 )
113 IMakeSpheretheRadius.Input( 50 )
114 ITranslateDXDYDZtheDX.Input( 80 )
115 ITranslateDXDYDZtheDY.Input( 0 )
116 ITranslateDXDYDZtheDZ.Input( 0 )
118 # Output Ports of the graph
119 #OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
120 return aNewDataFlow_1
123 aNewDataFlow_1 = DefaNewDataFlow_1()