Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Classes | Public Member Functions | Private Attributes | List of all members
OImageFont Class Reference

#include <OImageFont.h>

Inheritance diagram for OImageFont:
Inheritance graph
[legend]
Collaboration diagram for OImageFont:
Collaboration graph
[legend]

Classes

struct  OGLFontChar
 

Public Member Functions

 OImageFont ()
 
virtual ~OImageFont ()
 
virtual bool load (const std::string &filename)
 
const OGLFontChargetChar (unsigned char c) const
 
const int getKerning (unsigned char first, unsigned char second) const
 
- Public Member Functions inherited from OImage
 OImage ()
 
virtual ~OImage ()
 
unsigned char * getData () const
 
unsigned int getSizeX () const
 
unsigned int getSizeY () const
 
unsigned int getDepth () const
 
unsigned int getPixelSize () const
 

Private Attributes

std::vector< OGLFontChar_char
 
int _kernings [256][256] = {0}
 
OGLFontChar _invalid_char
 

Additional Inherited Members

- Protected Attributes inherited from OImage
unsigned char * _data
 
unsigned int _depth
 
unsigned int _sizeX
 
unsigned int _sizeY
 

Detailed Description

Definition at line 30 of file OImageFont.h.

Constructor & Destructor Documentation

◆ OImageFont()

OImageFont::OImageFont ( )

Definition at line 23 of file OImageFont.cpp.

◆ ~OImageFont()

OImageFont::~OImageFont ( )
virtual

Definition at line 25 of file OImageFont.cpp.

Member Function Documentation

◆ getChar()

const OImageFont::OGLFontChar & OImageFont::getChar ( unsigned char  c) const

returns a constant reference to the character

Definition at line 115 of file OImageFont.cpp.

Here is the caller graph for this function:

◆ getKerning()

const int OImageFont::getKerning ( unsigned char  first,
unsigned char  second 
) const

returns the kerning between the first and second characters

Definition at line 123 of file OImageFont.cpp.

Here is the caller graph for this function:

◆ load()

bool OImageFont::load ( const std::string &  filename)
virtual

Overloading of OImage::load

Implements OImage.

Definition at line 27 of file OImageFont.cpp.

Member Data Documentation

◆ _char

std::vector<OGLFontChar> OImageFont::_char
private

Definition at line 62 of file OImageFont.h.

◆ _invalid_char

OGLFontChar OImageFont::_invalid_char
private

Definition at line 64 of file OImageFont.h.

◆ _kernings

int OImageFont::_kernings[256][256] = {0}
private

Definition at line 63 of file OImageFont.h.


The documentation for this class was generated from the following files: