EMAN2
Public Member Functions | Private Attributes | List of all members
EMAN::EMFTGL::EMFTGLFontInstance Class Reference

A class for encapsulatiing a particular instance of an FTFont (pointer) Each FTFont is characterised by 5 parameters, them being the font mode, the font file name, the face size, whether or not display lists are being used, and depth (which is redundant, except when the font mode is EXTRUDE). More...

Collaboration diagram for EMAN::EMFTGL::EMFTGLFontInstance:
Collaboration graph
[legend]

Public Member Functions

 EMFTGLFontInstance (EMFTGL::FontMode mode, const string &file_name, const unsigned int face_size, const unsigned int d, const bool use_dl)
 Constructor - must supply the 5 important parameters. More...
 
 ~EMFTGLFontInstance ()
 
bool params_match (EMFTGL::FontMode mode, const string &file_name, const unsigned int face_size, const unsigned int depth, const bool use_dl)
 Checks to see if the argument params match the internally stored equivalents. More...
 
FTFont * get_font ()
 Get the pointer to the font. More...
 

Private Attributes

EMFTGL::FontMode font_mode
 Disallow copy construction. More...
 
string font_file_name
 
unsigned int face_size
 
unsigned int depth
 
bool use_display_lists
 
FTFont * font
 

Detailed Description

A class for encapsulatiing a particular instance of an FTFont (pointer) Each FTFont is characterised by 5 parameters, them being the font mode, the font file name, the face size, whether or not display lists are being used, and depth (which is redundant, except when the font mode is EXTRUDE).

Author
David Woolford
Date
July 2008

Definition at line 179 of file emftgl.h.

Constructor & Destructor Documentation

◆ EMFTGLFontInstance()

EMAN::EMFTGL::EMFTGLFontInstance::EMFTGLFontInstance ( EMFTGL::FontMode  mode,
const string &  file_name,
const unsigned int  face_size,
const unsigned int  d,
const bool  use_dl 
)

Constructor - must supply the 5 important parameters.

◆ ~EMFTGLFontInstance()

EMAN::EMFTGL::EMFTGLFontInstance::~EMFTGLFontInstance ( )

Member Function Documentation

◆ get_font()

FTFont * EMAN::EMFTGL::EMFTGLFontInstance::get_font ( )
inline

Get the pointer to the font.

Definition at line 193 of file emftgl.h.

193{ return font; }

References font.

◆ params_match()

bool EMAN::EMFTGL::EMFTGLFontInstance::params_match ( EMFTGL::FontMode  mode,
const string &  file_name,
const unsigned int  face_size,
const unsigned int  depth,
const bool  use_dl 
)

Checks to see if the argument params match the internally stored equivalents.

Member Data Documentation

◆ depth

unsigned int EMAN::EMFTGL::EMFTGLFontInstance::depth
private

Definition at line 203 of file emftgl.h.

◆ face_size

unsigned int EMAN::EMFTGL::EMFTGLFontInstance::face_size
private

Definition at line 202 of file emftgl.h.

◆ font

FTFont* EMAN::EMFTGL::EMFTGLFontInstance::font
private

Definition at line 205 of file emftgl.h.

Referenced by get_font().

◆ font_file_name

string EMAN::EMFTGL::EMFTGLFontInstance::font_file_name
private

Definition at line 201 of file emftgl.h.

◆ font_mode

EMFTGL::FontMode EMAN::EMFTGL::EMFTGLFontInstance::font_mode
private

Disallow copy construction.

Disallow Assignment

Definition at line 200 of file emftgl.h.

◆ use_display_lists

bool EMAN::EMFTGL::EMFTGLFontInstance::use_display_lists
private

Definition at line 204 of file emftgl.h.


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