X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FAIS_AngleDimension.hxx;h=b09fa7543a8ba99f4d13b66102502d80c793c763;hb=622ac935fd1d8a5bc282ee127666a3e9d1954713;hp=35851393c6947a992854812eed97b572f9f583fa;hpb=0cc80021f29eff8586d7b5f22f274185bb9241e3;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/AIS_AngleDimension.hxx b/src/SketcherPrs/AIS_AngleDimension.hxx index 35851393c..b09fa7543 100755 --- a/src/SketcherPrs/AIS_AngleDimension.hxx +++ b/src/SketcherPrs/AIS_AngleDimension.hxx @@ -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;