Salome HOME
0022763: [EDF] Shape processing
[samples/datafiles.git] / Superv / Python / NewGraphGeomEssai.py
1 # Copyright (C) 2007-2015  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, or (at your option) any later version.
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
23 # Generated python file of Graph aNewDataFlow_1
24 #
25 from SuperV import *
26
27 # Graph creation of aNewDataFlow_1
28 def DefaNewDataFlow_1() :
29     aNewDataFlow_1 = Graph( 'aNewDataFlow_1' )
30     aNewDataFlow_1.SetName( 'aNewDataFlow_1' )
31     aNewDataFlow_1.SetAuthor( '' )
32     aNewDataFlow_1.SetComment( '' )
33     aNewDataFlow_1.Coords( 0 , 0 )
34     
35     # Creation of Factory Nodes
36     
37     SetStudyID = aNewDataFlow_1.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( 9 , 118 )
43     ISetStudyIDtheStudyID = SetStudyID.GetInPort( 'theStudyID' )
44     ISetStudyIDGate = SetStudyID.GetInPort( 'Gate' )
45     OSetStudyIDGate = SetStudyID.GetOutPort( 'Gate' )
46     
47     MakeSphere = aNewDataFlow_1.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( 202 , 58 )
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' )
60     
61     MakeCopy = aNewDataFlow_1.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( 425 , 11 )
67     IMakeCopytheOriginal = MakeCopy.GetInPort( 'theOriginal' )
68     IMakeCopyGate = MakeCopy.GetInPort( 'Gate' )
69     OMakeCopyreturn = MakeCopy.GetOutPort( 'return' )
70     OMakeCopyGate = MakeCopy.GetOutPort( 'Gate' )
71     
72     TranslateDXDYDZ = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'TranslateDXDYDZ' )
73     TranslateDXDYDZ.SetName( 'TranslateDXDYDZ' )
74     TranslateDXDYDZ.SetAuthor( '' )
75     TranslateDXDYDZ.SetContainer( 'localhost/FactoryServer' )
76     TranslateDXDYDZ.SetComment( 'TranslateDXDYDZ from GEOM_Superv' )
77     TranslateDXDYDZ.Coords( 428 , 197 )
78     ITranslateDXDYDZtheObject = TranslateDXDYDZ.GetInPort( 'theObject' )
79     ITranslateDXDYDZtheDX = TranslateDXDYDZ.GetInPort( 'theDX' )
80     ITranslateDXDYDZtheDY = TranslateDXDYDZ.GetInPort( 'theDY' )
81     ITranslateDXDYDZtheDZ = TranslateDXDYDZ.GetInPort( 'theDZ' )
82     ITranslateDXDYDZGate = TranslateDXDYDZ.GetInPort( 'Gate' )
83     OTranslateDXDYDZreturn = TranslateDXDYDZ.GetOutPort( 'return' )
84     OTranslateDXDYDZGate = TranslateDXDYDZ.GetOutPort( 'Gate' )
85     
86     MakeFuse = aNewDataFlow_1.FNode( 'GEOM_Superv' , 'GEOM_Superv' , 'MakeFuse' )
87     MakeFuse.SetName( 'MakeFuse' )
88     MakeFuse.SetAuthor( '' )
89     MakeFuse.SetContainer( 'localhost/FactoryServer' )
90     MakeFuse.SetComment( 'MakeFuse from GEOM_Superv' )
91     MakeFuse.Coords( 651 , 103 )
92     IMakeFusetheShape1 = MakeFuse.GetInPort( 'theShape1' )
93     IMakeFusetheShape2 = MakeFuse.GetInPort( 'theShape2' )
94     IMakeFuseGate = MakeFuse.GetInPort( 'Gate' )
95     OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
96     OMakeFuseGate = MakeFuse.GetOutPort( 'Gate' )
97     
98     # Creation of Links
99     LSetStudyIDGateMakeSphereGate = aNewDataFlow_1.Link( OSetStudyIDGate , IMakeSphereGate )
100     
101     LMakeSpherereturnMakeCopytheOriginal = aNewDataFlow_1.Link( OMakeSpherereturn , IMakeCopytheOriginal )
102     
103     LMakeSpherereturnTranslateDXDYDZtheObject = aNewDataFlow_1.Link( OMakeSpherereturn , ITranslateDXDYDZtheObject )
104     
105     LMakeCopyreturnMakeFusetheShape1 = aNewDataFlow_1.Link( OMakeCopyreturn , IMakeFusetheShape1 )
106     
107     LTranslateDXDYDZreturnMakeFusetheShape2 = aNewDataFlow_1.Link( OTranslateDXDYDZreturn , IMakeFusetheShape2 )
108     
109     # Input datas
110     ISetStudyIDtheStudyID.Input( 1 )
111     IMakeSpheretheX.Input( 0 )
112     IMakeSpheretheY.Input( 0 )
113     IMakeSpheretheZ.Input( 0 )
114     IMakeSpheretheRadius.Input( 50 )
115     ITranslateDXDYDZtheDX.Input( 80 )
116     ITranslateDXDYDZtheDY.Input( 0 )
117     ITranslateDXDYDZtheDZ.Input( 0 )
118     
119     # Output Ports of the graph
120     #OMakeFusereturn = MakeFuse.GetOutPort( 'return' )
121     return aNewDataFlow_1
122
123
124 aNewDataFlow_1 = DefaNewDataFlow_1()