21 #ifndef _IMPORTMODULE_H 22 #define _IMPORTMODULE_H 24 #include <tulip/Plugin.h> 31 static const std::string IMPORT_CATEGORY =
"Import";
44 if (context !=
nullptr) {
47 graph = algoritmContext->
graph;
49 dataSet = algoritmContext->
dataSet;
59 virtual std::list<std::string> fileExtensions()
const {
60 return std::list<std::string>();
71 virtual std::list<std::string> gzipFileExtensions()
const {
72 return std::list<std::string>();
82 std::list<std::string> allFileExtensions()
const {
83 std::list<std::string> zext(gzipFileExtensions());
84 std::list<std::string> ext(fileExtensions());
85 ext.splice(ext.end(), zext);
89 std::string category()
const override {
90 return IMPORT_CATEGORY;
93 std::string icon()
const override {
94 return ":/tulip/gui/icons/64/document-import.png";
112 PluginProgress *pluginProgress;
PluginProgress * pluginProgress
A progress handler to notify the user about the progress state of the algorithm when run...
Graph * importGraph(const std::string &format, DataSet &dataSet, PluginProgress *progress=nullptr, Graph *newGraph=nullptr)
Imports a graph using the specified import plugin with the parameters stored in the DataSet...
DataSet * dataSet
Input parameters set by the user when running the plugin.
Contains runtime parameters for a plugin.
Top-level interface for plug-ins.
Parameters structure for a tlp::Algorithm.
Graph * graph
The pointer to the tlp::Graph on which the algorithm will be run.