|
Open CASCADE Technology
6.5.4
|
Constructs the primitive Axis
#include <Prs2d_Axis.hxx>

Public Member Functions | |
| Prs2d_Axis (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const gp_Ax22d &anAx, const Standard_Real aLength, const Standard_Real anArrAngle=30.0, const Standard_Real anArrLength=30.0, const Prs2d_TypeOfArrow anArrType=Prs2d_TOA_OPENED, const Standard_Real aTxtScale=10.0) | |
| Initializes the axis 2 position <anAx> | |
| Prs2d_Axis (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const gp_Ax2d &anAx, const Standard_Real aLength, const Standard_Real anArrAngle=30.0, const Standard_Real anArrLength=30.0, const Prs2d_TypeOfArrow anArrType=Prs2d_TOA_OPENED, const Standard_Real aTxtScale=10.0) | |
| Initializes the axis position <anAx>. | |
| Prs2d_Axis (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const gp_Lin2d &aLine, const Standard_Real aLength, const Standard_Real anArrAngle=30.0, const Standard_Real anArrLength=30.0, const Prs2d_TypeOfArrow anArrType=Prs2d_TOA_OPENED, const Standard_Real aTxtScale=10.0) | |
| Initializes the line <aLine> | |
| Prs2d_TypeOfArrow | TypeOfArrow () const |
| Returns type of arrow Type is: TOA_OPENED, TOA_CLOSED, TOA_FILLED | |
| const Handle_TColgp_HArray1OfPnt2d | ArrayOfPnt2d () const |
| const Handle_TColgp_HArray1OfPnt2d | ArrayOfXArrowPnt2d () const |
| const Handle_TColgp_HArray1OfPnt2d | ArrayOfYArrowPnt2d () const |
| Standard_Real | TextScale () const |
| virtual void | Save (Aspect_FStream &aFStream) const |
Protected Member Functions | |
| void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
| Draws the axis <me>. | |
| virtual void | DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
| Draws element <anIndex> of the axis <me>. | |
| virtual void | DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
| Draws vertex <anIndex> of the axis <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 axis <me> is picked, Standard_False if not. | |
| Prs2d_Axis::Prs2d_Axis | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
| const gp_Ax22d & | anAx, | ||
| const Standard_Real | aLength, | ||
| const Standard_Real | anArrAngle = 30.0, |
||
| const Standard_Real | anArrLength = 30.0, |
||
| const Prs2d_TypeOfArrow | anArrType = Prs2d_TOA_OPENED, |
||
| const Standard_Real | aTxtScale = 10.0 |
||
| ) |
| Prs2d_Axis::Prs2d_Axis | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
| const gp_Ax2d & | anAx, | ||
| const Standard_Real | aLength, | ||
| const Standard_Real | anArrAngle = 30.0, |
||
| const Standard_Real | anArrLength = 30.0, |
||
| const Prs2d_TypeOfArrow | anArrType = Prs2d_TOA_OPENED, |
||
| const Standard_Real | aTxtScale = 10.0 |
||
| ) |
| Prs2d_Axis::Prs2d_Axis | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
| const gp_Lin2d & | aLine, | ||
| const Standard_Real | aLength, | ||
| const Standard_Real | anArrAngle = 30.0, |
||
| const Standard_Real | anArrLength = 30.0, |
||
| const Prs2d_TypeOfArrow | anArrType = Prs2d_TOA_OPENED, |
||
| const Standard_Real | aTxtScale = 10.0 |
||
| ) |
| const Handle_TColgp_HArray1OfPnt2d Prs2d_Axis::ArrayOfPnt2d | ( | ) | const |
| const Handle_TColgp_HArray1OfPnt2d Prs2d_Axis::ArrayOfXArrowPnt2d | ( | ) | const |
| const Handle_TColgp_HArray1OfPnt2d Prs2d_Axis::ArrayOfYArrowPnt2d | ( | ) | const |
| void Prs2d_Axis::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
| virtual void Prs2d_Axis::DrawElement | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
| const Standard_Integer | anIndex | ||
| ) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
| virtual void Prs2d_Axis::DrawVertex | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
| const Standard_Integer | anIndex | ||
| ) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
| Standard_Boolean Prs2d_Axis::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_Axis::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
| Standard_Real Prs2d_Axis::TextScale | ( | ) | const |
| Prs2d_TypeOfArrow Prs2d_Axis::TypeOfArrow | ( | ) | const |
1.8.0