diff --git a/src/AIS/AIS_AngleDimension.cxx b/src/AIS/AIS_AngleDimension.cxx index f37afab0ad..7c7aa355f3 100644 --- a/src/AIS/AIS_AngleDimension.cxx +++ b/src/AIS/AIS_AngleDimension.cxx @@ -1259,6 +1259,15 @@ void AIS_AngleDimension::SetAngleReversed(const Standard_Boolean& theUseReverse) myUseReverse = theUseReverse; } +//======================================================================= +//function : SetAngleReversed +//purpose : +//======================================================================= +Standard_Boolean AIS_AngleDimension::GetAngleReversed() const +{ + return myUseReverse; +} + //======================================================================= //function : SetArrowVisible //purpose : @@ -1270,6 +1279,17 @@ void AIS_AngleDimension::SetArrowVisible(const Standard_Boolean& theFirstArrowVi mySecondArrowVisible = theSecondArrowVisible; } +//======================================================================= +//function : GetArrowVisible +//purpose : +//======================================================================= +void AIS_AngleDimension::GetArrowVisible(Standard_Boolean& theFirstArrowVisible, + Standard_Boolean& theSecondArrowVisible) +{ + theFirstArrowVisible = myFirstArrowVisible; + theSecondArrowVisible = mySecondArrowVisible; +} + //======================================================================= //function : AdjustParameters //purpose : diff --git a/src/AIS/AIS_AngleDimension.hxx b/src/AIS/AIS_AngleDimension.hxx index 445a754f1c..9f810b5c5c 100755 --- a/src/AIS/AIS_AngleDimension.hxx +++ b/src/AIS/AIS_AngleDimension.hxx @@ -212,12 +212,22 @@ public: //! @param theUseReverse [in] the boolean state. Standard_EXPORT void SetAngleReversed(const Standard_Boolean& theUseReverse); + //! Returns state if the angle arc is reversed to the presentation plane. + //! @return TRUE if the anble is build to be reversed + Standard_EXPORT Standard_Boolean GetAngleReversed() const; + //! Sets visible state of angle arrows. Default value is true for both //! @param theFirstArrowVisible [in] the visibility of the first arrow. //! @param theSecondArrowVisible [in] the visibility of the second arrow. Standard_EXPORT void SetArrowVisible(const Standard_Boolean& theFirstArrowVisible, const Standard_Boolean& theSecondArrowVisible); + //! Gets visible state of angle arrows. + //! @param theFirstArrowVisible [out] the visibility of the first arrow. + //! @param theSecondArrowVisible [out] the visibility of the second arrow. + Standard_EXPORT void GetArrowVisible(Standard_Boolean& theFirstArrowVisible, + Standard_Boolean& theSecondArrowVisible); + public: DEFINE_STANDARD_RTTI (AIS_AngleDimension) diff --git a/src/AIS/AIS_Dimension.cxx b/src/AIS/AIS_Dimension.cxx index 92703a57b4..51895200d2 100755 --- a/src/AIS/AIS_Dimension.cxx +++ b/src/AIS/AIS_Dimension.cxx @@ -149,6 +149,15 @@ void AIS_Dimension::SetCustomValue (const TCollection_ExtendedString& theValue) SetToUpdate(); } +//======================================================================= +//function : GetCustomValue +//purpose : +//======================================================================= +const TCollection_ExtendedString& AIS_Dimension::GetCustomValue () const +{ + return myCustomStringValue; +} + //======================================================================= //function : GetPlane //purpose : diff --git a/src/AIS/AIS_Dimension.hxx b/src/AIS/AIS_Dimension.hxx index ce16f57f02..5b49180f2a 100755 --- a/src/AIS/AIS_Dimension.hxx +++ b/src/AIS/AIS_Dimension.hxx @@ -240,6 +240,10 @@ public: //! @param theValue [in] the user-defined value to display. Standard_EXPORT void SetCustomValue (const TCollection_ExtendedString& theValue); + //! Gets user-defined dimension value. + //! @return dimension value string. + Standard_EXPORT const TCollection_ExtendedString& GetCustomValue () const; + //! Get the dimension plane in which the 2D dimension presentation is computed. //! By default, if plane is not defined by user, it is computed automatically //! after dimension geometry is computed.