From: apo Date: Tue, 6 Dec 2005 13:31:23 +0000 (+0000) Subject: To avoid implicit call of SetIdMapper in ShallowCopy functionality X-Git-Tag: TG-D5-38-2003_D2005-20-12~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=974146924ea7ca9ad509f2fa20fdf64207eba266;p=modules%2Fvisu.git To avoid implicit call of SetIdMapper in ShallowCopy functionality --- 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();