Open CASCADE Technology
6.5.4
|
Constructs the primitive Radius
#include <Prs2d_Diameter.hxx>
Public Member Functions | |
Prs2d_Diameter (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const gp_Pnt2d &anAttachPnt, const gp_Circ2d &aCircle, const TCollection_ExtendedString &aText, const Standard_Real aTxtScale=10.0, const Standard_Real anArrAngle=20.0, const Standard_Real anArrLength=25.0, const Prs2d_TypeOfArrow anArrType=Prs2d_TOA_OPENED, const Prs2d_ArrowSide anArrow=Prs2d_AS_BOTHAR, const Standard_Boolean IsReverseArrow=Standard_False) | |
Creates the radius of the circle passing through the point <anAttachPnt> | |
void | Values (gp_Pnt2d &anAttPnt, gp_Circ2d &aCirc) const |
allows to get the properties of the diameter | |
virtual void | Save (Aspect_FStream &aFStream) const |
Protected Member Functions | |
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 diameter <me>. | |
virtual void | DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
Draws vertex <anIndex> of the diameter <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 diameter <me> is picked, Standard_False if not. | |
virtual void | CalcTxtPos (const Standard_Boolean theFromAbs=Standard_False) |
Prs2d_Diameter::Prs2d_Diameter | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
const gp_Pnt2d & | anAttachPnt, | ||
const gp_Circ2d & | aCircle, | ||
const TCollection_ExtendedString & | aText, | ||
const Standard_Real | aTxtScale = 10.0 , |
||
const Standard_Real | anArrAngle = 20.0 , |
||
const Standard_Real | anArrLength = 25.0 , |
||
const Prs2d_TypeOfArrow | anArrType = Prs2d_TOA_OPENED , |
||
const Prs2d_ArrowSide | anArrow = Prs2d_AS_BOTHAR , |
||
const Standard_Boolean | IsReverseArrow = Standard_False |
||
) |
virtual void Prs2d_Diameter::CalcTxtPos | ( | const Standard_Boolean | theFromAbs = Standard_False | ) | [protected, virtual] |
Implements Prs2d_Dimension.
void Prs2d_Diameter::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
virtual void Prs2d_Diameter::DrawElement | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
const Standard_Integer | anIndex | ||
) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
virtual void Prs2d_Diameter::DrawVertex | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
const Standard_Integer | anIndex | ||
) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
Standard_Boolean Prs2d_Diameter::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_Diameter::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
void Prs2d_Diameter::Values | ( | gp_Pnt2d & | anAttPnt, |
gp_Circ2d & | aCirc | ||
) | const |