MRPT  2.0.4
Classes | Macros | Functions | Variables
CCanvas.cpp File Reference
#include "img-precomp.h"
#include <mrpt/core/reverse_bytes.h>
#include <mrpt/core/round.h>
#include <mrpt/img/CCanvas.h>
#include <mrpt/img/CImage.h>
#include <mrpt/io/zip.h>
#include <mrpt/math/CMatrixFixed.h>
#include <mrpt/system/os.h>
#include <mrpt/system/string_utils.h>
#include <Eigen/Dense>
#include <cstring>
#include <map>
#include "mrpt_font_10x20.h"
#include "mrpt_font_5x7.h"
#include "mrpt_font_6x13.h"
#include "mrpt_font_6x13B.h"
#include "mrpt_font_6x13O.h"
#include "mrpt_font_9x15.h"
#include "mrpt_font_9x15B.h"
Include dependency graph for CCanvas.cpp:

Go to the source code of this file.

Classes

struct  FontData
 

Macros

#define LOAD_FONT(FONTNAME)
 

Functions

void init_fonts_list ()
 

Variables

map< string, FontDatalist_registered_fonts
 
bool list_fonts_init = false
 

Macro Definition Documentation

◆ LOAD_FONT

#define LOAD_FONT (   FONTNAME)
Value:
{ \
std::vector<uint8_t> tmpBuf(sizeof(mrpt_font_gz_##FONTNAME)); \
memcpy( \
&tmpBuf[0], mrpt_font_gz_##FONTNAME, \
sizeof(mrpt_font_gz_##FONTNAME)); \
tmpBuf, list_registered_fonts[#FONTNAME].data); \
}
map< string, FontData > list_registered_fonts
Definition: CCanvas.cpp:55
bool decompress_gz_data_block(const std::vector< uint8_t > &in_gz_data, std::vector< uint8_t > &out_data)
Decompress an array of bytes storing a gz-compressed stream of data into a memory buffer...
Definition: zip.cpp:358
static struct FontData data
Definition: gltext.cpp:144

Referenced by init_fonts_list().

Function Documentation

◆ init_fonts_list()

void init_fonts_list ( )

Definition at line 58 of file CCanvas.cpp.

References list_fonts_init, list_registered_fonts, and LOAD_FONT.

Referenced by mrpt::img::CCanvas::selectTextFont().

Here is the caller graph for this function:

Variable Documentation

◆ list_fonts_init

bool list_fonts_init = false

Definition at line 56 of file CCanvas.cpp.

Referenced by init_fonts_list().

◆ list_registered_fonts

map<string, FontData> list_registered_fonts

Definition at line 55 of file CCanvas.cpp.

Referenced by init_fonts_list(), and mrpt::img::CCanvas::selectTextFont().




Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020