From 3d7fcd8280d7814c68c13cd5fdc354a3a6648d4f Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Wed, 5 Sep 2018 14:21:13 +0200 Subject: [PATCH] Ready for new Glyph API --- src/Plugins/MEDReader/Test/testMEDReader15.py | 2 +- src/Plugins/MEDReader/Test/testMEDReader21.py | 8 ++++---- src/Plugins/MEDReader/Test/testMEDReader4.py | 6 +++--- src/Plugins/MEDReader/Test/testMEDReader6.py | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Plugins/MEDReader/Test/testMEDReader15.py b/src/Plugins/MEDReader/Test/testMEDReader15.py index 1af02442..4fca70a0 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader15.py +++ b/src/Plugins/MEDReader/Test/testMEDReader15.py @@ -49,7 +49,7 @@ ExpectedEntries=['TS0/zeName/ComSup0/zeName@@][@@P1','TS0/zeName/ComSup0/MESH@ze assert(reader.GetProperty("FieldsTreeInfo")[::2]==ExpectedEntries) # -glyph1=Glyph(Input=reader,GlyphType='Arrow',Scalars='FamilyIdNode',Vectors='zeName',GlyphMode='All Points',ScaleFactor=0.1,GlyphTransform='Transform2') +glyph1=Glyph(Input=reader,GlyphType='Arrow',ScaleArray='FamilyIdNode',OrientationArray='zeName',GlyphMode='All Points',MaximumGlyphSize=0.1,GlyphTransform='Transform2') renderView1=GetActiveViewOrCreate('RenderView') renderView1.InteractionMode='3D' diff --git a/src/Plugins/MEDReader/Test/testMEDReader21.py b/src/Plugins/MEDReader/Test/testMEDReader21.py index 0db51775..187d2720 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader21.py +++ b/src/Plugins/MEDReader/Test/testMEDReader21.py @@ -119,14 +119,14 @@ eLNOMesh1Display.SetScalarBarVisibility(renderView1, False) # create a new 'Glyph' glyph1 = Glyph(Input=eLNOMesh1, GlyphType='Arrow') -glyph1.Scalars = ['POINTS', 'MyField'] -glyph1.Vectors = ['POINTS', 'None'] -glyph1.ScaleFactor = 0.15000000000000002 +glyph1.ScaleArray = ['POINTS', 'MyField'] +glyph1.OrientationArray = ['POINTS', 'No orientation array'] +glyph1.MaximumGlyphSize = 0.15000000000000002 glyph1.GlyphTransform = 'Transform2' # Properties modified on glyph1 glyph1.GlyphType = 'Sphere' -glyph1.ScaleFactor = 0.15 +glyph1.MaximumGlyphSize = 0.15 # show data in view glyph1Display = Show(glyph1, renderView1) diff --git a/src/Plugins/MEDReader/Test/testMEDReader4.py b/src/Plugins/MEDReader/Test/testMEDReader4.py index 59c0948f..bdeb3e95 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader4.py +++ b/src/Plugins/MEDReader/Test/testMEDReader4.py @@ -69,9 +69,9 @@ testMEDReader4_med.AllArrays=['TS0/mesh/ComSup0/f0NoPfl@@][@@P1','TS0/mesh/ComSu #testMEDReader4_med.AllTimeSteps=['0000'] Glyph1=Glyph(Input=testMEDReader4_med,GlyphType='Sphere') -Glyph1.Scalars=['POINTS','f0NoPfl'] -Glyph1.ScaleFactor=0.3 -Glyph1.Vectors=['POINTS', ''] +Glyph1.ScaleArray=['POINTS','f0NoPfl'] +Glyph1.MaximumGlyphSize=0.3 +Glyph1.OrientationArray = ['POINTS', 'No orientation array'] Glyph1.GlyphTransform="Transform2" DataRepresentation1 = Show() diff --git a/src/Plugins/MEDReader/Test/testMEDReader6.py b/src/Plugins/MEDReader/Test/testMEDReader6.py index 4027790c..2aa3a1f8 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader6.py +++ b/src/Plugins/MEDReader/Test/testMEDReader6.py @@ -70,8 +70,8 @@ ELGAfieldToPointGaussian1.SelectSourceArray = ['CELLS','ELGA@0'] Glyph1 = Glyph( Input=ELGAfieldToPointGaussian1, GlyphType="Sphere", GlyphTransform="Transform2" ) Glyph1.GlyphType = "Sphere" -Glyph1.Vectors = ['POINTS', ''] -Glyph1.ScaleFactor = 0.29 +Glyph1.OrientationArray = ['POINTS', 'No orientation array'] +Glyph1.MaximumGlyphSize = 0.29 RenderView1 = GetRenderView() RenderView1.CameraFocalPoint = [1.5, 1.5, 0.0] -- 2.39.2