-- File : Prs2d_ToleranceFrame.cdl -- Created : October 2000 -- Author : TCL ---Copyright : Matra Datavision 2000 class ToleranceFrame from Prs2d inherits Line from Graphic2d uses GraphicObject from Graphic2d, Drawer from Graphic2d, Length from Quantity, ExtendedString from TCollection, TypeOfTolerance from Prs2d, Tolerance from Prs2d, Array1OfShortReal from TShort, FStream from Aspect, Pnt2d from gp, HArray1OfPnt2d from TColgp is ------------------------- -- Category: Constructors ------------------------- Create( aGO : GraphicObject from Graphic2d; aX, aY : Length from Quantity; aHeight : Length from Quantity; aTolType : TypeOfTolerance from Prs2d = Prs2d_TOT_NONE; aTolTxt : CString from Standard = ""; aTxt1 : CString from Standard = ""; aTxt2 : CString from Standard = ""; anAngle : Real from Standard = 0.0; aScale : Real from Standard = 1.0 ); ---Level: Public ---Purpose: Creates a frame with a type of tolerance , -- tolerance , the reference point is , , - the center of left vertical edge of this frame ---Category: Constructor -------------------------- -- Category: Draw and Pick -------------------------- Draw( me : mutable; aDrawer: Drawer from Graphic2d ) is static protected; ---Level: Internal ---Purpose: Draws the angle . Pick( me : mutable; X, Y: ShortReal from Standard; aPrecision: ShortReal from Standard; aDrawer: Drawer from Graphic2d) returns Boolean from Standard is static protected; ---Level: Internal ---Purpose: Returns Standard_True if the tolerance frame is picked, -- Standard_False if not. SetHeight( me: mutable; aHSize: Real from Standard ); ---Level: Public ---Purpose: Defines the height of the frame Height( me ) returns Real from Standard; ---Level: Public ---Purpose: Indicates the current height of the frame --------------------------------------------------- Save( me; aFStream: in out FStream from Aspect ) is virtual; ArrayOfPnt2d( me ) returns HArray1OfPnt2d from TColgp; ---Level: Public ---C++: return const ---Purpose: Returns array of 2d points, which produce frame for tolerance -- Size of array == 4 SetTolText( me: mutable; aText: CString from Standard ); ---Level: Public ---Purpose: Sets the text to this tolerance SetText1( me: mutable; aText: CString from Standard ); ---Level: Public SetText2( me: mutable; aText: CString from Standard ); ---Level: Public TolText( me ) returns ExtendedString from TCollection; ---Level: Public ---Purpose: Returns text and array, which contain points of cell -- which separates the text from other parameters Text1( me ) returns ExtendedString from TCollection; ---Level: Public Text2( me ) returns ExtendedString from TCollection; ---Level: Public TextScale( me ) returns Real from Standard; ---Level: Public fields myX : ShortReal from Standard; myY : ShortReal from Standard; myTolTxt : ExtendedString from TCollection; myTxt1 : ExtendedString from TCollection; myTxt2 : ExtendedString from TCollection; myHeight : ShortReal from Standard; myAngle : ShortReal from Standard; myScale : ShortReal from Standard; myHTol : Tolerance from Prs2d; myXVert : Array1OfShortReal from TShort; myYVert : Array1OfShortReal from TShort; end ToleranceFrame from Prs2d;