]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Implementation SameAs for Gauss Points presentation
authorapo <apo@opencascade.com>
Fri, 1 Dec 2006 13:44:14 +0000 (13:44 +0000)
committerapo <apo@opencascade.com>
Fri, 1 Dec 2006 13:44:14 +0000 (13:44 +0000)
src/VISU_I/VISU_GaussPoints_i.cc

index 9267e0ab4aee7e5f1f9b673fae010781072ae517..24d3faee07d1e4937df2bbcdabb2afc8d99b9196 100644 (file)
@@ -224,24 +224,36 @@ VISU::GaussPoints_i
 
   if(const GaussPoints_i* aPrs3d = dynamic_cast<const GaussPoints_i*>(theOrigin)){
     GaussPoints_i* anOrigin = const_cast<GaussPoints_i*>(aPrs3d);
+    // To restore the range after shallow copy of the pipeline mapper
+    // in the parent class
+    SetSourceRange(); 
+
     SetIsActiveLocalScalarBar(anOrigin->GetIsActiveLocalScalarBar());
     SetIsDispGlobalScalarBar(anOrigin->GetIsDispGlobalScalarBar());
+
     SetBiColor(anOrigin->GetBiColor());
+    SetSpacing(anOrigin->GetSpacing());
+
     SetPrimitiveType(anOrigin->GetPrimitiveType());
     SetClamp(anOrigin->GetClamp());
     SetMinSize(anOrigin->GetMinSize());
     SetMaxSize(anOrigin->GetMaxSize());
     SetGeomSize(anOrigin->GetGeomSize());
+
     SetMagnification(anOrigin->GetMagnification());
     SetMagnificationIncrement(anOrigin->GetMagnificationIncrement());
+
     SetIsDeformed(anOrigin->GetIsDeformed());
     SetScaleFactor(anOrigin->GetScaleFactor());
+
     SetFaceLimit(anOrigin->GetFaceLimit());
-    SetIsColored(anOrigin->GetIsColored());
+
     SetIsColored(anOrigin->GetIsColored());
     SetColor(anOrigin->GetColor());
+
     SetAlphaThreshold(anOrigin->GetAlphaThreshold());
     SetTextures(anOrigin->GetMainTexture(), anOrigin->GetAlphaTexture());
+
     SetResolution(anOrigin->GetResolution());
   }
 }