From 2ea84f0e01b61ea5f83f1c664eaa21ce9e00b1fc Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 12 Jan 2006 11:47:16 +0000 Subject: [PATCH] Fix for Bug GVIEW10260 Scaling is applied incorrectly on selection box --- src/OBJECT/VISU_VectorsAct.cxx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/OBJECT/VISU_VectorsAct.cxx b/src/OBJECT/VISU_VectorsAct.cxx index 4cb16c27..143350d8 100644 --- a/src/OBJECT/VISU_VectorsAct.cxx +++ b/src/OBJECT/VISU_VectorsAct.cxx @@ -50,29 +50,28 @@ VISU_VectorsAct::~VISU_VectorsAct(){} void VISU_VectorsAct::SetPipeLine(VISU_PipeLine* thePipeLine) { - if((myPipeLine = dynamic_cast(thePipeLine))){ - VISU_Actor::SetPipeLine(myPipeLine); - myPipeLine->Delete(); - } + myPipeLine = dynamic_cast(thePipeLine); + VISU_Actor::SetPipeLine(myPipeLine); + myPipeLine->Delete(); } void VISU_VectorsAct::SetTransform(VTKViewer_Transform* theTransform){ + Superclass::SetTransform(theTransform); myPipeLine->SetTransform(theTransform); - Modified(); } void VISU_VectorsAct::SetMapper(vtkMapper* theMapper){ if(theMapper){ myPassFilter[0]->SetInput(theMapper->GetInput()); - myPassFilter[0]->Update(); + myPassFilter[1]->SetInput(myPassFilter[0]->GetPolyDataOutput()); - myPassFilter[1]->Update(); + myPassFilter[2]->SetInput(myPassFilter[1]->GetPolyDataOutput()); - myPassFilter[2]->Update(); + myPassFilter[3]->SetInput(myPassFilter[2]->GetPolyDataOutput()); - myPassFilter[3]->Update(); + if(vtkDataSetMapper* aMapper = dynamic_cast(theMapper)) aMapper->SetInput(myPassFilter[3]->GetPolyDataOutput()); else if(vtkPolyDataMapper* aMapper = dynamic_cast(theMapper)) -- 2.39.2