#include <TextTTF.h>
Collaboration diagram for hippodraw::TextTTF:
It permits to have portable (X11, Win32) rendering for scalable fonts.
Definition at line 24 of file TextTTF.h.
Public Types | |
enum | Justification { LEFT = 0x01, RIGHT = 0x02, CENTER = 0x03, BOTTOM = 0x04, MIDDLE = 0x05, TOP = 0x06 } |
enum | ViewportMapping { NONE, RESCALE, ADJUST } |
Public Member Functions | |
void | render () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
void | setFileName (const std::string &) |
void | setJustification (Justification, Justification) |
void | setRotated (bool) |
void | setSize (float) |
void | setString (const std::string &) |
void | setStrings (const std::vector< std::string > &) |
TextTTF () | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
virtual | ~TextTTF () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
Private Member Functions | |
bool | getTextSizePixels (short &, short &) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
void | initFont () |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
void | renderCharacter (char) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
void | renderString (const std::string &) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// | |
bool | setup () |
Private Attributes | |
bool | fInitFont |
int | fPointSize |
bool | fRotated |
bool | fStatus |
TextTTF_Internal * | fTTF |
int | fViewportHeight |
int | fViewportWidth |
std::string | m_fileName |
Justification | m_horizontalJustification |
float | m_size |
std::vector< std::string > | m_strings |
Justification | m_verticalJustification |
ViewportMapping | m_viewportMapping |
|
|
|
|
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 57 of file TextTTF.cxx. References BOTTOM, fInitFont, fPointSize, fTTF, initFont(), LEFT, m_fileName, m_horizontalJustification, m_size, m_verticalJustification, m_viewportMapping, and NONE. |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 101 of file TextTTF.cxx. |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 633 of file TextTTF.cxx. References std::count(), fStatus, fTTF, and m_strings. Referenced by render(). |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 264 of file TextTTF.cxx. References fPointSize, fStatus, fTTF, and m_fileName. |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 144 of file TextTTF.cxx. References BOTTOM, CENTER, std::count(), fInitFont, fPointSize, fStatus, fTTF, getTextSizePixels(), initFont(), LEFT, m_horizontalJustification, m_size, m_strings, m_verticalJustification, m_viewportMapping, MIDDLE, NONE, renderString(), RIGHT, and TOP. Referenced by OpenGLView::draw_Text(). |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 439 of file TextTTF.cxx. References fRotated, and fTTF. Referenced by renderString(). |
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
Definition at line 421 of file TextTTF.cxx. References std::count(), fTTF, and renderCharacter(). Referenced by render(). |
|
Definition at line 118 of file TextTTF.cxx. References fInitFont, and m_fileName. |
|
Definition at line 135 of file TextTTF.cxx. References fInitFont, m_horizontalJustification, and m_verticalJustification. Referenced by OpenGLView::draw_Text(). |
|
Definition at line 140 of file TextTTF.cxx. References fRotated. Referenced by OpenGLView::draw_Text(). |
|
Definition at line 131 of file TextTTF.cxx. References fInitFont, and m_size. Referenced by OpenGLView::draw_Text(). |
|
Definition at line 122 of file TextTTF.cxx. References fInitFont, and m_strings. Referenced by OpenGLView::draw_Text(). |
|
Definition at line 127 of file TextTTF.cxx. |
|
|
|
Definition at line 65 of file TextTTF.h. Referenced by render(), setFileName(), setJustification(), setSize(), setString(), setStrings(), and TextTTF(). |
|
Definition at line 66 of file TextTTF.h. Referenced by initFont(), render(), and TextTTF(). |
|
Definition at line 69 of file TextTTF.h. Referenced by renderCharacter(), and setRotated(). |
|
Definition at line 63 of file TextTTF.h. Referenced by getTextSizePixels(), initFont(), render(), and ~TextTTF(). |
|
Definition at line 62 of file TextTTF.h. Referenced by getTextSizePixels(), initFont(), render(), renderCharacter(), renderString(), TextTTF(), and ~TextTTF(). |
|
|
|
|
|
Definition at line 55 of file TextTTF.h. Referenced by initFont(), setFileName(), and TextTTF(). |
|
Definition at line 58 of file TextTTF.h. Referenced by render(), setJustification(), and TextTTF(). |
|
|
|
Definition at line 56 of file TextTTF.h. Referenced by getTextSizePixels(), render(), setString(), and setStrings(). |
|
Definition at line 59 of file TextTTF.h. Referenced by render(), setJustification(), and TextTTF(). |
|
|