myFieldsCombo->setCurrentText(aFieldName);
AddAllTimes(myFieldsCombo->currentText());
myTimeStampsCombo->setCurrentText(aIteration);
- SetScalarField();
+ SetScalarField( false );
myScalarPane->initFromPrsObject(myPrs);
}
myTimeStampsCombo->currentItem() + 1,
myPrs->GetScalarEntity());
- if (theUpdateScalars) SetScalarField();
+ if (theUpdateScalars) SetScalarField( false );
thePrs->ShowColored(true);
return anEntity;
}
-void VisuGUI_ScalarMapOnDeformedShapeDlg::SetScalarField(){
- SetScalarField(myTimeStampsCombo->currentItem()+1);
+void VisuGUI_ScalarMapOnDeformedShapeDlg::SetScalarField( const bool save_scalar_pane ){
+ SetScalarField( myTimeStampsCombo->currentItem()+1, "", save_scalar_pane );
}
-void VisuGUI_ScalarMapOnDeformedShapeDlg::SetScalarField(int theIter,QString theFieldName){
+void VisuGUI_ScalarMapOnDeformedShapeDlg::SetScalarField(int theIter,QString theFieldName, const bool save_scalar_pane ){
QString aFieldName;
theIter,
anEntity);
- myScalarPane->storeToPrsObject(myPrs);
-
- UpdateScalarField();
+ if( save_scalar_pane )
+ {
+ myScalarPane->storeToPrsObject(myPrs);
+ UpdateScalarField();
+ }
}
void VisuGUI_ScalarMapOnDeformedShapeDlg::accept()
QString getCurrentScalarFieldName();
int getCurrentScalarNbIterations();
VISU::TEntity getCurrentScalarEntity();
- void SetScalarField(int theIter,QString theFieldName=QString(""));
+ void SetScalarField(int theIter,QString theFieldName=QString(""), const bool = true );
private:
void keyPressEvent( QKeyEvent* e );
protected:
void UpdateScalarField();
- void SetScalarField();
+ void SetScalarField( const bool = true );
void AddAllFieldNames();
void AddAllTimes(const QString& theFieldName);
float GetFloatValueOfTimeStamp(const char* theMeshName,