- setColorScalePosition(0.03, 0.35);
- setColorScaleSize(0.2, 0.5);
- setColorScaleTextHeigth(14);
- setColorScaleIntervals(20);
- Handle(AIS_ColorScale) aColorScale = myWorkshop->mainWindow()->viewer()->colorScale();
+ SUIT_ResourceMgr* aResMgr = ModuleBase_Preferences::resourceMgr();
+ double aX = aResMgr->doubleValue("Viewer", "scalar_bar_x_position", 0.03);
+ double aY = aResMgr->doubleValue("Viewer", "scalar_bar_y_position", 0.35);
+ setColorScalePosition(aX, aY);
+
+ double aW = aResMgr->doubleValue("Viewer", "scalar_bar_width", 0.2);
+ double aH = aResMgr->doubleValue("Viewer", "scalar_bar_height", 0.5);
+ setColorScaleSize(aW, aH);
+
+ QColor aColor = aResMgr->colorValue("Viewer", "scalar_bar_text_color", Qt::black);
+ setColorScaleTextColor(aColor);
+
+ int aT = aResMgr->integerValue("Viewer", "scalar_bar_text_height", 14);
+ setColorScaleTextHeigth(aT);
+
+ int aN = aResMgr->integerValue("Viewer", "scalar_bar_nb_intervals", 20);
+ setColorScaleIntervals(aN);