bpp-core3  3.0.0
bpp::XFigLaTeXFontManager Class Referenceabstract

LaTeX font manager for the XFig format. More...

#include <Bpp/Graphics/Fig/XFigLaTeXFontManager.h>

+ Inheritance diagram for bpp::XFigLaTeXFontManager:
+ Collaboration diagram for bpp::XFigLaTeXFontManager:

Public Member Functions

 XFigLaTeXFontManager ()
 
virtual ~XFigLaTeXFontManager ()
 
int getCode (const Font &font) const
 
const FontgetFont (int &code) const
 
virtual const FontgetFont (CodeType &code) const =0
 
std::vector< int > getCodes () const
 
std::vector< FontgetFonts () const
 
size_t getNumberOfFonts () const
 

Protected Member Functions

void registerFont_ (const Font &font, int code)
 

Private Attributes

std::vector< Fontfonts_
 
std::vector< int > codes_
 

Detailed Description

LaTeX font manager for the XFig format.

Definition at line 52 of file XFigLaTeXFontManager.h.

Constructor & Destructor Documentation

◆ XFigLaTeXFontManager()

XFigLaTeXFontManager::XFigLaTeXFontManager ( )

◆ ~XFigLaTeXFontManager()

virtual bpp::XFigLaTeXFontManager::~XFigLaTeXFontManager ( )
inlinevirtual

Definition at line 58 of file XFigLaTeXFontManager.h.

Member Function Documentation

◆ getCode()

int bpp::AbstractFontManager< int >::getCode ( const Font font) const
inlinevirtualinherited
Parameters
fontThe font to look for.
Returns
The code associated to a given font.

Implements bpp::FontManager< CodeType >.

Definition at line 110 of file FontManager.h.

◆ getCodes()

std::vector<int > bpp::AbstractFontManager< int >::getCodes ( ) const
inlinevirtualinherited
Returns
All valid codes.

Implements bpp::FontManager< CodeType >.

Definition at line 133 of file FontManager.h.

◆ getFont() [1/2]

template<class CodeType >
virtual const Font& bpp::FontManager< CodeType >::getFont ( CodeType &  code) const
pure virtualinherited
Parameters
codeThe code to look for.
Returns
The font associated to a given code.
Exceptions
exceptionif the code is not valid.

◆ getFont() [2/2]

const Font& bpp::AbstractFontManager< int >::getFont ( int &  code) const
inlineinherited

Definition at line 122 of file FontManager.h.

◆ getFonts()

std::vector<Font> bpp::AbstractFontManager< int >::getFonts ( ) const
inlinevirtualinherited
Returns
All available fonts.

Implements bpp::FontManager< CodeType >.

Definition at line 134 of file FontManager.h.

◆ getNumberOfFonts()

size_t bpp::AbstractFontManager< int >::getNumberOfFonts ( ) const
inlinevirtualinherited
Returns
The total number of fonts available.

Implements bpp::FontManager< CodeType >.

Definition at line 135 of file FontManager.h.

◆ registerFont_()

void bpp::AbstractFontManager< int >::registerFont_ ( const Font font,
int  code 
)
inlineprotectedinherited

Definition at line 138 of file FontManager.h.

Member Data Documentation

◆ codes_

std::vector<int > bpp::AbstractFontManager< int >::codes_
privateinherited

Definition at line 104 of file FontManager.h.

◆ fonts_

std::vector<Font> bpp::AbstractFontManager< int >::fonts_
privateinherited

Definition at line 103 of file FontManager.h.


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