::Update()
{
Superclass::Update();
-
- UpdateScalars();
//{
// std::string aFileName = std::string(getenv("HOME"))+"/"+getenv("USER")+"-myScalarsExtractor.vtk";
// VISU::WriteToFile(myScalarsExtractor->GetUnstructuredGridOutput(), aFileName);
VISU_ScalarMapOnDeformedShapePL
::SetScalars(vtkDataSet *theScalars)
{
+ if(GetScalars() == theScalars)
+ return;
+
myScalars = theScalars;
+ UpdateScalars();
}
//----------------------------------------------------------------------------
QString theFieldName,
const bool save_scalar_pane )
{
+ if( save_scalar_pane )
+ myScalarPane->storeToPrsObject(myPrsCopy);
QString aFieldName;
anEntity);
if( save_scalar_pane )
- {
- myScalarPane->storeToPrsObject(myPrsCopy);
UpdateScalarField();
- }
}
void VisuGUI_ScalarMapOnDeformedShapeDlg::accept()
}
void VisuGUI_ScalarMapOnDeformedShapeDlg::UpdateScalarField(){
- myPrsCopy->SetScale(getFactor());
- vtkFloatingPointType aRange[2];
- myPrsCopy->GetSpecificPL()->Build();
- myPrsCopy->GetSpecificPL()->Update();
- myPrsCopy->GetSpecificPL()->GetSourceRange(aRange);
- double aDoubleRange[2];
- aDoubleRange[0] = double(aRange[0]);
- aDoubleRange[1] = double(aRange[1]);
myScalarPane->initFromPrsObject(myPrsCopy);
- myScalarPane->setRange(aDoubleRange[0],aDoubleRange[1],myScalarPane->isIRange());
}
float