From: apo Date: Mon, 15 Jan 2007 09:56:45 +0000 (+0000) Subject: 1. We need not call the Superclass::DoShallowCopy(thePipeLine, theIsCopyInput) in... X-Git-Tag: WP1_2_3_17-01-2007_Data_format_at_entry_of_visualization_pipeline~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=10bc204da48dc4076527a84d0586585cdf32e222;p=modules%2Fvisu.git 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 --- 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());