// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Prs2d_AspectText_HeaderFile #define _Prs2d_AspectText_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Prs2d_AspectText_HeaderFile #include #endif #ifndef _Quantity_Color_HeaderFile #include #endif #ifndef _Aspect_FontStyle_HeaderFile #include #endif #ifndef _Quantity_PlaneAngle_HeaderFile #include #endif #ifndef _Aspect_TypeOfText_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Prs2d_AspectRoot_HeaderFile #include #endif #ifndef _Quantity_NameOfColor_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Quantity_Length_HeaderFile #include #endif #ifndef _Aspect_TypeOfFont_HeaderFile #include #endif class Quantity_Color; class Aspect_FontStyle; //! defines the attributes when drawing a text presentation
class Prs2d_AspectText : public Prs2d_AspectRoot { public: //! constructor using basic aspect types.
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 advanced 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); //! Change the color aspect with a predefined color.
Standard_EXPORT void SetColor(const Quantity_NameOfColor aColor) ; //! Change the color aspect.
Standard_EXPORT void SetColor(const Quantity_Color& aColor) ; //! Change the font style aspect
Standard_EXPORT void SetFont(const Aspect_FontStyle& aFont) ; //! Change the font style aspect with a new font type but
//! preserve all other parameters.
Standard_EXPORT void SetFont(const Aspect_TypeOfFont aFont) ; //! Change the font style aspect with a new font slant
//! added to the font original slant but preserve all other parameters.
Standard_EXPORT void SetRelativeSlant(const Quantity_PlaneAngle aSlant) ; //! Change the font style aspect with a new font height
//! and CapsHeight indicator but preserve all other parameters.
Standard_EXPORT void SetHeight(const Quantity_Length anHeight,const Standard_Boolean isCapsHeight) ; //! Change the char type aspect of bolded fonts.
Standard_EXPORT void SetType(const Aspect_TypeOfText aType) ; //! Enable / Disable the underlined char aspect.
Standard_EXPORT void SetUnderlined(const Standard_Boolean anIsUnderline) ; //! Returns the current parameters of this text aspect.
Standard_EXPORT void Values(Quantity_Color& aColor,Aspect_FontStyle& aFont,Quantity_PlaneAngle& aSlant,Aspect_TypeOfText& aType,Standard_Boolean& isUnderlined) const; //! Returns the current font index according to the font style aspect
Standard_EXPORT Standard_Integer FontIndex() const; //! Returns the current color index according to the color aspect
Standard_EXPORT Standard_Integer ColorIndex() const; //! Sets 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) ; DEFINE_STANDARD_RTTI(Prs2d_AspectText) protected: private: Quantity_Color myColor; Aspect_FontStyle myFont; Quantity_PlaneAngle myRelativeSlant; Aspect_TypeOfText myType; Standard_Boolean myIsUnderlined; Standard_Integer myFontIndex; Standard_Integer myColorIndex; }; // other Inline functions and methods (like "C++: function call" methods) #endif