Commit fbb2ae1a authored by Zhang, Chen's avatar Zhang, Chen
Browse files

add new slot function to control scale type

parent b5fb29f9
......@@ -68,6 +68,7 @@ public slots:
void displayDetectorsOnly(bool yes);
void enableGL(bool on);
void setColorMapAutoscaling(bool /*on*/);
void setLegendScaleType(int /*index*/);
void changeColorMap(const QString &filename = "");
void setSurfaceType(int /*index*/);
void flipUnwrappedView(bool /*on*/);
......
......@@ -536,6 +536,16 @@ bool InstrumentWidgetRenderTab::areAxesOn() const {
return m_displayAxes->isChecked();
}
/**
* Change the type of the legend scale.
* @param index :: Index selected in the color scale type combo box.
*/
void InstrumentWidgetRenderTab::setLegendScaleType(int index) {
if ((int)m_colorBarWidget->getScaleType() != index) {
m_colorBarWidget->setScaleType(index);
}
}
/**
* Show ResetView combo box only with 3D view
* @param iv Index of a render mode in RenderMode combo box. iv == 0 is 3D view
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment