Salome HOME
Fix compilation on Linux
[modules/shaper.git] / src / SketcherPrs / AIS_AngleDimension.hxx
index 35851393c6947a992854812eed97b572f9f583fa..b09fa7543a8ba99f4d13b66102502d80c793c763 100755 (executable)
@@ -67,6 +67,7 @@ public:
   //! These two edges should be intersected by each other. Otherwise the geometry is not valid.
   //! @param theFirstEdge [in] the first edge.
   //! @param theSecondEdge [in] the second edge.
+  //! the maximum distanced point of edges from the presentation center
   Standard_EXPORT AIS_AngleDimension (const TopoDS_Edge& theFirstEdge,
                                       const TopoDS_Edge& theSecondEdge);
 
@@ -149,8 +150,9 @@ public:
   //! These two edges should be intersected by each other. Otherwise the geometry is not valid.
   //! @param theFirstEdge [in] the first edge.
   //! @param theSecondEdge [in] the second edge.
+  //! the maximum distanced point of edges from the presentation center
   Standard_EXPORT void SetMeasuredGeometry (const TopoDS_Edge& theFirstEdge,
-                                            const TopoDS_Edge& theSecondEdge);
+                                   const TopoDS_Edge& theSecondEdge);
 
   //! Measures angle defined by three points.
   //! @param theFirstPoint [in] the first point (point on first angle flyout).
@@ -207,10 +209,16 @@ public:
 
   Standard_EXPORT virtual const gp_Pnt GetTextPosition () const;
 
-  //! Sets state if the create arc should be built depending on the input geometry orientation
-  //! or to be always oriented in [0,0,1]. The last case propose angles more than 180 degree.
-  //! @param theSecondAttach [in] the second attachment point.
-  void SetGeometryOrientedAngle(const Standard_Boolean& theState, const Standard_Boolean& theUseReverse);
+  //! Sets state if the angle arc should be built reversing to the presentation plane.
+  //! Default state is not reversed
+  //! @param theUseReverse [in] the boolean state.
+  void SetAngleReversed(const Standard_Boolean& theUseReverse);
+
+  //! 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.
+  void SetArrowVisible(const Standard_Boolean& theFirstArrowVisible,
+                       const Standard_Boolean& theSecondArrowVisible);
 
 public:
 
@@ -305,6 +313,7 @@ protected:
 protected:
 
   //! Init angular dimension to measure angle between two linear edges.
+  //! the maximum distanced point of edges from the presentation center
   //! @return TRUE if the angular dimension can be constructured
   //!         for the passed edges.
   Standard_EXPORT Standard_Boolean InitTwoEdgesAngle (gp_Pln& theComputedPlane);
@@ -340,9 +349,11 @@ protected:
                                                   const gp_Pnt& theSecondPoint) const;
 
 private:
-  Standard_Boolean myGeometryOrientedAngle;
   Standard_Boolean myUseReverse;
 
+  Standard_Boolean myFirstArrowVisible;
+  Standard_Boolean mySecondArrowVisible;
+
   gp_Pnt myFirstPoint;
   gp_Pnt mySecondPoint;
   gp_Pnt myCenterPoint;