|
Open CASCADE Technology 6.5.2
|
Constructs the primitive Length
#include <Prs2d_Length.hxx>

Public Member Functions | |
| Prs2d_Length (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const gp_Pnt2d &anAttachPnt1, const gp_Pnt2d &anAttachPnt2, const TCollection_ExtendedString &aText, const Standard_Real aTxtScale=5.0, const Standard_Real aLength=0.0, const Prs2d_TypeOfDist aTypeDist=Prs2d_TOD_AUTOMATIC, 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) | |
| Initializes the length dimension between points anAttachPnt1 and anAttachPnt2. aLength is length of the attach lines aTypeDist defines the orientation of the displayed length: AIS2D_TOD_AUTOMATIC AIS2D_TOD_OBLIQUE AIS2D_TOD_HORIZONTAL AIS2D_TOD_VERTICAL anArrow defines the number of arrows (one, two or none) | |
| Prs2d_Length (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const gp_Pnt2d &anAttachPnt, const gp_Lin2d &anAttachLin, const TCollection_ExtendedString &aText, const Standard_Real aTxtScale=10.0, const Standard_Real aLenAttachLin=0.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) | |
| Initializes the length dimension between point anAttachPnt1 and line defined anAttachLin. aLenAttachLin is length of the attach lines | |
| Prs2d_Length (const Handle< Graphic2d_GraphicObject > &aGraphicObject, const gp_Lin2d &anAttachLin1, const gp_Lin2d &anAttachLin2, const TCollection_ExtendedString &aText, const Standard_Real aTxtScale=10.0, const Standard_Real aLenAttachLin=0.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) | |
| Initializes the length dimension between line anAttachLin1 and line defined anAttachLin2. aLenAttachLin is length of the attach lines | |
| void | SetAttachLinLength (const Standard_Real aLength) |
| Sets the length of attachment lines | |
| virtual void | Save (Aspect_FStream &aFStream) const |
| void | LineCoord (gp_Pnt2d &aFirstPnt, gp_Pnt2d &aSecondPnt) const |
| returns coordinates of points, which are begining and end of arrow | |
| void | CallOutCoord (gp_Pnt2d &aFirstPnt, gp_Pnt2d &aSecondPnt) const |
| returns coordinates of points, which are begining and end of arrow | |
| Prs2d_TypeOfDist | TypeOfDist () const |
Protected Member Functions | |
| void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
| Draws the length <me>. | |
| virtual void | DrawElement (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
| Draws element <anIndex> of the length <me>. | |
| virtual void | DrawVertex (const Handle< Graphic2d_Drawer > &aDrawer, const Standard_Integer anIndex) |
| Draws vertex <anIndex> of the length <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 length <me> is picked, Standard_False if not. | |
| virtual void | CalcTxtPos (const Standard_Boolean theFromAbs=Standard_False) |
| Prs2d_Length::Prs2d_Length | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
| const gp_Pnt2d & | anAttachPnt1, | ||
| const gp_Pnt2d & | anAttachPnt2, | ||
| const TCollection_ExtendedString & | aText, | ||
| const Standard_Real | aTxtScale = 5.0, |
||
| const Standard_Real | aLength = 0.0, |
||
| const Prs2d_TypeOfDist | aTypeDist = Prs2d_TOD_AUTOMATIC, |
||
| 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 |
||
| ) |
| Prs2d_Length::Prs2d_Length | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
| const gp_Pnt2d & | anAttachPnt, | ||
| const gp_Lin2d & | anAttachLin, | ||
| const TCollection_ExtendedString & | aText, | ||
| const Standard_Real | aTxtScale = 10.0, |
||
| const Standard_Real | aLenAttachLin = 0.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 |
||
| ) |
| Prs2d_Length::Prs2d_Length | ( | const Handle< Graphic2d_GraphicObject > & | aGraphicObject, |
| const gp_Lin2d & | anAttachLin1, | ||
| const gp_Lin2d & | anAttachLin2, | ||
| const TCollection_ExtendedString & | aText, | ||
| const Standard_Real | aTxtScale = 10.0, |
||
| const Standard_Real | aLenAttachLin = 0.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_Length::CalcTxtPos | ( | const Standard_Boolean | theFromAbs = Standard_False | ) | [protected, virtual] |
Implements Prs2d_Dimension.
| void Prs2d_Length::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
| virtual void Prs2d_Length::DrawElement | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
| const Standard_Integer | anIndex | ||
| ) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
| virtual void Prs2d_Length::DrawVertex | ( | const Handle< Graphic2d_Drawer > & | aDrawer, |
| const Standard_Integer | anIndex | ||
| ) | [protected, virtual] |
Reimplemented from Graphic2d_Primitive.
| Standard_Boolean Prs2d_Length::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_Length::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
| void Prs2d_Length::SetAttachLinLength | ( | const Standard_Real | aLength | ) |
| Prs2d_TypeOfDist Prs2d_Length::TypeOfDist | ( | ) | const |
1.7.4