void VISU_DeformedShapePL::SetScale(float theScale) {
- if(myScaleFactor == theScale) return;
+ myWarpVector->SetScaleFactor(theScale);
myScaleFactor = theScale;
- myWarpVector->SetScaleFactor(myScaleFactor);
Modified();
}
float VISU_DeformedShapePL::GetScale() {
- return myWarpVector->GetScaleFactor();
+ return myScaleFactor;
}
void VISU_DeformedShapePL::Init(){
}
VISU_ScalarMapPL::THook* VISU_IsoSurfacesPL::DoHook(){
+ VISU::CellDataToPoint(myContourFilter,myCellDataToPointData,GetInput2(),myFieldTransform);
return myContourFilter->GetOutput();
}
-void VISU_IsoSurfacesPL::Update(){
- VISU::CellDataToPoint(myContourFilter,myCellDataToPointData,GetInput2(),myFieldTransform);
- SetMapScale();
-
+void VISU_IsoSurfacesPL::Update()
+{
VISU_ScalarMapPL::Update();
}
SetScalarMode(aPipeLine->GetScalarMode());
SetNbColors(aPipeLine->GetNbColors());
SetScaling(aPipeLine->GetScaling());
+ SetMapScale(aPipeLine->GetMapScale());
}
Superclass::ShallowCopy(thePipeLine);
}
void
VISU_ScalarMapPL
::Update()
-{
+{
float *aRange = myFieldTransform->GetScalarRange();
float aScalarRange[2] = {aRange[0], aRange[1]};
if(myBarTable->GetScale() == VTK_SCALE_LOG10)
VISU_LookupTable::ComputeLogRange(aRange,aScalarRange);
myMapperTable->SetRange(aScalarRange);
- myMapperTable->SetMapScale(1.0);
myMapperTable->Build();
myBarTable->Build();
usleep(aTemp);
}
}
+ aPrsObject->SetMapScale(1.0);
+ aPrsObject->UpdateActor(aActor);
} catch (std::exception& exc) {
INFOS("Follow exception was occured :\n" << exc.what());
} catch (...) {