Salome HOME
Copyrights update 2015.
[samples/datafiles.git] / Superv / Python / GraphAdd.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 GraphAdd
24 #
25 from SuperV import *
26
27 # Graph creation of GraphAdd
28 def DefGraphAdd() :
29     GraphAdd = Graph( 'GraphAdd' )
30     GraphAdd.SetName( 'GraphAdd' )
31     GraphAdd.SetAuthor( '' )
32     GraphAdd.SetComment( '' )
33     GraphAdd.Coords( 0 , 0 )
34     
35     # Creation of Factory Nodes
36     
37     Add = GraphAdd.FNode( 'AddComponent' , 'AddComponent' , 'Add' )
38     Add.SetName( 'Add' )
39     Add.SetAuthor( '' )
40     Add.SetContainer( 'localhost/FactoryServer' )
41     Add.SetComment( 'Add from AddComponent' )
42     Add.Coords( 55 , 61 )
43     IAddx = Add.GetInPort( 'x' )
44     IAddy = Add.GetInPort( 'y' )
45     IAddGate = Add.GetInPort( 'Gate' )
46     OAddFuncValue = Add.GetOutPort( 'FuncValue' )
47     OAddz = Add.GetOutPort( 'z' )
48     OAddGate = Add.GetOutPort( 'Gate' )
49     
50     # Input Ports of the graph
51     #IAddx = Add.GetInPort( 'x' )
52     #IAddy = Add.GetInPort( 'y' )
53     
54     # Output Ports of the graph
55     #OAddFuncValue = Add.GetOutPort( 'FuncValue' )
56     #OAddz = Add.GetOutPort( 'z' )
57     return GraphAdd
58
59
60 GraphAdd = DefGraphAdd()