|
Open CASCADE Technology 6.5.2
|
Constructs the repere
#include <Prs2d_Repere.hxx>

Public Member Functions | |
| Prs2d_Repere (const Handle< Graphic2d_GraphicObject > &aGO, const gp_Pnt2d &aPnt1, const gp_Pnt2d &aPnt2, const Standard_Real aLenBase, const TCollection_ExtendedString &aText, const Standard_Real aTxtScale=1.0, const Standard_Boolean aDrawArrow=Standard_False, const Standard_Real anArrAngle=10.0, const Standard_Real anArrLength=10.0, const Prs2d_TypeOfArrow anArrType=Prs2d_TOA_OPENED, const Prs2d_ArrowSide anArrow=Prs2d_AS_BOTHAR, const Standard_Boolean IsRevArrow=Standard_False) | |
| Creates repere | |
| virtual void | Save (Aspect_FStream &aFStream) const |
Protected Member Functions | |
| void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
| Draws the repere <me>. | |
| virtual void | DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
| Draws the element <anElement> of the primitive <me>. | |
| virtual void | DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
| Draws the vertex <aVertex> of the primitive <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 repere <me> is picked, Standard_False if not. | |
| virtual void | CalcTxtPos (const Standard_Boolean theFromAbs) |
| Prs2d_Repere::Prs2d_Repere | ( | const Handle< Graphic2d_GraphicObject > & | aGO, |
| const gp_Pnt2d & | aPnt1, | ||
| const gp_Pnt2d & | aPnt2, | ||
| const Standard_Real | aLenBase, | ||
| const TCollection_ExtendedString & | aText, | ||
| const Standard_Real | aTxtScale = 1.0, |
||
| const Standard_Boolean | aDrawArrow = Standard_False, |
||
| const Standard_Real | anArrAngle = 10.0, |
||
| const Standard_Real | anArrLength = 10.0, |
||
| const Prs2d_TypeOfArrow | anArrType = Prs2d_TOA_OPENED, |
||
| const Prs2d_ArrowSide | anArrow = Prs2d_AS_BOTHAR, |
||
| const Standard_Boolean | IsRevArrow = Standard_False |
||
| ) |
| virtual void Prs2d_Repere::CalcTxtPos | ( | const Standard_Boolean | theFromAbs | ) | [protected, virtual] |
Implements Prs2d_Dimension.
| void Prs2d_Repere::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
| virtual void Prs2d_Repere::DrawElement | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
| const Standard_Integer | anElement | ||
| ) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
| virtual void Prs2d_Repere::DrawVertex | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
| const Standard_Integer | aVertex | ||
| ) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
| Standard_Boolean Prs2d_Repere::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_Repere::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
1.7.4