22 #ifndef _IMPORTMODULE_H 23 #define _IMPORTMODULE_H 25 #include <tulip/Plugin.h> 32 static const std::string IMPORT_CATEGORY =
"Import";
49 assert(algoritmContext != NULL);
50 graph = algoritmContext->
graph;
52 dataSet = algoritmContext->
dataSet;
62 virtual std::list<std::string> fileExtensions()
const {
63 return std::list<std::string>();
74 virtual std::list<std::string> gzipFileExtensions()
const {
75 return std::list<std::string>();
85 std::list<std::string> allFileExtensions()
const {
86 std::list<std::string> zext(gzipFileExtensions());
87 std::list<std::string> ext(fileExtensions());
88 ext.splice(ext.end(), zext);
92 virtual std::string category()
const {
93 return IMPORT_CATEGORY;
96 std::string icon()
const {
97 return ":/tulip/gui/icons/64/document-import.png";
115 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.
Graph * importGraph(const std::string &format, DataSet &dataSet, PluginProgress *progress=NULL, Graph *newGraph=NULL)
Imports a graph using the specified import plugin with the parameters stored in the DataSet...
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.