// 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 _Graphic3d_AspectText3d_HeaderFile #define _Graphic3d_AspectText3d_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Graphic3d_AspectText3d_HeaderFile #include #endif #ifndef _TCollection_AsciiString_HeaderFile #include #endif #ifndef _Quantity_Color_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif #ifndef _Aspect_TypeOfStyleText_HeaderFile #include #endif #ifndef _Aspect_TypeOfDisplayText_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _OSD_FontAspect_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif class Graphic3d_AspectTextDefinitionError; class Quantity_Color; //! Creates and updates a group of attributes for
//! text primitives. This group contains the colour,
//! font, expansion factor (height/width ratio), and
//! inter-character space.
class Graphic3d_AspectText3d : public MMgt_TShared { public: //! Creates a context table for text primitives
//! defined with the following default values:
Standard_EXPORT Graphic3d_AspectText3d(); //! Creates a context table for text primitives
//! defined with the specified values.
//! AFont may be to take means from User(example "Courier New")
//! or Font described in OpenGl_FontName(example Graphic3d_NOF_ASCII_MONO)
//! or use default font("Courier")
Standard_EXPORT Graphic3d_AspectText3d(const Quantity_Color& AColor,const Standard_CString AFont,const Standard_Real AExpansionFactor,const Standard_Real ASpace,const Aspect_TypeOfStyleText AStyle = Aspect_TOST_NORMAL,const Aspect_TypeOfDisplayText ADisplayType = Aspect_TODT_NORMAL); //! Modifies the colour of .
Standard_EXPORT void SetColor(const Quantity_Color& AColor) ; //! Modifies the expansion factor (height/width ratio)
//! If the factor is less than 1, the characters will
//! be higher than they are wide.
Standard_EXPORT void SetExpansionFactor(const Standard_Real AFactor) ; //! Modifies the font of .
Standard_EXPORT void SetFont(const Standard_CString AFont) ; //! Modifies the space between the characters.
Standard_EXPORT void SetSpace(const Standard_Real ASpace) ; //! Modifies the style of the text.
//! TOST_NORMAL Default text. The text is displayed like any other graphic object.
//! This text can be hidden by another object that is nearest from the
//! point of view.
//! TOST_ANNOTATION The text is always visible. The texte is displayed
//! over the other object according to the priority.
Standard_EXPORT void SetStyle(const Aspect_TypeOfStyleText AStyle) ; //! Define the display type of the text.
Standard_EXPORT void SetDisplayType(const Aspect_TypeOfDisplayText ADisplayType) ; //! Modifies the colour of the subtitle for the TODT_SUBTITLE TextDisplayType
//! and the colour of backgroubd for the TODT_DEKALE TextDisplayType.
Standard_EXPORT void SetColorSubTitle(const Quantity_Color& AColor) ; //! Turns usage of text zoomable on/off
Standard_EXPORT void SetTextZoomable(const Standard_Boolean AFlag) ; //! Returns TRUE when the Text Zoomable is on.
Standard_EXPORT Standard_Boolean GetTextZoomable() const; //! Turns usage of text rotated
Standard_EXPORT void SetTextAngle(const Standard_Real AAngle) ; //! Returns Angle of degree
Standard_EXPORT Standard_Real GetTextAngle() const; //! Turns usage of Aspect text
Standard_EXPORT void SetTextFontAspect(const OSD_FontAspect AFontAspect) ; //! Returns text FontAspect
Standard_EXPORT OSD_FontAspect GetTextFontAspect() const; //! Returns the current values of the group .
Standard_EXPORT void Values(Quantity_Color& AColor,Standard_CString& AFont,Standard_Real& AnExpansionFactor,Standard_Real& ASpace) const; //! Returns the current values of the group .
Standard_EXPORT void Values(Quantity_Color& AColor,Standard_CString& AFont,Standard_Real& AnExpansionFactor,Standard_Real& ASpace,Aspect_TypeOfStyleText& AStyle,Aspect_TypeOfDisplayText& ADisplayType,Quantity_Color& AColorSubTitle) const; //! Returns the current values of the group .
Standard_EXPORT void Values(Quantity_Color& AColor,Standard_CString& AFont,Standard_Real& AnExpansionFactor,Standard_Real& ASpace,Aspect_TypeOfStyleText& AStyle,Aspect_TypeOfDisplayText& ADisplayType,Quantity_Color& AColorSubTitle,Standard_Boolean& ATextZoomable,Standard_Real& ATextAngle) const; //! Returns the current values of the group .
Standard_EXPORT void Values(Quantity_Color& AColor,Standard_CString& AFont,Standard_Real& AnExpansionFactor,Standard_Real& ASpace,Aspect_TypeOfStyleText& AStyle,Aspect_TypeOfDisplayText& ADisplayType,Quantity_Color& AColorSubTitle,Standard_Boolean& ATextZoomable,Standard_Real& ATextAngle,OSD_FontAspect& ATextFontAspect) const; DEFINE_STANDARD_RTTI(Graphic3d_AspectText3d) protected: private: TCollection_AsciiString MyFont; Quantity_Color MyColor; Standard_Real MyFactor; Standard_Real MySpace; Aspect_TypeOfStyleText MyStyle; Aspect_TypeOfDisplayText MyDisplayType; Quantity_Color MyColorSubTitle; Standard_Boolean MyTextZoomable; Standard_Real MyTextAngle; OSD_FontAspect MyTextFontAspect; }; // other Inline functions and methods (like "C++: function call" methods) #endif