X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FTest%2FtestMEDReader21.py;h=6a85a431aba084990558c1101d9a33a91800449b;hb=b6acef3249a295f4fb9683766afb6a4dfbceeef6;hp=1d9aa0b79b447fbb0ea224c003551d93b0115b19;hpb=4095225705684389c98367e7ba154be482dfd468;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/Test/testMEDReader21.py b/src/Plugins/MEDReader/Test/testMEDReader21.py index 1d9aa0b7..6a85a431 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader21.py +++ b/src/Plugins/MEDReader/Test/testMEDReader21.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2015-2016 CEA/DEN, EDF R&D +# Copyright (C) 2015-2017 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -67,8 +67,8 @@ renderView1.CameraViewUp = [1.0, 1.0, 0.0] # set scalar coloring ColorBy(testTotomedDisplay, ('FIELD', 'vtkBlockColors')) -# show color bar/color legend -testTotomedDisplay.SetScalarBarVisibility(renderView1, True) +# hide color bar/color legend +testTotomedDisplay.SetScalarBarVisibility(renderView1, False) # get color transfer function/color map for 'vtkBlockColors' vtkBlockColorsLUT = GetColorTransferFunction('vtkBlockColors') @@ -77,7 +77,7 @@ vtkBlockColorsLUT = GetColorTransferFunction('vtkBlockColors') vtkBlockColorsPWF = GetOpacityTransferFunction('vtkBlockColors') # create a new 'ELNO Mesh' -eLNOMesh1 = ELNOMesh(Input=testTotomed) +eLNOMesh1 = ELNOfieldToSurface(Input=testTotomed) # Properties modified on eLNOMesh1 eLNOMesh1.ShrinkFactor = 0.5 # <- test is here !!!!!!!! @@ -135,8 +135,8 @@ glyph1Display.ColorArrayName = ['POINTS', 'MyField'] glyph1Display.LookupTable = myFieldLUT glyph1Display.GlyphType = 'Arrow' -# show color bar/color legend -glyph1Display.SetScalarBarVisibility(renderView1, True) +# hide color bar/color legend +glyph1Display.SetScalarBarVisibility(renderView1, False) #### saving camera placements for all active views @@ -159,6 +159,5 @@ except: baseline_file = os.path.join(baselinePath, imgName) import vtk.test.Testing vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() -vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=25) +vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=1) vtk.test.Testing.interact() -