![]() |
|
PhoenixInkscape
1.0.0
Batch convert SVG to PNG with Inkscape
|
#include "convertToString.h"#include "PPath.h"#include "OptionParser.h"#include "pxml_utils.h"#include "pinkscape_slide.h"
Include dependency graph for main.cpp:Go to the source code of this file.
Classes | |
| struct | PLayer |
| Get the begin and end slide for current layer. More... | |
Typedefs | |
| typedef std::vector< long unsigned int > | PSlide |
| Slide composed of layer. | |
| typedef std::vector< PLayer > | PVecLayer |
| Vector of layer. | |
| typedef std::vector< PSlide > | PVecSlide |
| Define the layer in slide. | |
Functions | |
| OptionParser | createOptionParser () |
| Create the OptionParser of this program. | |
| void | createSlideWithLayer (PSlide &slide, const PVecLayer &vecLayerSlide, long unsigned int index) |
| Create the slide to be generated. | |
| void | createVecSlide (PVecSlide &vecSlide, PVecLayer &vecLayerSlide) |
| Create the vector of slides. | |
| void | createVectorSlide (PVecLayer &vecLayerSlide, const PVecXml &vecLayer) |
| Create the vector of slide layer. | |
| PString | getInkscapeLabel (const PXml &layerXml) |
| Get the inkscape label of current PXml. | |
| PString | getSlideNumber (long unsigned int i) |
| Convert the slide index into string. | |
| int | main (int argc, char **argv) |
| int | processFiles (const std::vector< PPath > &listInputFile) |
| Process all the input files. | |
| bool | processFileSvg (const PPath &inputFile) |
| Process all the input files. | |
| bool | saveSlides (POutoutMode &outputMode, const PPath &baseOutputName, const PVecSlide &vecSlides, const PVecXml &vecLayerXml, const PXml &lighRoot) |
| Save the slides. | |
| typedef std::vector<long unsigned int> PSlide |
| OptionParser createOptionParser | ( | ) |
Create the OptionParser of this program.
Definition at line 17 of file main.cpp.
Referenced by main().
Here is the caller graph for this function:| void createSlideWithLayer | ( | PSlide & | slide, |
| const PVecLayer & | vecLayerSlide, | ||
| long unsigned int | index ) |
Create the slide to be generated.
| [out] | slide | : slide to be generated |
| vecLayerSlide | : vector of the desired slides for the layers | |
| index | : index of the current slide to be generated |
Definition at line 111 of file main.cpp.
Referenced by createVecSlide().
Here is the caller graph for this function:Create the vector of slides.
| [out] | vecSlide | : vector of slides to be created |
| vecLayerSlide | : vector of the desired slides for the layers |
Definition at line 125 of file main.cpp.
References createSlideWithLayer().
Referenced by processFileSvg().
Here is the call graph for this function:
Here is the caller graph for this function:| void createVectorSlide | ( | PVecLayer & | vecLayerSlide, |
| const PVecXml & | vecLayer ) |
Create the vector of slide layer.
| [out] | vecLayerSlide | : output vector of layer slide |
| vecLayer | : vector of layer from svg file |
Definition at line 66 of file main.cpp.
References PLayer::begin, PLayer::command, PLayer::end, and getInkscapeLabel().
Referenced by processFileSvg().
Here is the call graph for this function:
Here is the caller graph for this function:| PString getInkscapeLabel | ( | const PXml & | layerXml | ) |
Get the inkscape label of current PXml.
| layerXml | : inkscape layer |
Definition at line 53 of file main.cpp.
Referenced by createVectorSlide().
Here is the caller graph for this function:| PString getSlideNumber | ( | long unsigned int | i | ) |
Convert the slide index into string.
| i | : slide index |
Definition at line 151 of file main.cpp.
Referenced by saveSlides().
Here is the caller graph for this function:| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 290 of file main.cpp.
References createOptionParser(), and processFiles().
Here is the call graph for this function:| int processFiles | ( | const std::vector< PPath > & | listInputFile | ) |
Process all the input files.
| listInputFile | : list of the input files |
Definition at line 278 of file main.cpp.
References processFileSvg().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| bool processFileSvg | ( | const PPath & | inputFile | ) |
Process all the input files.
| inputFile | : list of the input files |
Definition at line 219 of file main.cpp.
References createVecSlide(), createVectorSlide(), POutoutMode::mapSlide, pinkscape_loadSlideMap(), pinkscape_saveSlideMap(), and saveSlides().
Referenced by processFiles().
Here is the call graph for this function:
Here is the caller graph for this function:| bool saveSlides | ( | POutoutMode & | outputMode, |
| const PPath & | baseOutputName, | ||
| const PVecSlide & | vecSlides, | ||
| const PVecXml & | vecLayerXml, | ||
| const PXml & | lighRoot ) |
Save the slides.
| baseOutputName | : base of the slides output names |
| vecSlides | : vector of slides to be created |
| vecLayerXml | : vector of xml layer to be used |
| lighRoot | : root xml without the layers in svg |
Definition at line 166 of file main.cpp.
References getSlideNumber(), and pinkscape_isSlideKnown().
Referenced by processFileSvg().
Here is the call graph for this function:
Here is the caller graph for this function: