Salome HOME
Merge from BR_V5_DEV 17Feb09
[samples/datafiles.git] / Superv / Python / GraphGeomEssaiGates.py
1 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 #  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 #
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.
10 #
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.
15 #
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
19 #
20 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #
22 # Generated python file of Graph aNewDataFlow
23 #
24 from SuperV import *
25
26 # Graph creation of aNewDataFlow
27 def DefaNewDataFlow() :
28     aNewDataFlow = Graph( 'aNewDataFlow' )
29     aNewDataFlow.SetName( 'aNewDataFlow' )
30     aNewDataFlow.SetAuthor( '' )
31     aNewDataFlow.SetComment( '' )
32     aNewDataFlow.Coords( 0 , 0 )
33     
34     # Creation of Factory Nodes
35     
36     SetStudyID = aNewDataFlow.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 , 104 )
42     ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' )
43     ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' )
44     OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' )
45     
46     MakeSphere = aNewDataFlow.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( 198 , 32 )
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' )
59     
60     MakeCopy = aNewDataFlow.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( 390 , 11 )
66     IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' )
67     IMakeCopyGate = MakeCopy.GetInPort( 'Gate' )
68     OMakeCopyreturn = MakeCopy.GetOutPort( 'return' )
69     OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' )
70     
71     MakeCopy_1 = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeCopy' )
72     MakeCopy_1.SetName( 'MakeCopy_1' )
73     MakeCopy_1.SetAuthor( '' )
74     MakeCopy_1.SetContainer( 'localhost/FactoryServer' )
75     MakeCopy_1.SetComment( 'MakeCopy from GEOM_Superv' )
76     MakeCopy_1.Coords( 429 , 177 )
77     IMakeCopy_1theOriginal = MakeCopy_1.GetInPort( 'theOriginal' )
78     IMakeCopy_1Gate = MakeCopy_1.GetInPort( 'Gate' )
79     OMakeCopy_1return = MakeCopy_1.GetOutPort( 'return' )
80     OMakeCopy_1Gate = MakeCopy_1.GetOutPort( 'Gate' )
81     
82     TranslateDXDYDZ = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' )
83     TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' )
84     TranslateDXDYDZ.SetAuthor( '' )
85     TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' )
86     TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' )
87     TranslateDXDYDZ.Coords( 615 , 11 )
88     ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' )
89     ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' )
90     ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' )
91     ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' )
92     ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' )
93     OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' )
94     OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' )
95     
96     MakeFuse = aNewDataFlow.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' )
97     MakeFuse.SetName( 'MakeFuse' )
98     MakeFuse.SetAuthor( '' )
99     MakeFuse.SetContainer( 'localhost/FactoryServer' )
100     MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' )
101     MakeFuse.Coords( 806 , 33 )
102     IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' )
103     IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' )
104     IMakeFuseGate = MakeFuse.GetInPort( 'Gate' )
105     OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
106     OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' )
107     
108     # Creation of Links
109     LSetStudyIDGateMakeSphereGate = aNewDataFlow.Link( OSetStudyIDGate , IMakeSphereGate )
110     
111     LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopytheOriginal )
112     
113     LMakeSpherereturnMakeCopy_1theOriginal = aNewDataFlow.Link( OMakeSpherereturn , IMakeCopy_1theOriginal )
114     
115     LMakeCopyreturnTranslateDXDYDZtheObject = aNewDataFlow.Link( OMakeCopyreturn , ITranslateDXDYDZtheObject )
116     
117     LMakeCopyGateMakeCopy_1Gate = aNewDataFlow.Link( OMakeCopyGate , IMakeCopy_1Gate )
118     LMakeCopyGateMakeCopy_1Gate.AddCoord( 1 , 382 , 174 )
119     LMakeCopyGateMakeCopy_1Gate.AddCoord( 2 , 552 , 147 )
120     
121     LMakeCopy_1returnMakeFusetheShape2 = aNewDataFlow.Link( OMakeCopy_1return , IMakeFusetheShape2 )
122     LMakeCopy_1returnMakeFusetheShape2.AddCoord( 1 , 784 , 199 )
123     
124     LMakeCopy_1GateTranslateDXDYDZGate = aNewDataFlow.Link( OMakeCopy_1Gate , ITranslateDXDYDZGate )
125     
126     LTranslateDXDYDZreturnMakeFusetheShape1 = aNewDataFlow.Link( OTranslateDXDYDZreturn , IMakeFusetheShape1 )
127     
128     LTranslateDXDYDZGateMakeFuseGate = aNewDataFlow.Link( OTranslateDXDYDZGate , IMakeFuseGate )
129     
130     # Input datas
131     ISetStudyIDtheStudyID.Input( 1 )
132     IMakeSpheretheX.Input( 0 )
133     IMakeSpheretheY.Input( 0 )
134     IMakeSpheretheZ.Input( 0 )
135     IMakeSpheretheRadius.Input( 20 )
136     ITranslateDXDYDZtheDX.Input( 10 )
137     ITranslateDXDYDZtheDY.Input( 10 )
138     ITranslateDXDYDZtheDZ.Input( 10 )
139     
140     # Output Ports of the graph
141     #OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
142     return aNewDataFlow
143
144
145 aNewDataFlow = DefaNewDataFlow()