myScalarMap->SetSourceRange();
MinEdit->setEnabled( false );
MaxEdit->setEnabled( false );
+ CBFilter->setEnabled( false );
changeScalarMode(myModeCombo->currentIndex());
}
}
{
if (isOn) {
myScalarMap->SetRange(myScalarMap->GetMin(), myScalarMap->GetMax());
+ //myScalarMap->SetRangeAndFilter(myScalarMap->GetMin(), myScalarMap->GetMax(), isFilteredByScalars());
MinEdit->setEnabled( true );
MaxEdit->setEnabled( true );
+ CBFilter->setEnabled( true );
changeScalarMode(myModeCombo->currentIndex());
}
}
myScalarMap->SetSourceRange();
MinEdit->setEnabled( false );
MaxEdit->setEnabled( false );
+ CBFilter->setEnabled( false );
} else {
myScalarMap->SetRange(myScalarMap->GetMin(), myScalarMap->GetMax());
+ //myScalarMap->SetRangeAndFilter(myScalarMap->GetMin(), myScalarMap->GetMax(), isFilteredByScalars());
MinEdit->setEnabled( true );
MaxEdit->setEnabled( true );
+ CBFilter->setEnabled( true );
}
changeScalarMode(myModeCombo->currentIndex());
// RKV : Begin
//----------------------------------------------------------------------------
bool VisuGUI_ScalarBarPane::isFilteredByScalars() {
- return CBFilter->isChecked();
+ if (CBFilter->isEnabled())
+ return CBFilter->isChecked();
+ return false;
}