From d0e367f0103f27e80bc3b807cad2d7e01e8e3246 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 6 Dec 2005 13:33:51 +0000 Subject: [PATCH] To avoid implicit call of SetIdMapper in ShallowCopy functionality of VISU_PipeLine --- src/OBJECT/VISU_GaussPtsAct.cxx | 1 + src/VISUGUI/VisuGUI_Plot3DDlg.cxx | 1 + src/VISU_I/VISU_GaussPoints_i.cc | 1 + src/VISU_I/VISU_Vectors_i.cc | 1 + 4 files changed, 4 insertions(+) diff --git a/src/OBJECT/VISU_GaussPtsAct.cxx b/src/OBJECT/VISU_GaussPtsAct.cxx index c0c1e5c8..8ad1af37 100644 --- a/src/OBJECT/VISU_GaussPtsAct.cxx +++ b/src/OBJECT/VISU_GaussPtsAct.cxx @@ -340,6 +340,7 @@ namespace CreatePipeLine(VISU_GaussPointsPL* thePipeLine) { VISU_GaussPointsPL* aPipeLine = VISU_GaussPointsPL::New(); + aPipeLine->SetGaussPtsIDMapper(thePipeLine->GetGaussPtsIDMapper()); aPipeLine->ShallowCopy(thePipeLine); aPipeLine->Update(); return aPipeLine; diff --git a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx index 78cbcec2..31024349 100644 --- a/src/VISUGUI/VisuGUI_Plot3DDlg.cxx +++ b/src/VISUGUI/VisuGUI_Plot3DDlg.cxx @@ -254,6 +254,7 @@ void VisuGUI_Plot3DPane::storePrsParams() if (!myPipeCopy) myPipeCopy = VISU_Plot3DPL::New(); if (myPrs) { + myPipeCopy->SetIDMapper(myPrs->GetIDMapper()); myPipeCopy->ShallowCopy(myPrs->GetPL()); storeToPrsObject(myPrs); } diff --git a/src/VISU_I/VISU_GaussPoints_i.cc b/src/VISU_I/VISU_GaussPoints_i.cc index 96b02726..64a3eed9 100644 --- a/src/VISU_I/VISU_GaussPoints_i.cc +++ b/src/VISU_I/VISU_GaussPoints_i.cc @@ -545,6 +545,7 @@ VISU::GaussPoints_i // We create a new PipeLine instance in order to provide // different representations for different actors (basic and segmented) VISU_GaussPointsPL* aPipeLine = VISU_GaussPointsPL::New(); + aPipeLine->SetGaussPtsIDMapper(myGaussPointsPL->GetGaussPtsIDMapper()); aPipeLine->ShallowCopy(myPipeLine); aPipeLine->Update(); return aPipeLine; diff --git a/src/VISU_I/VISU_Vectors_i.cc b/src/VISU_I/VISU_Vectors_i.cc index 26218a0b..78c8e393 100644 --- a/src/VISU_I/VISU_Vectors_i.cc +++ b/src/VISU_I/VISU_Vectors_i.cc @@ -172,6 +172,7 @@ void VISU::Vectors_i::DoHook(){ VISU_PipeLine* VISU::Vectors_i::GetPipeLine(){ VISU_PipeLine* aPipeLine = VISU_VectorsPL::New(); + aPipeLine->SetIDMapper(myPipeLine->GetIDMapper()); aPipeLine->ShallowCopy(myPipeLine); aPipeLine->Update(); return aPipeLine; -- 2.39.2