-- Copyright (c) 1993-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. class DimensionAspect from Prs3d inherits BasicAspect from Prs3d ---Purpose: defines the attributes when drawing a Length Presentation. uses DimensionTextHorizontalPosition from Prs3d, DimensionTextVerticalPosition from Prs3d, DimensionArrowOrientation from Prs3d, AspectLine3d from Graphic3d, ArrowAspect from Prs3d, LineAspect from Prs3d, TextAspect from Prs3d, NameOfColor from Quantity, Color from Quantity, TypeOfLine from Aspect, PlaneAngle from Quantity, TypeOfLine from Aspect, AsciiString from TCollection is Create returns DimensionAspect from Prs3d; --- Purpose: Constructs an empty framework to define the display of dimensions. LineAspect(me) returns LineAspect from Prs3d; ---Purpose: Returns the settings for the display of lines used in presentation of dimensions. SetLineAspect(me: mutable; theAspect: LineAspect from Prs3d); ---Purpose: Sets the display attributes of lines used in presentation of dimensions. TextAspect(me) returns TextAspect from Prs3d is static; --- Purpose: Returns the settings for the display of text used in presentation of dimensions. SetTextAspect(me:mutable; theAspect: TextAspect from Prs3d) is static; ---Purpose: Sets the display attributes of text used in presentation of dimensions. IsText3d(me) returns Boolean from Standard; --- Purpose: Check if text for dimension label is 3d. MakeText3d (me:mutable; isText3d: Boolean from Standard); ---Purpose: Sets type of text. IsTextShaded (me) returns Boolean from Standard; --- Purpose: Check if 3d text for dimension label is shaded. MakeTextShaded (me: mutable; isTextShaded: Boolean from Standard); --- Purpose: Turns on/off text shading for 3d text. IsArrows3d(me) returns Boolean from Standard; --- Purpose: Gets type of arrows. MakeArrows3d (me : mutable; isArrows3d: Boolean from Standard); ---Purpose: Sets type of arrows. IsUnitsDisplayed (me) returns Boolean from Standard; ---Purpose: Shows if Units are to be displayed along with dimension value. MakeUnitsDisplayed (me : mutable; theIsDisplayed : Boolean from Standard); ---Purpose: Specifies whether the units string should be displayed -- along with value label or not. SetArrowOrientation(me: mutable; theArrowOrient: DimensionArrowOrientation from Prs3d); --- Purpose: Sets orientation of arrows (external or internal). -- By default orientation is chosen automatically according to situation and text label size. ArrowOrientation (me) returns DimensionArrowOrientation from Prs3d; --- Purpose: Gets orientation of arrows (external or internal). SetTextVerticalPosition (me: mutable; thePosition : DimensionTextVerticalPosition from Prs3d); --- Purpose: Sets vertical text alignment for text label. TextVerticalPosition (me) returns DimensionTextVerticalPosition from Prs3d; --- Purpose: Gets vertical text alignment for text label. SetTextHorizontalPosition (me: mutable; thePosition: DimensionTextHorizontalPosition from Prs3d); --- Purpose: Sets horizontal text alignment for text label. TextHorizontalPosition (me) returns DimensionTextHorizontalPosition from Prs3d; --- Purpose: Gets horizontal text alignment for text label. ArrowAspect(me) returns ArrowAspect from Prs3d is static; --- Purpose: Returns the settings for displaying arrows. SetArrowAspect(me: mutable; theAspect: ArrowAspect from Prs3d) is static; ---Purpose: Sets the display attributes of arrows used in presentation of dimensions. SetCommonColor(me:mutable; theColor: Color from Quantity) is static; ---Purpose: Sets the same color for all parts of dimension: lines, arrows and text. SetExtensionSize (me : mutable; theSize : Real from Standard); ---Purpose: Sets extension size. ExtensionSize (me) returns Real from Standard; ---Purpose: Returns extension size. SetArrowTailSize (me : mutable; theSize : Real from Standard); ---Purpose: Set size for arrow tail (extension without text). ArrowTailSize (me) returns Real from Standard; ---Purpose: Returns arrow tail size. SetValueStringFormat (me : mutable; theFormat : AsciiString from TCollection); ---Purpose: Sets "sprintf"-syntax format for formatting dimension value labels. ValueStringFormat (me) returns AsciiString from TCollection; ---Purpose: Returns format. fields myLineAspect : LineAspect from Prs3d; ---Purpose: Text style. The size for 3d (or 2d) text is also inside here. myTextAspect: TextAspect from Prs3d; myArrowAspect : ArrowAspect from Prs3d; myIsText3d : Boolean from Standard; myIsTextShaded : Boolean from Standard; myIsArrows3d: Boolean from Standard; myArrowOrientation : DimensionArrowOrientation from Prs3d; ---Purpose: Dimension arrow orientation. -- By default, it is computed automatically. Its value depends on the text -- bouning rectangle size and distance between two flyouts. -- By default, it is "fit" one. myTextHPosition : DimensionTextHorizontalPosition from Prs3d; ---Purpose: Defines horizontal position of text value label, by default it is -- "fit" - selected automatically depending on label-to-dimension size relation. myTextVPosition : DimensionTextVerticalPosition from Prs3d; ---Purpose: Defines vertical position of text value label, by default it is center. myExtensionSize : Real from Standard; ---Purpose: Size of arrow extensions. -- The length of arrow tail with text if arrows are located outside dimension line. myArrowTailSize : Real from Standard; ---Purpose: Size of arrow tail (extension without text). myValueStringFormat : AsciiString from TCollection; ---Purpose: "sprintf"-syntax format for formatting dimension value labels. -- Default is "%g". myToDisplayUnits : Boolean from Standard; ---Purpose: Defines if the units need to be displayed. -- Default is FALSE. end DimensionAspect from Prs3d;