void VisuGUI_ScalarBarPane::onImposedRange( bool isOn )
{
if (isOn) {
- myScalarMap->SetRange( myScalarMap->GetMin(), myScalarMap->GetMax() );
+ myScalarMap->SetRange( myScalarMap->GetSourceMin(), myScalarMap->GetSourceMax() );
MinEdit->setEnabled( true );
MaxEdit->setEnabled( true );
changeScalarMode(myModeCombo->currentIndex());
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();
}