DvisvgmProcess Class Reference
|
MathVizAnimator
0.0.1
|
The DvisvgmProcess class handles the conversion of DVI files to SVG format using the dvisvgm utility. More...
#include <dvisvgm_process.h>
Signals | |
| void | processFailed (const QFileInfo &dvi_file) |
| Signal emitted when the conversion process fails. More... | |
| void | processFinished (const QFileInfo &svg_file) |
| Signal emitted when the conversion process successfully finishes. More... | |
Public Member Functions | |
| DvisvgmProcess (const QFileInfo &dvi_file, QObject *parent=nullptr) | |
| Constructs a DvisvgmProcess object. More... | |
| QFileInfo | dviFile () const |
| Returns the QFileInfo object representing the DVI file. More... | |
Detailed Description
The DvisvgmProcess class handles the conversion of DVI files to SVG format using the dvisvgm utility.
This class inherits from QProcess and emits signals upon successful completion or failure of the conversion process. The class should be used as follows. First specify the necessary DVI file in the constructor of the class. When the conversion should be started call the QProcess::start() method. To get informed about the result of the conversion process, connect to the processFailed() and processFinished() signal of this class. The SVG File will be created in the same folder as the given DVI file having the same base name. After the conversion process the object can be destroyed.
Constructor & Destructor Documentation
◆ DvisvgmProcess()
|
explicit |
Constructs a DvisvgmProcess object.
- Parameters
-
dvi_file The QFileInfo object representing the DVI file to be converted. parent Optional pointer to the parent QObject.
Member Function Documentation
◆ dviFile()
|
inline |
Returns the QFileInfo object representing the DVI file.
- Returns
- QFileInfo object representing the DVI file.
◆ processFailed
|
signal |
Signal emitted when the conversion process fails.
- Parameters
-
dvi_file The QFileInfo object representing the DVI file that failed to convert.
◆ processFinished
|
signal |
Signal emitted when the conversion process successfully finishes.
- Parameters
-
svg_file The QFileInfo object representing the generated SVG file.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/mathvizanimator/checkouts/latest/libs/mva_svg/include/dvisvgm_process.h
- /home/docs/checkouts/readthedocs.org/user_builds/mathvizanimator/checkouts/latest/libs/mva_svg/src/dvisvgm_process.cpp
Generated by