From: rnv Date: Mon, 18 Jan 2016 16:00:25 +0000 (+0300) Subject: Porting ParaVis presentations to ParaView-5.0.0 : set correct value of the Lock(Data... X-Git-Tag: V8_0_0b1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b63737184566ed493379724287f2ed708c67a4d;p=modules%2Fparavis.git Porting ParaVis presentations to ParaView-5.0.0 : set correct value of the Lock(Data/Scalar)Range flag. --- diff --git a/src/PV_SWIG/presentations.py b/src/PV_SWIG/presentations.py index 52940a73..c8802d0c 100644 --- a/src/PV_SWIG/presentations.py +++ b/src/PV_SWIG/presentations.py @@ -1115,9 +1115,9 @@ def ScalarMapOnField(proxy, entity, field_name, timestamp_nb, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -1205,9 +1205,9 @@ def CutPlanesOnField(proxy, entity, field_name, timestamp_nb, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -1352,9 +1352,9 @@ def CutLinesOnField(proxy, entity, field_name, timestamp_nb, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -1431,9 +1431,9 @@ def CutSegmentOnField(proxy, entity, field_name, timestamp_nb, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -1553,9 +1553,9 @@ def VectorsOnField(proxy, entity, field_name, timestamp_nb, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -1657,9 +1657,9 @@ def DeformedShapeOnField(proxy, entity, field_name, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -1781,9 +1781,9 @@ def DeformedShapeAndScalarMapOnField(proxy, entity, field_name, data_range = get_data_range(proxy, scalar_field_entity, scalar_field, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -1956,9 +1956,9 @@ def Plot3DOnField(proxy, entity, field_name, timestamp_nb, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -2063,9 +2063,9 @@ def IsoSurfacesOnField(proxy, entity, field_name, timestamp_nb, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -2192,9 +2192,9 @@ def GaussPointsOnField(proxy, entity, field_name, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -2330,9 +2330,9 @@ def GaussPointsOnField1(proxy, entity, field_name, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table)) @@ -2489,9 +2489,9 @@ def StreamLinesOnField(proxy, entity, field_name, timestamp_nb, data_range = get_data_range(proxy, entity, field_name, vector_mode) if hasattr(lookup_table,"LockDataRange"): - lookup_table.LockDataRange = 0 + lookup_table.LockDataRange = 1 elif hasattr(lookup_table,"LockScalarRange"): - lookup_table.LockScalarRange = 0 + lookup_table.LockScalarRange = 1 else: raise RuntimeError("Object %s has no 'LockDataRange' or 'LockScalarRange' attribute!"%(lookup_table))