VizKit  3.3.7
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes
VizKit::VisualFontManager Class Reference

Management of font resources. More...

#include <VisualFontManager.h>

List of all members.

Public Member Functions

bool fontIsAvailableAsVisualizerResource (const char *const fontName)
 Answers the question whether a given font is available as private resource of the visualizer.
VisualFontActivationResult activateFont (const char *const fontName)
 Tries to activate font by loading a font resource.
void sortFontsByName (void)
 Sorts the gathered fonts by name.
void addFont (const char *const fontName)
 Adds a font name to the gathered list of font names.

Static Public Member Functions

static VisualFontManagergetInstance (void)
 Constructs a VisualFontManager.
static void dispose (void)
 Disposes the VisualFontManager.

Private Member Functions

 VisualFontManager ()
 The constructor.
 ~VisualFontManager ()
 The destructor.
 VisualFontManager (const VisualFontManager &other)
 Copy constructor.
VisualFontManageroperator= (const VisualFontManager &other)
 Assignment operator.

Static Private Attributes

static VisualFontManagertheVisualFontManager = NULL
 VisualFontManager is a singleton class.

Detailed Description

Management of font resources.


Constructor & Destructor Documentation

The constructor.

VisualFontManager is a singleton class. The constructor is private. New instance of class can only be created internally.

The destructor.

VisualFontManager is a singleton class. The destructor is private. Instance of class can only be destructed internally.

Copy constructor.

Parameters:
otherAnother VisualFontManager.
Remarks:
Explicitely declared in private section and not implemented to enforce uniqueness of singleton pattern.

Member Function Documentation

Tries to activate font by loading a font resource.

Parameters:
fontNameThe name of the font.
Returns:
The result of the operation.
void VizKit::VisualFontManager::addFont ( const char *const  fontName)

Adds a font name to the gathered list of font names.

Parameters:
fontNameThe name of the font to add.
void VisualFontManager::dispose ( void  ) [static]

Disposes the VisualFontManager.

bool VisualFontManager::fontIsAvailableAsVisualizerResource ( const char *const  fontName)

Answers the question whether a given font is available as private resource of the visualizer.

Parameters:
fontNameThe name of the font.
Returns:
True if font is available as private resource of the visualizer, false if not.
Remarks:
This function is a stub, custom tailored for VizKit and its packaging.

Constructs a VisualFontManager.

The VisualFontManager internally is a singleton. Returns a pointer to the initialized VisualFontManager.

Returns:
A pointer to the singleton instance.
VisualFontManager& VizKit::VisualFontManager::operator= ( const VisualFontManager other) [private]

Assignment operator.

Remarks:
Explicitely declared in private section and not implemented to enforce uniqueness of singleton pattern.

Sorts the gathered fonts by name.


Member Data Documentation

VisualFontManager is a singleton class.

Pointer to private instance is handled internally.


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

Generated on Sun May 3 2015 20:26:31 for VizKit by doxygen 1.8.0