]> OCCT Git - occt-copy.git/commitdiff
Compilation correction: GetValue of AIS_Dimension is used in GEOM SALOME module,...
authornds <nds@opencascade.com>
Mon, 20 Jun 2016 08:10:17 +0000 (11:10 +0300)
committernds <nds@opencascade.com>
Mon, 20 Jun 2016 08:10:17 +0000 (11:10 +0300)
It was temporary moved to protected area in order to avoid uncertain case when the dimension is filled by the text custom value.

src/AIS/AIS_Dimension.hxx

index d4c56afcfc69307d66e866f46d0e1e1a98fb122b..ce16f57f02821bef86095af17d009a3013b80866 100755 (executable)
@@ -219,6 +219,16 @@ public:
   //! @param theType [in] the type of dimension.
   Standard_EXPORT AIS_Dimension (const AIS_KindOfDimension theType);
 
+  //! Gets dimension measurement value. If the value to display is not
+  //! specified by user, then the dimension object is responsible to
+  //! compute it on its own in model space coordinates.
+  //! @return the dimension value (in model units) which is used
+  //! during display of the presentation.
+  Standard_Real GetValue() const
+  {
+    return myIsValueCustom ? myCustomValue : ComputeValue();
+  }
+
   //! Sets user-defined dimension value.
   //! The user-defined dimension value is specified in model space,
   //! and affect by unit conversion during the display.
@@ -378,16 +388,6 @@ protected:
 
   Standard_EXPORT Standard_Real ValueToDisplayUnits() const;
 
-  //! Gets dimension measurement value. If the value to display is not
-  //! specified by user, then the dimension object is responsible to
-  //! compute it on its own in model space coordinates.
-  //! @return the dimension value (in model units) which is used
-  //! during display of the presentation.
-  Standard_Real GetValue() const
-  {
-    return myIsValueCustom ? myCustomValue : ComputeValue();
-  }
-
   //! Get formatted value string and its model space width.
   //! @param theWidth [out] the model space with of the string.
   //! @return formatted dimension value string.