-# Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+# -*- coding: iso-8859-1 -*-
+# Copyright (C) 2007-2012 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
+# 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.
+# 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.
#
-# 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.
+# 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
+# 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
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+
import VISU
import SALOMEDS
+import salome
from visu_gui import *
from time import sleep
DELAY = 2
+myVisu.SetCurrentStudy(salome.myStudy)
+
myViewManager = myVisu.GetViewManager()
################################################
print "myView5 = myViewManager.Create3DView()"
myView5.SetTitle("The window to display Cut Lines")
-myView5.SplitTop()
-print "myView5.SplitTop()"
+myView5.SplitBottom()
+print "myView5.SplitBottom()"
aColor = SALOMEDS.Color(0.7,0.7,0.7)
print "aColor = SALOMEDS.Color(0.7,0.7,0.7)"
################################################
-myView6.OnTop()
-print "myView6.OnTop()"
-
-sleep(DELAY)
-
myView4.Attract(myView2)
print "myView4.Attract(myView2)"
sleep(DELAY)
-myView4.SetRelativePositionInSplitter(0.7)
-print "myView4.SetRelativePositionInSplitter(0.7)"
-
-sleep(DELAY)
-
-myView4.SetRelativePositionX(0.2)
-print "myView4.SetRelativePositionX(0.7)"
+myView7.OnTop()
+print "myView6.OnTop()"
sleep(DELAY)