]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Moving of unexistent 'Shading' property to 'Interpolation' one.
authorakl <akl@opencascade.com>
Wed, 26 Mar 2014 14:02:54 +0000 (18:02 +0400)
committerakl <akl@opencascade.com>
Wed, 26 Mar 2014 14:02:54 +0000 (18:02 +0400)
test/VisuPrs/3D_viewer/A1.py
test/VisuPrs/3D_viewer/A2.py
test/VisuPrs/3D_viewer/A3.py
test/VisuPrs/3D_viewer/A4.py
test/VisuPrs/3D_viewer/A5.py
test/VisuPrs/3D_viewer/A6.py
test/VisuPrs/3D_viewer/A7.py
test/VisuPrs/3D_viewer/A8.py
test/VisuPrs/3D_viewer/A9.py
test/VisuPrs/3D_viewer/B0.py

index 3591563f7935f9f60565f33862fcddbc12d21882..1bd3e02ee799eeae3d27fad6bb902c45c72e8bbe 100644 (file)
@@ -57,7 +57,7 @@ else:
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
 RepresentationType.SURFACE, RepresentationType.VOLUME]
 shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
 linewidths = [1.0, 3.0, 10.0]
 compare_prec = 0.00001
@@ -67,7 +67,7 @@ field_name = 'VITESSE'
 # Get view
 my_view = GetRenderView()
 
-print "\nCreating plot3d.......",
+print "\nCreating plot3d......."
 plot3d = Plot3DOnField(proxy, EntityType.NODE, field_name, 1)
 if plot3d is None:
     raise RuntimeError("Error!!! Presentation wasn't created...")
@@ -90,7 +90,7 @@ for reprCode in represents:
 
     for sha in shadings:
         setShaded(my_view, sha)
-        call_and_check(plot3d, "Shading", sha, 1)
+        call_and_check(plot3d, "Interpolation", sha, 1)
         Render(my_view)
 
         for opa in opacities:
index 447cda5aa5b4185b1cd31096003d1c225e85fecb..aeded9c6dd330ac7934d6e90812f40f9b2cff944 100644 (file)
@@ -57,7 +57,7 @@ else:
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
 RepresentationType.SURFACE, RepresentationType.VOLUME]
 shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
 linewidths = [1.0, 3.0, 10.0]
 compare_prec = 0.00001
@@ -87,7 +87,7 @@ for reprCode in represents:
         call_and_check(vectors, "Representation", repr, 1)
 
         for sha in shadings:
-            call_and_check(vectors, "Shading", sha, 1)
+            call_and_check(vectors, "Interpolation", sha, 1)
             setShaded(my_view, sha)
             Render(my_view)
             time.sleep(1)
index 1dbceb50b135bc61ae96a6086c2a27ae6b9a34df..c78194189b761a1d8c9d0b732d4a985fca079401 100644 (file)
@@ -57,7 +57,7 @@ else:
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
 RepresentationType.SURFACE, RepresentationType.VOLUME]
 shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
 linewidths = [1.0, 3.0, 10.0]
 compare_prec = 0.00001
@@ -97,7 +97,7 @@ for reprCode in represents:
 
         for sha in shadings:
             setShaded(my_view, sha)
-            call_and_check(stream_lines, "Shading", sha, 1)
+            call_and_check(stream_lines, "Interpolation", sha, 1)
             Render(my_view)
             time.sleep(1)
 
index d464806c249fa4dfac2a907e8712d89b29613716..9d1c95e025969447d2058b95672967f4b895ec53 100644 (file)
@@ -56,7 +56,7 @@ else:
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
 RepresentationType.SURFACE, RepresentationType.VOLUME]
 shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
 linewidths = [1.0, 3.0, 10.0]
 compare_prec = 0.00001
@@ -86,7 +86,7 @@ for reprCode in represents:
 
     for sha in shadings:
         setShaded(my_view, sha)
-        call_and_check(iso_surf, "Shading", sha, 1)
+        call_and_check(iso_surf, "Interpolation", sha, 1)
         Render(my_view)
 
         for opa in opacities:
index 286418b7e7b56cc4e6ad67674af81697a21b4bda..4592e8e1edef45160acacce01577e43b4fdda009 100644 (file)
@@ -57,7 +57,7 @@ else:
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
 RepresentationType.SURFACE, RepresentationType.VOLUME]
 shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
 linewidths = [1.0, 3.0, 10.0]
 compare_prec = 0.00001
@@ -105,7 +105,7 @@ for reprCode in represents:
 
         for sha in shadings:
             setShaded(my_view, sha)
-            call_and_check(shape_to_show, "Shading", sha, 1)
+            call_and_check(shape_to_show, "Interpolation", sha, 1)
             Render(my_view)
 
             for opa in opacities:
index 1aec3631aa09a6d13055e7b592dc7975ed982371..2c8f3024f542f39df2487c579c360e63def7a36c 100644 (file)
@@ -106,7 +106,7 @@ for reprCode in represents:
 
         for sha in shadings:
             setShaded(my_view, sha)
-            call_and_check(shape_to_show, "Shading", sha, 1)
+            call_and_check(shape_to_show, "Interpolation", sha, 1)
             Render(my_view)
 
             for opa in opacities:
index 59fe120b31a042bb8e64c6254dc3bfc42f0b1082..4a11afaa6c90f0ca75d6a6a491cb61fdf66443f7 100644 (file)
@@ -56,7 +56,7 @@ else:
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
 RepresentationType.SURFACE, RepresentationType.VOLUME]
 shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
 linewidths = [1.0, 3.0, 10.0]
 compare_prec = 0.00001
@@ -87,7 +87,7 @@ for reprCode in represents:
 
         for sha in shadings:
             setShaded(my_view, sha)
-            call_and_check(cut_planes, "Shading", sha, 1)
+            call_and_check(cut_planes, "Interpolation", sha, 1)
             Render(my_view)
 
             for opa in opacities:
index a6e19b9f9550fd4c734b2cbc39fd43ef590d0a07..f27ff1a645ed88f98611f4eab321fd2c5cd4b8d5 100644 (file)
@@ -56,7 +56,7 @@ else:
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
 RepresentationType.SURFACE, RepresentationType.VOLUME]
 shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
 linewidths = [1.0, 3.0, 10.0]
 compare_prec = 0.00001
@@ -90,7 +90,7 @@ for reprCode in represents:
 
         for sha in shadings:
             setShaded(my_view, sha)
-            call_and_check(cut_lines, "Shading", sha, 1)
+            call_and_check(cut_lines, "Interpolation", sha, 1)
             Render(my_view)
 
             for opa in opacities:
index 3a090f18e0b9be9aa9421ad2cd5062215352e66d..2ee129217dcb453e6eb2a9515545dac821a7b399 100644 (file)
@@ -48,7 +48,7 @@ def check_value(prs, property_name, value, do_raise=1, compare_toler=-1.0):
 
 def check_all_params(prs, pres_type,  shad, opac, lwid):
     err = check_value(prs, "Representation", pres_type, 0, -1.0)
-    err = err + check_value(prs, "Shading", shad, 0, -1.0)
+    err = err + check_value(prs, "Interpolation", shad, 0, -1.0)
     err = err + check_value(prs, "Opacity", opac, 0, compare_prec)
     err = err + check_value(prs, "LineWidth", lwid,  0, compare_prec)
     return err
@@ -115,7 +115,7 @@ Render(my_view)
 
 shape_to_show = shrinked_scalar_map
 setShaded(my_view, 1)
-call_and_check(shape_to_show, "Shading", 1)
+call_and_check(shape_to_show, "Interpolation", "Gouraud")
 Render(my_view)
 call_and_check(shape_to_show, "Opacity", 0.8, 1, compare_prec)
 call_and_check(shape_to_show, "LineWidth", 5.0,  1, compare_prec)
@@ -160,8 +160,8 @@ process_prs_for_test(shape_to_show, my_view, pic_name)
 err = err + check_all_params(shape_to_show,
 RepresentationType.get_name(RepresentationType.SURFACE), 1, 0.8, 5.0)
 
-call_and_check(shape_to_show, "Shading", 0)
-call_and_check(shape_to_show, "Shading", 1)
+call_and_check(shape_to_show, "Interpolation", "Flat")
+call_and_check(shape_to_show, "Interpolation", "Gouraud")
 
 time.sleep(1)
 
@@ -191,7 +191,7 @@ RepresentationType.get_name(RepresentationType.SURFACE), 1, 0.8, 5.0)
 # Reset
 ##call_and_check(shape_to_show, "Shrinked", 0, "Shrinked")
 setShaded(my_view, 0)
-call_and_check(shape_to_show, "Shading", 0,)
+call_and_check(shape_to_show, "Interpolation", "Flat",)
 Render(my_view)
 call_and_check(shape_to_show, "Opacity", 1.0, 1, compare_prec)
 call_and_check(shape_to_show, "LineWidth", 1.0, 1, compare_prec)
@@ -216,7 +216,7 @@ shrinked_scalar_map.Visibility = 1
 shape_to_show = shrinked_scalar_map
 
 setShaded(my_view, 1)
-call_and_check(shape_to_show, "Shading", 1)
+call_and_check(shape_to_show, "Interpolation", "Gouraud")
 Render(my_view)
 call_and_check(shape_to_show, "Opacity", 0.8, 1, compare_prec)
 call_and_check(shape_to_show, "LineWidth", 5.0, 1, compare_prec)
@@ -258,8 +258,8 @@ process_prs_for_test(shrinked_scalar_map, my_view, pic_name)
 err = err + check_all_params(shape_to_show,
 RepresentationType.get_name(RepresentationType.WIREFRAME), 1, 0.8, 5.0)
 
-call_and_check(shape_to_show, "Shading", 0)
-call_and_check(shape_to_show, "Shading", 1)
+call_and_check(shape_to_show, "Interpolation", "Flat")
+call_and_check(shape_to_show, "Interpolation", "Gouraud")
 
 time.sleep(1)
 # save picture in file
index 100e89eb91cbc01efd3bf213d22cf95c40d1a043..b61a74b6630eee5e08502c6be6ba14045ddf5e7d 100644 (file)
@@ -57,7 +57,7 @@ else:
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,\
 RepresentationType.SURFACE, RepresentationType.VOLUME]
 shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
 linewidths = [1.0, 3.0, 10.0]
 compare_prec = 0.00001
@@ -107,7 +107,7 @@ for reprCode in represents:
 
         for sha in shadings:
             setShaded(my_view, sha)
-            call_and_check(shape_to_show, "Shading", sha, 1)
+            call_and_check(shape_to_show, "Interpolation", sha, 1)
             Render(my_view)
 
             for opa in opacities: