JKQTPlotter
an extensive Qt4/Qt5 Plotter framework (including a fast variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
JKQTMathText LaTeX-Renderer for Qt

This group contains JKQTMathText, a self-contained LaTeX-renderer for Qt. It is used to renderer labels in JKQTPlotter, but can be used independently. The class does not depend on any library, except Qt. In particular it actually parses a LaTeX string and draws it in pure C++. It does NOT rely on an installed LaTeX for the rendering! More...

Collaboration diagram for JKQTMathText LaTeX-Renderer for Qt:

Modules

 JKQTMathText Render-Tree Items
 

Macros

#define JKQTMATHTEXT_LIB_EXPORT
 

Functions

JKQTMATHTEXT_LIB_EXPORT void initJKQTMathTextResources ()
 initialized Qt-ressources necessary for JKQTMathText More...
 

Detailed Description

This group contains JKQTMathText, a self-contained LaTeX-renderer for Qt. It is used to renderer labels in JKQTPlotter, but can be used independently. The class does not depend on any library, except Qt. In particular it actually parses a LaTeX string and draws it in pure C++. It does NOT rely on an installed LaTeX for the rendering!

Examples for the usage of this class can be found here:

Macro Definition Documentation

◆ JKQTMATHTEXT_LIB_EXPORT

#define JKQTMATHTEXT_LIB_EXPORT

This define allows to export functions and classes from the jkqtcommon-library when building a dynamic/shared library. Usage is as follows:

#include "jkqtmathtext/jkqtmathtext_imexport.h"
class JKQTMATHTEXT_LIB_EXPORT exportedClassName {
...
};
JKQTMATHTEXT_LIB_EXPORT void exportedFunctionName();

These macros append the appropriate __declspec(dllexport) and __declspec(dllimport) to the function/class body and thus tell windows compilers to export these sysmbols from the shared library, or import them from a shared library.

Note that these attributes are only necessary on windows systems!

These macros are controlled by two other macros:

  • JKQTMATHTEXT_LIB_IN_DLL declares that the application should link against a shared version of JKQTMathText, i.e. JKQTMathTextSharedLib_XYZ . This needs to be defined while compiling the library and while compiling any application linking against JKQTMathTextSharedLib_XYZ.
  • JKQTMATHTEXT_LIB_EXPORT_LIBRARY is only defined while compiling JKQTMathText into JKQTMathTextSharedLib_XYZ and ensures thet the symbols are exported. If it is not defined (e.g. while compiling an application), the symbols are imported


Function Documentation

◆ initJKQTMathTextResources()

JKQTMATHTEXT_LIB_EXPORT void initJKQTMathTextResources ( )

initialized Qt-ressources necessary for JKQTMathText

JKQTMATHTEXT_LIB_EXPORT
#define JKQTMATHTEXT_LIB_EXPORT
Definition: jkqtmathtext_imexport.h:98