connect( WidthSpin, SIGNAL( valueChanged( double ) ), this, SLOT( updatePreview() ));
connect( HeightSpin, SIGNAL( valueChanged( double ) ), this, SLOT( updatePreview() ));
connect( CBLog, SIGNAL( toggled( bool ) ), this, SLOT( updatePreview() ));
- changeRange( 0 );
changeDefaults( 0 );
myIsStoreTextProp = false;
myBusy = false;
void VisuGUI_ScalarBarPane::changeRange( int )
{
if ( RBFrange->isChecked() ) {
+ myScalarMap->SetSourceRange();
MinEdit->setEnabled( false );
MaxEdit->setEnabled( false );
} else {
+ myScalarMap->SetRange(myScalarMap->GetMin(), myScalarMap->GetMax());
MinEdit->setEnabled( true );
MaxEdit->setEnabled( true );
}
*/
void VisuGUI_ScalarBarPane::changeScalarMode( int theMode )
{
- if ( myScalarMap ) {
- if ( RBFrange->isChecked() ) {
- MinEdit->setText( QString::number( myScalarMap->GetComponentMin(theMode) ) );
- MaxEdit->setText( QString::number( myScalarMap->GetComponentMax(theMode) ) );
- }
+ if ( RBFrange->isChecked() ) {
+ MinEdit->setText( QString::number( myScalarMap->GetComponentMin(theMode) ) );
+ MaxEdit->setText( QString::number( myScalarMap->GetComponentMax(theMode) ) );
}
+
+ myScalarMap->SetScalarMode(theMode);
+
updatePreview();
}
else
RBFrange->setChecked( true );
- changeRange( 0 );
+ changeRange( sbRange );
}