]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Workspace.h
More on graph editor
[cpPlugins.git] / lib / cpPlugins / Interface / Workspace.h
index 9bad734953c89f98b01e526db4aa21ad9af13ef2..6cf157d37c7921f1e013310be4050871cd9553bd 100644 (file)
@@ -9,6 +9,9 @@
 #include <set>
 #include <string>
 
+// Some forward declarations
+class QWidget;
+
 namespace cpPlugins
 {
   namespace Interface
@@ -52,6 +55,7 @@ namespace cpPlugins
       std::string SaveWorkspace( const std::string& fname ) const;
 
       // Graph management
+      void Clear( );
       TGraph* GetGraph( );
       const TGraph* GetGraph( ) const;
       bool CreateFilter( const std::string& filter, const std::string& name );
@@ -62,13 +66,15 @@ namespace cpPlugins
         );
       TParameters* GetParameters( const std::string& name );
       const TParameters* GetParameters( const std::string& name ) const;
+      TFilter* GetFilter( const std::string& name );
+      const TFilter* GetFilter( const std::string& name ) const;
 
       // Graph reduction
       bool Reduce( const std::string& name );
 
       // Pipeline execution
       std::string Execute( );
-      std::string Execute( const std::string& name );
+      std::string Execute( const std::string& name, QWidget* p = NULL );
 
     protected:
       void _UpdateLoadedPluginsInformation( );