]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Removing of unused functionality and correction of field name.
authorakl <akl@opencascade.com>
Fri, 21 Mar 2014 09:56:29 +0000 (13:56 +0400)
committerakl <akl@opencascade.com>
Fri, 21 Mar 2014 09:56:29 +0000 (13:56 +0400)
test/VisuPrs/CutLines/G2.py
test/VisuPrs/CutPlanes/G2.py
test/VisuPrs/DeformedShape/F9.py
test/VisuPrs/IsoSurfaces/G2.py
test/VisuPrs/Plot3D/G2.py
test/VisuPrs/ScalarMap/G2.py
test/VisuPrs/Vectors/F9.py

index ebcff0e1f94445f7e1c9b18ace927cebf35ba2e1..417334f9bc4bd1980217d0fd636ffbebe7b8bc8f 100644 (file)
@@ -47,12 +47,8 @@ aView = GetRenderView()
 
 # Create required presentations for the proxy
 # CreatePrsForProxy(aProxy, aView, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete)
-aFieldNames = aProxy.PointArrays.GetData()
-aNbOnNodes = len(aFieldNames)
-aFieldNames.extend(aProxy.CellArrays.GetData())
-aTimeStamps = aProxy.TimestepValues.GetData()
 aFieldEntity = EntityType.NODE
-aFieldName = "MODES_DEPL"
+aFieldName = "MODES___DEPL____________________"
 
 #create Cut Lines presentations for 10 timestamps
 for i in range(1,11):
index cda530327efd3d3f7ccbaaed4aeb707136e5e1bc..c1aafd71008fca0af45bc2ad8c11a9ebd7e06f84 100644 (file)
@@ -47,12 +47,8 @@ aView = GetRenderView()
 
 # Create required presentations for the proxy
 # CreatePrsForProxy(aProxy, aView, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete)
-aFieldNames = aProxy.PointArrays.GetData()
-aNbOnNodes = len(aFieldNames)
-aFieldNames.extend(aProxy.CellArrays.GetData())
-aTimeStamps = aProxy.TimestepValues.GetData()
 aFieldEntity = EntityType.NODE
-aFieldName = "MODES_DEPL"
+aFieldName = "MODES___DEPL____________________"
 
 #create Cut Planes presentations for 10 timestamps
 for i in range(1,11):
index 923ec3a7cf6e23482e4fece1c718b83e4aaf9049..c294bd09ced70a7ba78ae629c73f46749943886e 100644 (file)
@@ -48,12 +48,8 @@ aView = GetRenderView()
 
 # Create required presentations for the proxy
 # CreatePrsForProxy(aProxy, aView, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete)
-aFieldNames = aProxy.PointArrays.GetData()
-aNbOnNodes = len(aFieldNames)
-aFieldNames.extend(aProxy.CellArrays.GetData())
-aTimeStamps = aProxy.TimestepValues.GetData()
 aFieldEntity = EntityType.NODE
-aFieldName = "MODES_DEPL"
+aFieldName = "MODES___DEPL____________________"
 
 #Creation of a set of non-colored and then colored Deformed Shapes, based on time stamps of MODES_DEP field
 for colored in [False,True]:
index 6f932351c88386d966514949424a78e73fa7eaf8..1b69c1aba7e9bccf98f5c0f274c79fc48949fd50 100644 (file)
@@ -47,21 +47,17 @@ aView = GetRenderView()
 
 # Create required presentations for the proxy
 # CreatePrsForProxy(aProxy, aView, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete)
-aFieldNames = aProxy.PointArrays.GetData()
-aNbOnNodes = len(aFieldNames)
-aFieldNames.extend(aProxy.CellArrays.GetData())
-aTimeStamps = aProxy.TimestepValues.GetData()
 aFieldEntity = EntityType.NODE
-aFieldName = "MODES_DEPL"
+aFieldName = "MODES___DEPL____________________"
 
 #create Iso Surfaces presentations for 10 timestamps
 for i in range(1,11):
-    hide_all(aView, True)
+    #hide_all(aView, True)
     aPrs = IsoSurfacesOnField(aProxy, aFieldEntity,aFieldName , i)
     if aPrs is None:
         raise RuntimeError, "Presentation is None!!!"
     #display only current scalar map
-    aPrs.Visibility=1
+    display_only(aPrs, aView)
     reset_view(aView)
     Render(aView)    
     
index 691dc9fbafe8fe5e8d92cb665a14fdc6308a1cf2..327f90774f35633b420c6bebbd96de6d9db52d00 100755 (executable)
@@ -46,12 +46,8 @@ else: print "OK"
 # Get viewScalarMap
 aView = GetRenderView()
 
-aFieldNames = aProxy.PointArrays.GetData()
-aNbOnNodes = len(aFieldNames)
-aFieldNames.extend(aProxy.CellArrays.GetData())
-aTimeStamps = aProxy.TimestepValues.GetData()
 aFieldEntity = EntityType.NODE
-aFieldName = "MODES_DEPL"
+aFieldName = "MODES___DEPL____________________"
 
 #create Plot 3D presentations for 10 timestamps
 for i in range(1,11):
index fbceb5df3cf5e5a9f113332f86c98462084406b6..53de24b32037d935b4d6cf8d844476a7250ffc1d 100644 (file)
@@ -49,10 +49,8 @@ else: print "OK"
 aView = GetRenderView()
 
 
-field_names = proxy.PointArrays.GetData()
-aTimeStamps = proxy.TimestepValues.GetData()
 aFieldEntity = EntityType.NODE
-aFieldName = "MODES_DEPL"
+aFieldName = "MODES___DEPL____________________"
 #create list to store picture files sizes
 sizes=[]
 #create Scalar Map presentations for 10 timestamps
index 57634ffe89d7726f5e9aae5222f56f3f2cd9a623..d2c5ea403faf5f4b4c93f5e0d54be09abf48b2ed 100644 (file)
@@ -48,12 +48,8 @@ aView = GetRenderView()
 
 # Create required presentations for the proxy
 # CreatePrsForProxy(aProxy, aView, thePrsTypeList, thePictureDir, thePictureExt, theIsAutoDelete)
-aFieldNames = aProxy.PointArrays.GetData()
-aNbOnNodes = len(aFieldNames)
-aFieldNames.extend(aProxy.CellArrays.GetData())
-aTimeStamps = aProxy.TimestepValues.GetData()
 aFieldEntity = EntityType.NODE
-aFieldName = "MODES_DEPL"
+aFieldName = "MODES___DEPL____________________"
 
 #Creation of a set of non-colored and then colored Vectors presentations, based on time stamps of MODES_DEP field
 for colored in [False,True]: