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 GeomGraph
26 # Graph creation of GeomGraph
28 GeomGraph = Graph( 'GeomGraph' )
29 GeomGraph.SetName( 'GeomGraph' )
30 GeomGraph.SetAuthor( '' )
31 GeomGraph.SetComment( '' )
32 GeomGraph.Coords( 0 , 0 )
34 # Creation of Factory Nodes
36 SetStudyID = GeomGraph.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( 14 , 241 )
42 ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' )
43 ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' )
44 OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' )
46 MakeBox = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeBox' )
47 MakeBox.SetName( 'MakeBox' )
48 MakeBox.SetAuthor( '' )
49 MakeBox.SetContainer( 'localhost/FactoryServer' )
50 MakeBox.SetComment( 'MakeBox from GEOM_Superv' )
51 MakeBox.Coords( 198 , 46 )
52 IMakeBoxtheX1 = MakeBox.GetInPort( 'theX1' )
53 IMakeBoxtheY1 = MakeBox.GetInPort( 'theY1' )
54 IMakeBoxtheZ1 = MakeBox.GetInPort( 'theZ1' )
55 IMakeBoxtheX2 = MakeBox.GetInPort( 'theX2' )
56 IMakeBoxtheY2 = MakeBox.GetInPort( 'theY2' )
57 IMakeBoxtheZ2 = MakeBox.GetInPort( 'theZ2' )
58 IMakeBoxGate = MakeBox.GetInPort( 'Gate' )
59 OMakeBoxreturn = MakeBox.GetOutPort( 'return' )
60 OMakeBoxGate = MakeBox.GetOutPort( 'Gate' )
62 MakeCopy = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
63 MakeCopy.SetName( 'MakeCopy' )
64 MakeCopy.SetAuthor( '' )
65 MakeCopy.SetContainer( 'localhost/FactoryServer' )
66 MakeCopy.SetComment( 'MakeCopy from GEOM_Superv' )
67 MakeCopy.Coords( 383 , 46 )
68 IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' )
69 IMakeCopyGate = MakeCopy.GetInPort( 'Gate' )
70 OMakeCopyreturn = MakeCopy.GetOutPort( 'return' )
71 OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' )
73 TranslateDXDYDZ = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' )
74 TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' )
75 TranslateDXDYDZ.SetAuthor( '' )
76 TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' )
77 TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' )
78 TranslateDXDYDZ.Coords( 579 , 46 )
79 ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' )
80 ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' )
81 ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' )
82 ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' )
83 ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' )
84 OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' )
85 OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' )
87 MakeCopy_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
88 MakeCopy_1.SetName( 'MakeCopy_1' )
89 MakeCopy_1.SetAuthor( '' )
90 MakeCopy_1.SetContainer( 'localhost/FactoryServer' )
91 MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' )
92 MakeCopy_1.Coords( 384 , 168 )
93 IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' )
94 IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' )
95 OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' )
96 OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' )
98 MakeSphere_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeSphere' )
99 MakeSphere_1.SetName( 'MakeSphere_1' )
100 MakeSphere_1.SetAuthor( '' )
101 MakeSphere_1.SetContainer( 'localhost/FactoryServer' )
102 MakeSphere_1.SetComment( 'MakeSphere from GEOM_Superv' )
103 MakeSphere_1.Coords( 201 , 332 )
104 IMakeSphere_1theX = MakeSphere_1.GetInPort( 'theX' )
105 IMakeSphere_1theY = MakeSphere_1.GetInPort( 'theY' )
106 IMakeSphere_1theZ = MakeSphere_1.GetInPort( 'theZ' )
107 IMakeSphere_1theRadius = MakeSphere_1.GetInPort( 'theRadius' )
108 IMakeSphere_1Gate = MakeSphere_1.GetInPort( 'Gate' )
109 OMakeSphere_1return = MakeSphere_1.GetOutPort( 'return' )
110 OMakeSphere_1Gate = MakeSphere_1.GetOutPort( 'Gate' )
112 MakeFuse = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' )
113 MakeFuse.SetName( 'MakeFuse' )
114 MakeFuse.SetAuthor( '' )
115 MakeFuse.SetContainer( 'localhost/FactoryServer' )
116 MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' )
117 MakeFuse.Coords( 790 , 148 )
118 IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' )
119 IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' )
120 IMakeFuseGate = MakeFuse.GetInPort( 'Gate' )
121 OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
122 OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' )
124 MakeFuse_1 = GeomGraph.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' )
125 MakeFuse_1.SetName( 'MakeFuse_1' )
126 MakeFuse_1.SetAuthor( '' )
127 MakeFuse_1.SetContainer( 'localhost/FactoryServer' )
128 MakeFuse_1.SetComment( 'MakeFuse from GEOM_Superv' )
129 MakeFuse_1.Coords( 993 , 312 )
130 IMakeFuse_1theShape1 = MakeFuse_1.GetInPort( 'theShape1' )
131 IMakeFuse_1theShape2 = MakeFuse_1.GetInPort( 'theShape2' )
132 IMakeFuse_1Gate = MakeFuse_1.GetInPort( 'Gate' )
133 OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' )
134 OMakeFuse_1Gate = MakeFuse_1.GetOutPort( 'Gate' )
137 LSetStudyIDGateMakeBoxGate = GeomGraph.Link( OSetStudyIDGate , IMakeBoxGate )
139 LSetStudyIDGateMakeSphere_1Gate = GeomGraph.Link( OSetStudyIDGate , IMakeSphere_1Gate )
141 LMakeBoxreturnMakeCopytheOriginal = GeomGraph.Link( OMakeBoxreturn , IMakeCopytheOriginal )
143 LMakeBoxreturnMakeCopy_1theOriginal = GeomGraph.Link( OMakeBoxreturn , IMakeCopy_1theOriginal )
145 LMakeCopyreturnTranslateDXDYDZtheObject = GeomGraph.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject )
147 LTranslateDXDYDZreturnMakeFusetheShape1 = GeomGraph.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 )
149 LMakeCopy_1returnMakeFusetheShape2 = GeomGraph.Link( OMakeCopy_1return , IMakeFusetheShape2 )
151 LMakeSphere_1returnMakeFuse_1theShape2 = GeomGraph.Link( OMakeSphere_1return , IMakeFuse_1theShape2 )
153 LMakeFusereturnMakeFuse_1theShape1 = GeomGraph.Link( OMakeFusereturn , IMakeFuse_1theShape1 )
156 ISetStudyIDtheStudyID.Input( 1 )
157 IMakeBoxtheX1.Input( 0 )
158 IMakeBoxtheY1.Input( 0 )
159 IMakeBoxtheZ1.Input( 0 )
160 IMakeBoxtheX2.Input( 50 )
161 IMakeBoxtheY2.Input( 50 )
162 IMakeBoxtheZ2.Input( 50 )
163 ITranslateDXDYDZtheDX.Input( 10 )
164 ITranslateDXDYDZtheDY.Input( 10 )
165 ITranslateDXDYDZtheDZ.Input( 10 )
166 IMakeSphere_1theX.Input( 0 )
167 IMakeSphere_1theY.Input( 0 )
168 IMakeSphere_1theZ.Input( 0 )
169 IMakeSphere_1theRadius.Input( 12 )
171 # Output Ports of the graph
172 #OMakeFuse_1return = MakeFuse_1.GetOutPort( 'return' )
176 GeomGraph = DefGeomGraph()