Open CASCADE Technology
6.5.4
|
Constructs the primitive Angle
#include <Prs2d_Angle.hxx>
Public Member Functions | |
Prs2d_Angle (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const gp_Pnt2d &anAttachPnt1, const gp_Pnt2d &anAttachPnt2, const gp_Pnt2d &anAttachPnt3, const Quantity_Length aRadius, const TCollection_ExtendedString &aText, const Standard_Real aTxtScale=3.0, const Standard_Real anArrAngle=15.0, const Standard_Real anArrLength=10.0, const Prs2d_TypeOfArrow anArrType=Prs2d_TOA_OPENED, const Prs2d_ArrowSide anArrow=Prs2d_AS_BOTHAR, const Standard_Boolean IsReverseArrow=Standard_False) | |
create an angle: between the line defined by the points anAttachtPnt1 and anAttachPnt2 and the line defined by the points anAttachPnt1 and anAttachPnt3 Radius of this angle is the distance between <anAttachPnt1> and <anOffsetPoint> points. <anArrAngle> in degree | |
void | Values (gp_Pnt2d &aPnt1, gp_Pnt2d &aPnt2, gp_Pnt2d &aPnt3, Quantity_Length &aRad) const |
allows to get the properties of the angle | |
virtual void | Save (Aspect_FStream &aFStream) const |
Protected Member Functions | |
virtual void | CalcTxtPos (const Standard_Boolean theFromAbs=Standard_False) |
void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
Draws the angle <me>. | |
virtual void | DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
Draws element <anIndex> of the angle <me>. | |
virtual void | DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
Draws vertex <anIndex> of the angle <me>. | |
Standard_Boolean | Pick (const Standard_ShortReal X, const Standard_ShortReal Y, const Standard_ShortReal aPrecision, const Handle< Graphic2d_Drawer > &aDrawer) |
Returns Standard_True if the angle <me> is picked, Standard_False if not. |
Prs2d_Angle::Prs2d_Angle | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
const gp_Pnt2d & | anAttachPnt1, | ||
const gp_Pnt2d & | anAttachPnt2, | ||
const gp_Pnt2d & | anAttachPnt3, | ||
const Quantity_Length | aRadius, | ||
const TCollection_ExtendedString & | aText, | ||
const Standard_Real | aTxtScale = 3.0 , |
||
const Standard_Real | anArrAngle = 15.0 , |
||
const Standard_Real | anArrLength = 10.0 , |
||
const Prs2d_TypeOfArrow | anArrType = Prs2d_TOA_OPENED , |
||
const Prs2d_ArrowSide | anArrow = Prs2d_AS_BOTHAR , |
||
const Standard_Boolean | IsReverseArrow = Standard_False |
||
) |
virtual void Prs2d_Angle::CalcTxtPos | ( | const Standard_Boolean | theFromAbs = Standard_False | ) | [protected, virtual] |
Implements Prs2d_Dimension.
void Prs2d_Angle::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
virtual void Prs2d_Angle::DrawElement | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
const Standard_Integer | anIndex | ||
) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
virtual void Prs2d_Angle::DrawVertex | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
const Standard_Integer | anIndex | ||
) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
Standard_Boolean Prs2d_Angle::Pick | ( | const Standard_ShortReal | X, |
const Standard_ShortReal | Y, | ||
const Standard_ShortReal | aPrecision, | ||
const Handle< Graphic2d_Drawer > & | aDrawer | ||
) | [protected, virtual] |
Implements Graphic2d_Primitive.
virtual void Prs2d_Angle::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
void Prs2d_Angle::Values | ( | gp_Pnt2d & | aPnt1, |
gp_Pnt2d & | aPnt2, | ||
gp_Pnt2d & | aPnt3, | ||
Quantity_Length & | aRad | ||
) | const |