|
Castor3D
..
|
An overlay with a text. More...
Inheritance diagram for Castor3D::TextOverlay:
Collaboration diagram for Castor3D::TextOverlay:Classes | |
| class | BinaryParser |
| TextOverlay loader. More... | |
| class | TextLoader |
| TextOverlay loader. More... | |
| struct | Vertex |
| Holds specific vertex data for a TextOverlay. More... | |
Public Member Functions | |
| DECLARE_VECTOR (Vertex, Vertex) | |
| DECLARE_MAP (char32_t, Castor::Position, GlyphPosition) | |
| C3D_API | TextOverlay () |
| Constructor. More... | |
| virtual C3D_API | ~TextOverlay () |
| Destructor. More... | |
| C3D_API void | SetFont (Castor::String const &p_strFont) |
| Sets the text font. More... | |
| C3D_API Castor::String const & | GetFontName () const |
| Retrieves the font name. More... | |
| virtual C3D_API bool | IsChanged () const |
| FontTextureSPtr | GetFontTexture () const |
| VertexArray const & | GetTextVertex () const |
| Retrieves the panel vertex buffer. More... | |
| Castor::String | GetCaption () const |
| Retrieves the overlay text. More... | |
| void | SetCaption (Castor::String const &p_caption) |
| Sets the overlay text. More... | |
| void | SetCaption (Castor::OutputStream const &p_caption) |
| Sets the overlay text. More... | |
| void | SetTextWrappingMode (eTEXT_WRAPPING_MODE p_mode) |
| Sets text wrapping mode. More... | |
| eHALIGN | GetHAlign () const |
| Retrieves the horizontal alignment. More... | |
| eVALIGN | GetVAlign () const |
| Retrieves the vertical alignment. More... | |
| void | SetHAlign (eHALIGN p_align) |
| Defines the horizontal alignment. More... | |
| void | SetVAlign (eVALIGN p_align) |
| Defines the vertical alignment. More... | |
| void | SetTexturingMode (eTEXT_TEXTURING_MODE p_mode) |
| Defines the text texture mapping mode. More... | |
Public Member Functions inherited from Castor3D::OverlayCategory | |
| DECLARE_VECTOR (Vertex, Vertex) | |
| C3D_API | OverlayCategory (eOVERLAY_TYPE p_type) |
| Constructor. More... | |
| virtual C3D_API | ~OverlayCategory () |
| Destructor. More... | |
| C3D_API void | Update () |
| Updates the overlay position, size... More... | |
| C3D_API void | Render () |
| Draws the overlay. More... | |
| virtual C3D_API void | SetMaterial (MaterialSPtr p_pMaterial) |
| Sets the material. More... | |
| C3D_API Castor::String const & | GetOverlayName () const |
| Retrieves the overlay name. More... | |
| C3D_API Castor::Position | GetAbsolutePosition (Castor::Size const &p_size) const |
| Retrieves the absolute overlay position, in pixels. More... | |
| C3D_API Castor::Size | GetAbsoluteSize (Castor::Size const &p_size) const |
| Retrieves the absolute overlay size, in pixels. More... | |
| C3D_API Castor::Point2d | GetAbsolutePosition () const |
| Retrieves the absolute overlay position. More... | |
| C3D_API Castor::Point2d | GetAbsoluteSize () const |
| Retrieves the absolute overlay size. More... | |
| C3D_API bool | IsSizeChanged () const |
| C3D_API bool | IsPositionChanged () const |
| void | SetPosition (Castor::Point2d const &p_position) |
| Sets the overlay position. More... | |
| void | SetSize (Castor::Point2d const &p_size) |
| Sets the overlay size. More... | |
| Castor::Point2d const & | GetSize () const |
| Retrieves the overlay size. More... | |
| Castor::Point2d const & | GetPosition () const |
| Retrieves the overlay position. More... | |
| Castor::Size const & | GetPixelSize () const |
| Retrieves the overlay size. More... | |
| Castor::Position const & | GetPixelPosition () const |
| Retrieves the overlay position. More... | |
| Castor::Point2d & | GetSize () |
| Retrieves the overlay size. More... | |
| Castor::Point2d & | GetPosition () |
| Retrieves the overlay position. More... | |
| Castor::Size & | GetPixelSize () |
| Retrieves the overlay size. More... | |
| Castor::Position & | GetPixelPosition () |
| Retrieves the overlay position. More... | |
| eOVERLAY_TYPE | GetType () const |
| Retrieves the overlay type. More... | |
| bool | IsVisible () const |
| Retrieves the visibility status. More... | |
| MaterialSPtr | GetMaterial () const |
| Retrieves the material. More... | |
| int | GetIndex () const |
| Retrieves the index. More... | |
| int | GetLevel () const |
| Retrieves the level. More... | |
| Overlay const & | GetOverlay () const |
| Retrieves the overlay. More... | |
| Overlay & | GetOverlay () |
| Retrieves the overlay. More... | |
| void | SetOverlay (Overlay *val) |
| Sets the overlay. More... | |
| void | SetVisible (bool val) |
| Sets the visibility status. More... | |
| void | SetPixelPosition (Castor::Position const &val) |
| Sets the overlay position. More... | |
| void | SetPixelSize (Castor::Size const &val) |
| Sets the overlay size. More... | |
| void | SetOrder (int p_index, int p_level) |
| Sets the overlay order. More... | |
| void | SetUV (Castor::Point4d const &val) |
| Sets the overlay UV. More... | |
| Castor::Point4d const & | GetUV () const |
| Retrieves the overlay UV. More... | |
Static Public Member Functions | |
| static C3D_API OverlayCategorySPtr | Create () |
| Creation function, used by the factory. More... | |
Protected Attributes | |
| VertexArray | m_arrayVtx |
| The vertex buffer data. More... | |
| Castor::String | m_currentCaption |
| The current overlay caption. More... | |
| Castor::String | m_previousCaption |
| The previous overlay caption. More... | |
| FontTextureWPtr | m_fontTexture |
| The texture associated to the overlay font. More... | |
| eTEXT_WRAPPING_MODE | m_wrappingMode { eTEXT_WRAPPING_MODE_NONE } |
| The wrapping mode. More... | |
| eHALIGN | m_hAlign { eHALIGN_LEFT } |
| The horizontal alignment. More... | |
| eVALIGN | m_vAlign { eVALIGN_CENTER } |
| The vertical alignment. More... | |
| bool | m_textChanged { true } |
| Tells if the text (caption, wrap mode, or alignments) has changed. More... | |
| uint32_t | m_tabSize { 4 } |
| The size (in spaces) of tabulation character. More... | |
| uint32_t | m_connection { 0 } |
| The connection to the FontTexture changed notification signal. More... | |
| eTEXT_TEXTURING_MODE | m_texturingMode { eTEXT_TEXTURING_MODE_TEXT } |
| The text texture mapping mode. More... | |
| TextureCoordsArray | m_arrayTextTexture |
| The text texture coordinates buffer data. More... | |
Protected Attributes inherited from Castor3D::OverlayCategory | |
| Overlay * | m_pOverlay |
| The overlay. More... | |
| Castor::Point2d | m_position |
| The relative position (to parent or screen) More... | |
| Castor::Point2d | m_ptSize |
| The relative size (to parent or screen) More... | |
| Castor::Position | m_pxPosition |
| The relative position (to parent or screen), in pixels. More... | |
| Castor::Size | m_size |
| The absolute size in pixels. More... | |
| bool | m_visible |
| The visibility. More... | |
| MaterialWPtr | m_pMaterial |
| The material used by the overlay. More... | |
| int | m_index |
| The overlay index. More... | |
| int | m_level |
| The overlay level. More... | |
| Castor::String | m_strMatName |
| The material name. More... | |
| eOVERLAY_TYPE | m_type |
| The overlay type. More... | |
| bool | m_sizeChanged |
| Tells if this overlay's size has changed. More... | |
| bool | m_positionChanged |
| Tells if this overlay's position has changed. More... | |
| Castor::Point4d | m_uv |
| The UV for the panel. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Castor3D::OverlayCategory | |
| Castor::Point2d | DoGetTotalSize () const |
| virtual void | DoUpdatePosition () |
| Updates the overlay position, taking care of wanted pixel position. More... | |
| virtual void | DoUpdateSize () |
| Updates the overlay size, taking care of wanted pixel size. More... | |
An overlay with a text.
| C3D_API Castor3D::TextOverlay::TextOverlay | ( | ) |
Constructor.
|
virtual |
Destructor.
|
static |
Creation function, used by the factory.
| Castor3D::TextOverlay::DECLARE_MAP | ( | char32_t | , |
| Castor::Position | , | ||
| GlyphPosition | |||
| ) |
|
inline |
|
inline |
Retrieves the font name.
References GetFontTexture().
Here is the call graph for this function:
|
inline |
References m_fontTexture.
Referenced by GetFontName().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
true if this overlay's has changed. Reimplemented from Castor3D::OverlayCategory.
References m_textChanged.
|
inline |
Sets the overlay text.
| [in] | p_caption | The new value |
References m_currentCaption, and m_textChanged.
Referenced by SetCaption().
Here is the caller graph for this function:
|
inline |
Sets the overlay text.
| [in] | p_caption | The new value |
References SetCaption().
Here is the call graph for this function:| C3D_API void Castor3D::TextOverlay::SetFont | ( | Castor::String const & | p_strFont | ) |
Sets the text font.
| [in] | p_strFont | The new value |
|
inline |
Defines the horizontal alignment.
| [in] | p_align | The new value |
References m_hAlign, and m_textChanged.
|
inline |
Defines the text texture mapping mode.
| [in] | p_mode | The new value. |
References m_textChanged, and m_texturingMode.
|
inline |
Sets text wrapping mode.
| [in] | p_mode | The new value |
References m_textChanged, and m_wrappingMode.
|
inline |
Defines the vertical alignment.
| [in] | p_align | The new value |
References m_textChanged, and m_vAlign.
|
protected |
The text texture coordinates buffer data.
|
protected |
The vertex buffer data.
Referenced by GetTextVertex().
|
protected |
The connection to the FontTexture changed notification signal.
|
protected |
The current overlay caption.
Referenced by GetCaption(), and SetCaption().
|
protected |
The texture associated to the overlay font.
Referenced by GetFontTexture().
|
protected |
The horizontal alignment.
Referenced by GetHAlign(), and SetHAlign().
|
protected |
The previous overlay caption.
|
protected |
The size (in spaces) of tabulation character.
|
protected |
Tells if the text (caption, wrap mode, or alignments) has changed.
Referenced by IsChanged(), SetCaption(), SetHAlign(), SetTexturingMode(), SetTextWrappingMode(), and SetVAlign().
|
protected |
The text texture mapping mode.
Referenced by SetTexturingMode().
|
protected |
The vertical alignment.
Referenced by GetVAlign(), and SetVAlign().
|
protected |
The wrapping mode.
Referenced by SetTextWrappingMode().
1.8.15