Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Prs2d_AspectText Class Reference

defines the attributes when drawing a text presentation

#include <Prs2d_AspectText.hxx>

Inheritance diagram for Prs2d_AspectText:
Inheritance graph
[legend]

Public Member Functions

 Prs2d_AspectText (const Quantity_NameOfColor aColor=Quantity_NOC_YELLOW, const Standard_CString aFont="TABTXT03", const Quantity_Length anHeight=3.0, const Aspect_TypeOfText aType=Aspect_TOT_SOLID, const Standard_Boolean isUnderlined=Standard_False)
 constructor using basic aspect types.

 Prs2d_AspectText (const Quantity_Color &aColor, const Aspect_FontStyle &aFont, const Aspect_TypeOfText aType=Aspect_TOT_SOLID, const Standard_Boolean isUnderlined=Standard_False)
 constructor using advanced aspect types.

void SetColor (const Quantity_NameOfColor aColor)
 Change the color aspect with a predefined color.

void SetColor (const Quantity_Color &aColor)
 Change the color aspect.

void SetFont (const Aspect_FontStyle &aFont)
 Change the font style aspect

void SetFont (const Aspect_TypeOfFont aFont)
 Change the font style aspect with a new font type but
preserve all other parameters.

void SetRelativeSlant (const Quantity_PlaneAngle aSlant)
 Change the font style aspect with a new font slant
added to the font original slant but preserve all other parameters.

void SetHeight (const Quantity_Length anHeight, const Standard_Boolean isCapsHeight)
 Change the font style aspect with a new font height
and CapsHeight indicator but preserve all other parameters.

void SetType (const Aspect_TypeOfText aType)
 Change the char type aspect of bolded fonts.

void SetUnderlined (const Standard_Boolean anIsUnderline)
 Enable / Disable the underlined char aspect.

void Values (Quantity_Color &aColor, Aspect_FontStyle &aFont, Quantity_PlaneAngle &aSlant, Aspect_TypeOfText &aType, Standard_Boolean &isUnderlined) const
 Returns the current parameters of this text aspect.

Standard_Integer FontIndex () const
 Returns the current font index according to the font style aspect

Standard_Integer ColorIndex () const
 Returns the current color index according to the color aspect

void SetFontIndex (const Standard_Integer anInd)
 Sets the current color index according to the color aspect

void SetColorIndex (const Standard_Integer anInd)
 Sets the current color index according to the color aspect


Constructor & Destructor Documentation


Member Function Documentation

void Prs2d_AspectText::Values ( Quantity_Color aColor,
Aspect_FontStyle aFont,
Quantity_PlaneAngle aSlant,
Aspect_TypeOfText aType,
Standard_Boolean isUnderlined 
) const

The documentation for this class was generated from the following file: