From 974146924ea7ca9ad509f2fa20fdf64207eba266 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 6 Dec 2005 13:31:23 +0000 Subject: [PATCH] To avoid implicit call of SetIdMapper in ShallowCopy functionality --- src/PIPELINE/VISU_GaussPointsPL.cxx | 4 +--- src/PIPELINE/VISU_PipeLine.cxx | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/PIPELINE/VISU_GaussPointsPL.cxx b/src/PIPELINE/VISU_GaussPointsPL.cxx index c0a86dc9..db7fdde9 100644 --- a/src/PIPELINE/VISU_GaussPointsPL.cxx +++ b/src/PIPELINE/VISU_GaussPointsPL.cxx @@ -132,11 +132,9 @@ VISU_GaussPointsPL ::ShallowCopy(VISU_PipeLine *thePipeLine) { if(VISU_GaussPointsPL *aPipeLine = dynamic_cast(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()); diff --git a/src/PIPELINE/VISU_PipeLine.cxx b/src/PIPELINE/VISU_PipeLine.cxx index e6d40ae3..69958b26 100644 --- a/src/PIPELINE/VISU_PipeLine.cxx +++ b/src/PIPELINE/VISU_PipeLine.cxx @@ -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(); -- 2.39.2