|
Public Member Functions |
| Standard_EXPORT | 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.
|
| Standard_EXPORT | 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.
|
| Standard_EXPORT void | SetColor (const Quantity_NameOfColor aColor) |
| | Change the color aspect with a predefined color.
.
|
| Standard_EXPORT void | SetColor (const Quantity_Color &aColor) |
| | Change the color aspect.
.
|
| Standard_EXPORT void | SetFont (const Aspect_FontStyle &aFont) |
| | Change the font style aspect
.
|
| Standard_EXPORT void | SetFont (const Aspect_TypeOfFont aFont) |
| | Change the font style aspect with a new font type but
preserve all other parameters.
.
|
| Standard_EXPORT 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.
.
|
| Standard_EXPORT 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.
.
|
| Standard_EXPORT void | SetType (const Aspect_TypeOfText aType) |
| | Change the char type aspect of bolded fonts.
.
|
| Standard_EXPORT void | SetUnderlined (const Standard_Boolean anIsUnderline) |
| | Enable / Disable the underlined char aspect.
.
|
| Standard_EXPORT 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_EXPORT Standard_Integer | FontIndex () const |
| | Returns the current font index according to the font style aspect
.
|
| Standard_EXPORT Standard_Integer | ColorIndex () const |
| | Returns the current color index according to the color aspect
.
|
| Standard_EXPORT void | SetFontIndex (const Standard_Integer anInd) |
| | Sets the current color index according to the color aspect
.
|
| Standard_EXPORT void | SetColorIndex (const Standard_Integer anInd) |
| | Sets the current color index according to the color aspect
.
|
| Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Attributes |
| Quantity_Color | myColor |
| Aspect_FontStyle | myFont |
| Quantity_PlaneAngle | myRelativeSlant |
| Aspect_TypeOfText | myType |
| Standard_Boolean | myIsUnderlined |
| Standard_Integer | myFontIndex |
| Standard_Integer | myColorIndex |