-glyph1Display=Show(glyph1,renderView1)
-glyph1Display.ColorArrayName = ['POINTS', 'FamilyIdNode']
-glyph1Display.LookupTable = zeNameLUT
-glyph1Display.OpacityArray = [None, '']
-glyph1Display.RadiusArray = [None, '']
-glyph1Display.RadiusRange = [-0.0707106813788414, 1.0099999904632568]
-glyph1Display.ConstantRadius = 1.0099999904632568
-glyph1Display.PointSpriteDefaultsInitialized = 1
-glyph1Display.SelectInputVectors = ['POINTS', 'GlyphVector']
-glyph1Display.WriteLog = ''
-# show color bar/color legend
-glyph1Display.SetScalarBarVisibility(renderView1, True)
-# set scalar coloring
-ColorBy(glyph1Display, ('POINTS', 'zeName'))
-# rescale color and/or opacity maps used to include current data range
-glyph1Display.RescaleTransferFunctionToDataRange(True)
-# show color bar/color legend
-glyph1Display.SetScalarBarVisibility(renderView1, True)
-#
-Render()
-WriteImage(outImgName)
+ glyph1Display=Show(glyph1,renderView1)
+ glyph1Display.ColorArrayName = ['POINTS', 'FamilyIdNode']
+ glyph1Display.LookupTable = zeNameLUT
+ # set scalar coloring
+ ColorBy(glyph1Display, ('POINTS', 'zeName'))
+ # rescale color and/or opacity maps used to include current data range
+ glyph1Display.RescaleTransferFunctionToDataRange(True)
+ # do not show color bar/color legend
+ glyph1Display.SetScalarBarVisibility(renderView1, False)
+ #
+ renderView1.ViewSize =[300,300]
+ renderView1.GetRenderWindow().DoubleBufferOff()
+ Render()
+
+ # compare with baseline image
+ try:
+ baselineIndex = sys.argv.index('-B')+1
+ baselinePath = sys.argv[baselineIndex]
+ except:
+ print("Could not get baseline directory. Test failed.")
+ exit(1)
+ baseline_file = os.path.join(baselinePath, "testMEDReader15.png")
+ import vtk.test.Testing
+ from vtk.util.misc import vtkGetTempDir
+ vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir()
+ vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file,
+ threshold=1)
+ vtk.test.Testing.interact()