myModeLbl->setEnabled(isScalarMode);
myModeCombo->setEnabled(isScalarMode);
- setRange( myScalarMap->GetMin(), myScalarMap->GetMax(), myScalarMap->IsRangeFixed() );
+ setRange( myScalarMap->GetSourceMin(), myScalarMap->GetSourceMax(), myScalarMap->IsRangeFixed() );
setScalarBarData( myScalarMap->GetNbColors(), myScalarMap->GetLabels() );
MinEdit->setEnabled( false );
MaxEdit->setEnabled( false );
} else {
- myScalarMap->SetRange(myScalarMap->GetMin(), myScalarMap->GetMax());
+ myScalarMap->SetRange(myScalarMap->GetSourceMin(), myScalarMap->GetSourceMax());
MinEdit->setEnabled( true );
MaxEdit->setEnabled( true );
}
*/
void VisuGUI_ScalarBarPane::changeScalarMode( int theMode )
{
+ myScalarMap->SetScalarMode(theMode);
+
if ( RBFrange->isChecked() ) {
- MinEdit->setText( QString::number( myScalarMap->GetComponentMin(theMode) ) );
- MaxEdit->setText( QString::number( myScalarMap->GetComponentMax(theMode) ) );
+ MinEdit->setText( QString::number( myScalarMap->GetSourceMin() ) );
+ MaxEdit->setText( QString::number( myScalarMap->GetSourceMax() ) );
}
- myScalarMap->SetScalarMode(theMode);
-
updatePreview();
}