VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane (QWidget * parent, bool SetPref):
QVBox(parent), myPreviewActor(0)
{
- myVerX = 0.01; myVerY = 0.10; myVerW = 0.10; myVerH = 0.80;
- myHorX = 0.20; myHorY = 0.01; myHorW = 0.60; myHorH = 0.12;
+ SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
+ QString propertyName;
+ propertyName = QString("scalar_bar_vertical_");
+ myVerX = aResourceMgr->doubleValue("VISU", propertyName + "x", myVerX);
+ myVerY = aResourceMgr->doubleValue("VISU", propertyName + "y", myVerY);
+ myVerW = aResourceMgr->doubleValue("VISU", propertyName + "width", myVerW);
+ myVerH = aResourceMgr->doubleValue("VISU", propertyName + "height",myVerH);
+
+ propertyName = QString("scalar_bar_horizontal_");
+ myHorX = aResourceMgr->doubleValue("VISU", propertyName + "x", myHorX);
+ myHorY = aResourceMgr->doubleValue("VISU", propertyName + "y", myHorY);
+ myHorW = aResourceMgr->doubleValue("VISU", propertyName + "width", myHorW);
+ myHorH = aResourceMgr->doubleValue("VISU", propertyName + "height",myHorH);
+
Imin = 0.0; Imax = 0.0; /*Fmin = 0.0; Fmax = 0.0;*/ Rmin = 0.0; Rmax = 0.0;
myRangeMode = -1;