else
SetScaling(VISU::LINEAR);
+ int aNumberOfColors = aResourceMgr->integerValue( "VISU", "scalar_bar_num_colors", 64 );
+ SetNbColors(aNumberOfColors);
+
+ int aRangeType = aResourceMgr->integerValue("VISU" , "scalar_range_type", 0);
+ UseFixedRange(aRangeType == 1);
+ if(aRangeType == 1){
+ float aMin = aResourceMgr->doubleValue("VISU", "scalar_range_min", 0);
+ float aMax = aResourceMgr->doubleValue("VISU", "scalar_range_max", 0);
+ SetRange(aMin, aMax);
+ }
+
QString aLabelsFormat = aResourceMgr->stringValue( "VISU", "scalar_bar_label_format", "%-#6.3g" );
const char *lf=aLabelsFormat.latin1();
SetLabelsFormat(lf);
SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();
int aDispMode = aResourceMgr->integerValue("VISU", "point_map_represent", 2);
+ bool toShrink = aResourceMgr->booleanValue("VISU", "scalar_map_shrink", false);
anActor->SetRepresentation(aDispMode);
+ if (toShrink) anActor->SetShrink();
Handle (SALOME_InteractiveObject) anIO = new SALOME_InteractiveObject(GetEntry().c_str(), "VISU", GetName().c_str());
anActor->setIO(anIO);
//------------------ ColoredPrs3dBase Methods --------------------
CORBA::Double VISU::PointMap3d_i::GetMin()
+{
+ return myTablePL->GetScalarRange()[0];
+}
+
+CORBA::Double VISU::PointMap3d_i::GetMinTableValue()
{
SALOMEDS::GenericAttribute_var anAttr;
mySObj->FindAttribute(anAttr, "AttributeTableOfReal");
SALOMEDS::AttributeTableOfReal_var aTableOfReal = SALOMEDS::AttributeTableOfReal::_narrow(anAttr);
double aMin = aTableOfReal->GetValue(1, 1);
-
+
for (int i=1; i<=aTableOfReal->GetNbColumns(); i++)
for (int j=1; j<=aTableOfReal->GetNbRows(); j++) {
double aVal = aTableOfReal->GetValue(j, i);
if (aVal < aMin)
aMin = aVal;
}
-
+
return aMin;
- // return myTablePL->GetScalarRange()[0];
}
-CORBA::Double VISU::PointMap3d_i::GetMax()
+CORBA::Double VISU::PointMap3d_i::GetMaxTableValue()
{
SALOMEDS::GenericAttribute_var anAttr;
mySObj->FindAttribute(anAttr, "AttributeTableOfReal");
}
return aMax;
- // return myTablePL->GetScalarRange()[1];
+}
+
+CORBA::Double VISU::PointMap3d_i::GetMax()
+{
+ return myTablePL->GetScalarRange()[1];
}
void VISU::PointMap3d_i::SetRange(CORBA::Double theMin, CORBA::Double theMax)