]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Additional fix for the 0021407: [CEA 515] Plot2d Display error labels around the...
authorrnv <rnv@opencascade.com>
Wed, 1 Feb 2012 07:45:21 +0000 (07:45 +0000)
committerrnv <rnv@opencascade.com>
Wed, 1 Feb 2012 07:45:21 +0000 (07:45 +0000)
src/VISUGUI/VISU_msg_en.ts
src/VISU_I/VISU_Table_i.cc
src/VISU_I/VISU_Table_i.hh

index 8037777db8441b6c3454d0b91b82fffeacdf7556..ca4b84c3fe7b92aae48b7bb8a5e04741e31dc171 100644 (file)
@@ -1085,7 +1085,7 @@ Input value precision can be adjusted using
     </message>
     <message>
         <source>MEN_VISU_SHOW_DEVIATION</source>
-        <translation>Show Deviation</translation>
+        <translation>Show errors</translation>
     </message>
     <message>
         <source>TOOL_IMPORT</source>
index 160cbc136e271e49190b5770f7e396ee2b600dc5..bf18fa0580758eccc7badbaf991f8cdeafa75726 100644 (file)
@@ -1238,7 +1238,7 @@ int VISU::Curve_i::GetDeviationData( double*& theMin, double*& theMax, QList<int
                  anInt->HasValue( minRow, j ) && anInt->HasValue( maxRow, j )) {
                  value = anInt->GetValue(myVRow,j);
               theMin[k] = Table_i::calculateDeviation(info->minDeviation(),value, anInt->GetValue(minRow,j), true);
-                   theMax[k] = Table_i::calculateDeviation(info->maxDeviation(),value, anInt->GetValue(minRow,j), false);
+                   theMax[k] = Table_i::calculateDeviation(info->maxDeviation(),value, anInt->GetValue(maxRow,j), false);
               k++;
               theIndexes.push_back(j-1);
             }
index 85b9c20923cbc8545aa0aec531888c6fd7bf1b1b..2f679afaac3c10662649a8cae56124e80bba499a 100644 (file)
@@ -38,12 +38,13 @@ class SPlot2d_Curve;
 
 namespace VISU {
   typedef enum {NoneDvtn = 0, 
-                AbsoluteDvtn,
-                PercentageDvtn, 
-                ErrorDvtn, 
-                ErrorPercentageDvtn, 
-                SimpleErrorDvtn, 
-                SimpleErrorPercentageDvtn } DeviationType;
+                AbsoluteDvtn,               // min, max
+                PercentageDvtn,             // min%, max%
+                ErrorDvtn,                  // errmin, errmax
+                ErrorPercentageDvtn,        // errmin%, errmax%
+                SimpleErrorDvtn,            // error
+                SimpleErrorPercentageDvtn   // error%
+               } DeviationType;
 
   class VISU_I_EXPORT DeviationData {
   public: