ELVE  1
ELVE Logic Visualization Explorer
/home/travis/build/stdgregwar/elve/Core/interfaces/FileExporterPlugin.cpp
00001 #include "FileExporterPlugin.h"
00002 #include "GraphWidget.h"
00003 
00004 namespace Elve {
00005 
00006 FileExporterPlugin::FileExporterPlugin()
00007 {
00008 }
00009 
00010 QGraphicsScene* FileExporterPlugin::sceneForGraph(const SharedEGraph& eg) {
00011     if(eg->view()) {
00012         return eg->view()->scene();
00013     } else {
00014         if(eg->layout()) {
00015             GraphWidget* gw = new GraphWidget(); //TODO manage memory
00016             gw->setGraph(eg);
00017             return eg->view()->scene();
00018         } else {
00019             return nullptr;
00020         }
00021     }
00022 }
00023 
00024 }
 All Classes Functions