21 #ifndef _EXPORTMODULE_H 22 #define _EXPORTMODULE_H 25 #include <tulip/Plugin.h> 26 #include <tulip/Algorithm.h> 30 static const std::string EXPORT_CATEGORY =
"Export";
43 if (context !=
nullptr) {
46 graph = algoritmContext->
graph;
48 dataSet = algoritmContext->
dataSet;
52 ~ExportModule()
override {}
54 std::string category()
const override {
55 return EXPORT_CATEGORY;
58 std::string icon()
const override {
59 return ":/tulip/gui/icons/64/document-export.png";
68 virtual std::string fileExtension()
const = 0;
78 virtual std::list<std::string> gzipFileExtensions()
const {
79 return std::list<std::string>();
90 std::list<std::string> allFileExtensions()
const {
91 std::list<std::string> ext(gzipFileExtensions());
92 ext.push_back(fileExtension());
106 PluginProgress *pluginProgress;
PluginProgress * pluginProgress
A progress handler to notify the user about the progress state of the algorithm when run...
DataSet * dataSet
Input parameters set by the user when running the plugin.
Contains runtime parameters for a plugin.
Top-level interface for plug-ins.
bool exportGraph(Graph *graph, std::ostream &outputStream, const std::string &format, DataSet &dataSet, PluginProgress *progress=nullptr)
Exports a graph using the specified export plugin with parameters stored in the DataSet.
Parameters structure for a tlp::Algorithm.
Graph * graph
The pointer to the tlp::Graph on which the algorithm will be run.