mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
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.
This commit is contained in:
parent
cf9192329b
commit
d5e71d630e
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user