EMAN2
Public Member Functions | Private Attributes
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]

List of all members.

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.
 ~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.
FTFont * get_font ()
 Get the pointer to the font.

Private Attributes

EMFTGL::FontMode font_mode
 Disallow copy construction.
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 189 of file emftgl.h.


Constructor & Destructor Documentation

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.

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

Member Function Documentation

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

Get the pointer to the font.

Definition at line 203 of file emftgl.h.

References font.

{ return font; }
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

Definition at line 213 of file emftgl.h.

Definition at line 212 of file emftgl.h.

Definition at line 215 of file emftgl.h.

Referenced by get_font().

Definition at line 211 of file emftgl.h.

Disallow copy construction.

Disallow Assignment

Definition at line 210 of file emftgl.h.

Definition at line 214 of file emftgl.h.


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