From d5e71d630e9529340424a7227d4df4ab31faaf1f Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 20 Jun 2016 11:10:17 +0300 Subject: [PATCH] Compilation correction: GetValue of AIS_Dimension is used in GEOM SALOME module, so it should be returned back to the public section. 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 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/AIS/AIS_Dimension.hxx b/src/AIS/AIS_Dimension.hxx index d4c56afcfc..ce16f57f02 100755 --- a/src/AIS/AIS_Dimension.hxx +++ b/src/AIS/AIS_Dimension.hxx @@ -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. -- 2.39.5