]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To avoid implicit call of SetIdMapper in ShallowCopy functionality
authorapo <apo@opencascade.com>
Tue, 6 Dec 2005 13:31:23 +0000 (13:31 +0000)
committerapo <apo@opencascade.com>
Tue, 6 Dec 2005 13:31:23 +0000 (13:31 +0000)
src/PIPELINE/VISU_GaussPointsPL.cxx
src/PIPELINE/VISU_PipeLine.cxx

index c0a86dc9157a610a69c05c9fbd7d65970bb22e5c..db7fdde9a3d92c97821f54b06cdeb266c62b4bf2 100644 (file)
@@ -132,11 +132,9 @@ VISU_GaussPointsPL
 ::ShallowCopy(VISU_PipeLine *thePipeLine)
 {
   if(VISU_GaussPointsPL *aPipeLine = dynamic_cast<VISU_GaussPointsPL*>(thePipeLine)){
-    SetGaussPtsIDMapper(aPipeLine->GetGaussPtsIDMapper());
-    
+    // To restore mapper input from pipeline
     vtkPolyData* aDatsSet = myPSMapper->GetInput();
     myPSMapper->ShallowCopy(aPipeLine->GetPSMapper());
-    // To restore mapper input from pipeline
     myPSMapper->SetInput(aDatsSet);
 
     SetPrimitiveType(aPipeLine->GetPrimitiveType());
index e6d40ae343e6ff114a7c91631e4d35de3e4cb8c5..69958b267860425b22359ce4e9d430ecea5db012 100644 (file)
@@ -103,14 +103,11 @@ void
 VISU_PipeLine
 ::ShallowCopy(VISU_PipeLine *thePipeLine)
 {
-  SetIDMapper(thePipeLine->GetIDMapper());
-
   SetImplicitFunction(thePipeLine->GetImplicitFunction());
 
+  // To restore mapper input from pipeline
   vtkDataSet* aDatsSet = myMapper->GetInput();
   GetMapper()->ShallowCopy(thePipeLine->GetMapper());
-
-  // To restore mapper input from pipeline
   myMapper->SetInput(aDatsSet);
 
   Build();