22 #ifndef _EXPORTMODULE_H 23 #define _EXPORTMODULE_H 26 #include <tulip/Plugin.h> 27 #include <tulip/Algorithm.h> 31 static const std::string EXPORT_CATEGORY =
"Export";
47 assert(algoritmContext != NULL);
48 graph = algoritmContext->
graph;
50 dataSet = algoritmContext->
dataSet;
54 virtual ~ExportModule() {}
56 virtual std::string category()
const {
57 return EXPORT_CATEGORY;
60 std::string icon()
const {
61 return ":/tulip/gui/icons/64/document-export.png";
70 virtual std::string fileExtension()
const = 0;
79 virtual std::list<std::string> gzipFileExtensions()
const {
80 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=NULL)
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.