Open CASCADE Technology
6.5.4
|
#include <Prs2d_ToleranceFrame.hxx>
Public Member Functions | |
Prs2d_ToleranceFrame (const Handle< Graphic2d_GraphicObject > &aGO, const Quantity_Length aX, const Quantity_Length aY, const Quantity_Length aHeight, const Prs2d_TypeOfTolerance aTolType=Prs2d_TOT_NONE, const Standard_CString aTolTxt="", const Standard_CString aTxt1="", const Standard_CString aTxt2="", const Standard_Real anAngle=0.0, const Standard_Real aScale=1.0) | |
Creates a frame with a type of tolerance <aTolType>, tolerance <aTolTxt>, the reference point is <aXPosition>, <aYPosition <aX>, <aY> - the center of left vertical edge of this frame | |
void | SetHeight (const Standard_Real aHSize) |
Defines the height of the frame | |
Standard_Real | Height () const |
Indicates the current height of the frame | |
virtual void | Save (Aspect_FStream &aFStream) const |
const Handle_TColgp_HArray1OfPnt2d | ArrayOfPnt2d () const |
Returns array of 2d points, which produce frame for tolerance Size of array == 4 | |
void | SetTolText (const Standard_CString aText) |
Sets the text to this tolerance | |
void | SetText1 (const Standard_CString aText) |
void | SetText2 (const Standard_CString aText) |
TCollection_ExtendedString | TolText () const |
Returns text and array, which contain points of cell which separates the text from other parameters | |
TCollection_ExtendedString | Text1 () const |
TCollection_ExtendedString | Text2 () const |
Standard_Real | TextScale () const |
Protected Member Functions | |
void | Draw (const Handle< Graphic2d_Drawer > &aDrawer) |
Draws 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 tolerance frame <me> is picked, Standard_False if not. |
Prs2d_ToleranceFrame::Prs2d_ToleranceFrame | ( | const Handle< Graphic2d_GraphicObject > & | aGO, |
const Quantity_Length | aX, | ||
const Quantity_Length | aY, | ||
const Quantity_Length | aHeight, | ||
const Prs2d_TypeOfTolerance | aTolType = Prs2d_TOT_NONE , |
||
const Standard_CString | aTolTxt = "" , |
||
const Standard_CString | aTxt1 = "" , |
||
const Standard_CString | aTxt2 = "" , |
||
const Standard_Real | anAngle = 0.0 , |
||
const Standard_Real | aScale = 1.0 |
||
) |
const Handle_TColgp_HArray1OfPnt2d Prs2d_ToleranceFrame::ArrayOfPnt2d | ( | ) | const |
void Prs2d_ToleranceFrame::Draw | ( | const Handle< Graphic2d_Drawer > & | aDrawer | ) | [protected, virtual] |
Implements Graphic2d_Primitive.
Standard_Real Prs2d_ToleranceFrame::Height | ( | ) | const |
Standard_Boolean Prs2d_ToleranceFrame::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_ToleranceFrame::Save | ( | Aspect_FStream & | aFStream | ) | const [virtual] |
Reimplemented from Graphic2d_Line.
Standard_Real Prs2d_ToleranceFrame::TextScale | ( | ) | const |