Salome HOME
52008b4866dc42dd971ad0c85371e7dfa813db9d
[samples/datafiles.git] / Superv / Python / NewGraphGeomEssaiGates.py
1 #  Copyright (C) 2007-2011  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_1
23 #
24 from SuperV import *
25
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 )
33     
34     # Creation of Factory Nodes
35     
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' )
45     
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' )
59     
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' )
70     
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' )
84     
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' )
96     
97     # Creation of Links
98     LSetStudyIDGateMakeSphereGate = aNewDataFlow_1.Link( OSetStudyIDGate , IMakeSphereGate )
99     
100     LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow_1.Link( OMakeSpherereturn , IMakeCopytheOriginal )
101     
102     LMakeSpherereturnTranslateDXDYDZtheObject = aNewDataFlow_1.Link( OMakeSpherereturn , ITranslateDXDYDZtheObject )
103     
104     LMakeSphereGateMakeCopyGate = aNewDataFlow_1.Link( OMakeSphereGate , IMakeCopyGate )
105     
106     LMakeCopyreturnMakeFusetheShape1 = aNewDataFlow_1.Link( OMakeCopyreturn , IMakeFusetheShape1 )
107     
108     LMakeCopyGateTranslateDXDYDZGate = aNewDataFlow_1.Link( OMakeCopyGate , ITranslateDXDYDZGate )
109     LMakeCopyGateTranslateDXDYDZGate.AddCoord( 1 , 390 , 352 )
110     LMakeCopyGateTranslateDXDYDZGate.AddCoord( 2 , 618 , 107 )
111     
112     LTranslateDXDYDZreturnMakeFusetheShape2 = aNewDataFlow_1.Link( OTranslateDXDYDZreturn , IMakeFusetheShape2 )
113     
114     LTranslateDXDYDZGateMakeFuseGate = aNewDataFlow_1.Link( OTranslateDXDYDZGate , IMakeFuseGate )
115     
116     # Input datas
117     ISetStudyIDtheStudyID.Input( 1 )
118     IMakeSpheretheX.Input( 0 )
119     IMakeSpheretheY.Input( 0 )
120     IMakeSpheretheZ.Input( 0 )
121     IMakeSpheretheRadius.Input( 50 )
122     ITranslateDXDYDZtheDX.Input( 80 )
123     ITranslateDXDYDZtheDY.Input( 0 )
124     ITranslateDXDYDZtheDZ.Input( 0 )
125     
126     # Output Ports of the graph
127     #OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
128     return aNewDataFlow_1
129
130
131 aNewDataFlow_1 = DefaNewDataFlow_1()