From 10bc204da48dc4076527a84d0586585cdf32e222 Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 15 Jan 2007 09:56:45 +0000 Subject: [PATCH] 1. We need not call the Superclass::DoShallowCopy(thePipeLine, theIsCopyInput) in the overriding DoShallowCopy to initialize the pipeline intput first. 2. It is impossible retrive UnstructuredGrid from PassFilter if it initlized with PolyData --- src/PIPELINE/VISU_GaussPointsPL.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PIPELINE/VISU_GaussPointsPL.cxx b/src/PIPELINE/VISU_GaussPointsPL.cxx index a694e122..104fc333 100644 --- a/src/PIPELINE/VISU_GaussPointsPL.cxx +++ b/src/PIPELINE/VISU_GaussPointsPL.cxx @@ -158,6 +158,8 @@ VISU_GaussPointsPL ::DoShallowCopy(VISU_PipeLine *thePipeLine, bool theIsCopyInput) { + Superclass::DoShallowCopy(thePipeLine, theIsCopyInput); + if(VISU_GaussPointsPL *aPipeLine = dynamic_cast(thePipeLine)){ SetPrimitiveType(aPipeLine->GetPrimitiveType()); SetBicolor(aPipeLine->GetBicolor()); @@ -179,8 +181,6 @@ VISU_GaussPointsPL CopyGlyph( aPipeLine->myGlyph, this->myGlyph ); } - - Superclass::DoShallowCopy(thePipeLine, theIsCopyInput); } @@ -353,7 +353,7 @@ VISU_GaussPointsPL return; if(theIsDeformed){ - myWarpVector->SetInput( myPassFilter[0]->GetUnstructuredGridOutput() ); + myWarpVector->SetInput( myPassFilter[0]->GetPolyDataOutput() ); myPassFilter[1]->SetInput(myWarpVector->GetOutput()); }else myPassFilter[1]->SetInput(myPassFilter[0]->GetOutput()); -- 2.39.2