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( 13 , 109 )
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( 210 , 49 )
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( 412 , 12 )
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( 414 , 183 )
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( 606 , 12 )
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( 801 , 163 )
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 LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow.Link( OMakeCopy_1return , IMakeFusetheShape2 )
120 LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 )
123 ISetStudyIDtheStudyID.Input( 1 )
124 IMakeSpheretheX.Input( 0 )
125 IMakeSpheretheY.Input( 0 )
126 IMakeSpheretheZ.Input( 0 )
127 IMakeSpheretheRadius.Input( 20 )
128 ITranslateDXDYDZtheDX.Input( 10 )
129 ITranslateDXDYDZtheDY.Input( 10 )
130 ITranslateDXDYDZtheDZ.Input( 10 )
132 # Output Ports of the graph
133 #OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
137 aNewDataFlow = DefaNewDataFlow()