+# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
+#
+# Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
# Generated python file of Graph GraphSwitch1
-
+#
from SuperV import *
# Graph creation of GraphSwitch1
IsOdd.SetName( 'IsOdd' )
IsOdd.SetAuthor( '' )
IsOdd.SetComment( 'Python function' )
- IsOdd.Coords( 389 , 65 )
+ IsOdd.Coords( 408 , 34 )
IIsOdda = IsOdd.InPort( 'a' , 'long' )
IIsOddGate = IsOdd.GetInPort( 'Gate' )
OIsOdda = IsOdd.OutPort( 'a' , 'long' )
EndOfInitLoop.SetName( 'EndOfInitLoop' )
EndOfInitLoop.SetAuthor( '' )
EndOfInitLoop.SetComment( 'Compute Node' )
- EndOfInitLoop.Coords( 768 , 126 )
+ EndOfInitLoop.Coords( 862 , 156 )
PyEndOfInitLoop = []
EndOfInitLoop.SetPyFunction( '' , PyEndOfInitLoop )
IInitLoopDoLoop = InitLoop.GetInPort( 'DoLoop' )
OInitLoopIndex = InitLoop.GetOutPort( 'Index' )
OInitLoopMin = InitLoop.GetOutPort( 'Min' )
OInitLoopMax = InitLoop.GetOutPort( 'Max' )
+ OInitLoopGate = InitLoop.GetOutPort( 'Gate' )
IEndOfInitLoopDoLoop = EndOfInitLoop.GetInPort( 'DoLoop' )
IEndOfInitLoopIndex = EndOfInitLoop.GetInPort( 'Index' )
IEndOfInitLoopMin = EndOfInitLoop.GetInPort( 'Min' )
EndOfSwitch.SetName( 'EndOfSwitch' )
EndOfSwitch.SetAuthor( '' )
EndOfSwitch.SetComment( 'Compute Node' )
- EndOfSwitch.Coords( 587 , 126 )
+ EndOfSwitch.Coords( 640 , 155 )
PyEndOfSwitch = []
EndOfSwitch.SetPyFunction( '' , PyEndOfSwitch )
IEndOfSwitcha = EndOfSwitch.InPort( 'a' , 'long' )
# Creation of Links
LIsOddaEndOfSwitcha = GraphSwitch1.Link( OIsOdda , IEndOfSwitcha )
- LIsOddaEndOfSwitcha.AddCoord( 1 , 571 , 158 )
- LIsOddaEndOfSwitcha.AddCoord( 2 , 571 , 136 )
LInitLoopIndexSwitcha = GraphSwitch1.Link( OInitLoopIndex , ISwitcha )
LSwitchOddIsOddGate = GraphSwitch1.Link( OSwitchOdd , IIsOddGate )
- LSwitchEvenEndOfSwitchDefault = GraphSwitch1.Link( OSwitchEven , IEndOfSwitchDefault )
-
LSwitchaIsOdda = GraphSwitch1.Link( OSwitcha , IIsOdda )
- LSwitchaIsOdda.AddCoord( 1 , 375 , 136 )
+ LSwitchaIsOdda.AddCoord( 1 , 375 , 105 )
LSwitchaIsOdda.AddCoord( 2 , 375 , 201 )
- LSwitchaEndOfSwitcha = GraphSwitch1.Link( OSwitcha , IEndOfSwitcha )
- LSwitchaEndOfSwitcha.AddCoord( 1 , 571 , 161 )
- LSwitchaEndOfSwitcha.AddCoord( 2 , 570 , 221 )
+ LSwitchDefaultEndOfSwitchDefault = GraphSwitch1.Link( OSwitchDefault , IEndOfSwitchDefault )
LEndOfSwitchaEndOfInitLoopIndex = GraphSwitch1.Link( OEndOfSwitcha , IEndOfInitLoopIndex )
#OEndOfInitLoopIndex = EndOfInitLoop.GetOutPort( 'Index' )
#OEndOfInitLoopMin = EndOfInitLoop.GetOutPort( 'Min' )
#OEndOfInitLoopMax = EndOfInitLoop.GetOutPort( 'Max' )
+ #OSwitchEven = Switch.GetOutPort( 'Even' )
return GraphSwitch1