// Change the colormap to match new exponent value void ColorBarWidget::changedExponent(double nth_power) { m_colorMap.setNthPower(nth_power); updateColorMap(); emit changedColorRange(m_min,m_max,m_log); }
/** SLOT called when maxValue changes */ void ColorBarWidget::changedMaximum() { m_max = ui.valMax->value(); if (m_max < m_min) { m_min = m_max-0.001; ui.valMin->setValue( m_min ); } updateColorMap(); emit changedColorRange(m_min,m_max,m_log); }
/* * Update display if different scale type is selected */ void ColorBarWidget::changedScaleType(int type) { // If power scale option is selected, enable "n =" widget ui.dspnN->setEnabled(type == 2); // Record if log scale option is selected m_log = (type == 1); m_colorMap.changeScaleType( GraphOptions::ScaleType(type) ); ui.valMin->setLogSteps( m_log ); ui.valMax->setLogSteps( m_log ); setSpinBoxesSteps(); updateColorMap(); emit changedColorRange(m_min,m_max,m_log); }
/** SLOT called when clicking the log button */ void ColorBarWidget::changedLogState(int log) { this->setLog(log); emit changedColorRange(m_min,m_max,m_log); }