]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL20026 4.x: "Scalar Bar Properties" values of the table presentation aren... V4_1_0_maintainance_20080627
authordmv <dmv@opencascade.com>
Thu, 26 Jun 2008 08:53:12 +0000 (08:53 +0000)
committerdmv <dmv@opencascade.com>
Thu, 26 Jun 2008 08:53:12 +0000 (08:53 +0000)
Bug IPAL20027 4.x: "Preferences" aren't taken into account for the table presentation.

src/VISU_I/VISU_PointMap3d_i.cc

index 17fe55ec405ea76a118cc9348c467dfbb76630fe..95b0766c14f6a80896c2a1a275ec4fd72c25631b 100644 (file)
@@ -197,6 +197,13 @@ VISU::Storable* VISU::PointMap3d_i::Create()
   bool isUnits = aResourceMgr->booleanValue( "VISU", "scalar_bar_display_units", true );
   SetUnitsVisible(isUnits);
 
+  SetSourceRange();
+
+  if( IsPositiveTable() &&  aResourceMgr->booleanValue("VISU", "scalar_bar_logarithmic", false) )
+    SetScaling(VISU::LOGARITHMIC);
+  else
+    SetScaling(VISU::LINEAR);
+
   QString aLabelsFormat = aResourceMgr->stringValue( "VISU", "scalar_bar_label_format", "%-#6.3g" );
   const char *lf=aLabelsFormat.latin1();
   SetLabelsFormat(lf);
@@ -751,8 +758,6 @@ CORBA::Double VISU::PointMap3d_i::GetSourceMin()
   vtkFloatingPointType aRange[2];
   GetSpecificPL()->GetSourceRange(aRange);
   return aRange[0];
-
-  UseFixedRange(false);
 }
 
 CORBA::Double VISU::PointMap3d_i::GetSourceMax()
@@ -767,6 +772,8 @@ void VISU::PointMap3d_i::SetSourceRange()
   GetSpecificPL()->SetSourceRange();
   ProcessVoidEvent(new TVoidMemFunEvent<VISU_DeformedGridPL>
                   (GetSpecificPL(), &VISU_DeformedGridPL::SetSourceRange));
+
+  UseFixedRange(false);
 }
 
 CORBA::Boolean VISU::PointMap3d_i::IsRangeFixed()