]> OCCT Git - occt-copy.git/commitdiff
Code correction: returning for dimension - custom text value, for angle dimension... NewGEOM_2.4.0 NewGEOM_2.5.0
authornds <nds@opencascade.com>
Mon, 20 Jun 2016 11:09:38 +0000 (14:09 +0300)
committernds <nds@opencascade.com>
Mon, 20 Jun 2016 11:09:38 +0000 (14:09 +0300)
src/AIS/AIS_AngleDimension.cxx
src/AIS/AIS_AngleDimension.hxx
src/AIS/AIS_Dimension.cxx
src/AIS/AIS_Dimension.hxx

index f37afab0ad904bb1740b0dbf253e8ddc069cb15a..7c7aa355f36beaea526733af5a1a0fdf0a9de54a 100644 (file)
@@ -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  : 
index 445a754f1c3540158025fa226e8819ab1a504869..9f810b5c5c6d150c512ca5d5dd68156cdeacd7e3 100755 (executable)
@@ -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)
index 92703a57b4de29a709e0587ba55bb7a0548d0413..51895200d235aac2af89310f28b87eb6560885af 100755 (executable)
@@ -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  : 
index ce16f57f02821bef86095af17d009a3013b80866..5b49180f2a5ffdeb7853285a1ecc449458622f7f 100755 (executable)
@@ -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.