Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File 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...

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 Assignment.
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.

00203 { 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

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

Definition at line 213 of file emftgl.h.

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

Definition at line 212 of file emftgl.h.

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

Definition at line 215 of file emftgl.h.

string EMAN::EMFTGL::EMFTGLFontInstance::font_file_name [private]
 

Definition at line 211 of file emftgl.h.

EMFTGL::FontMode EMAN::EMFTGL::EMFTGLFontInstance::font_mode [private]
 

Disallow Assignment.

Definition at line 210 of file emftgl.h.

bool EMAN::EMFTGL::EMFTGLFontInstance::use_display_lists [private]
 

Definition at line 214 of file emftgl.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 11 13:48:01 2013 for EMAN2 by  doxygen 1.3.9.1