]> OCCT Git - occt-copy.git/commitdiff
0031439: Visualization - Access to the active axis of AIS Manipulator
authormgn <mgn@opencascade.com>
Wed, 18 Mar 2020 09:30:44 +0000 (12:30 +0300)
committermgn <maxim.glibin@opencascade.com>
Thu, 19 Mar 2020 13:34:38 +0000 (16:34 +0300)
A new method that returns the active axis of the manipulator has been added.

src/AIS/AIS_Manipulator.hxx

index 11999798fd3f8db9e9416394ff259cfad50eddd2..c80ed0ed68bdbfa89cea08c982a2f65c1ffbe816 100644 (file)
@@ -259,6 +259,8 @@ public: //! @name Setters for parameters
 
   AIS_ManipulatorMode ActiveMode() const { return myCurrentMode; }
 
+  Standard_Integer ActiveAxisIndex() const { return myCurrentIndex; }
+
   //! @return poition of manipulator interactive object.
   const gp_Ax2& Position() const { return myPosition; }