X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPipelineEditor%2FEditor.h;h=cea95cbf0f93e587cc56d39cee0be5ff70a971d8;hb=24d0c2ad34de2cbd89fed76058f2995cdf81d239;hp=f7a2615027a7e60c63f8b06dd75d8f2231b80dfd;hpb=3ac87d29be6f3484efcfb3bcc204b7f99faa1eed;p=cpPlugins.git diff --git a/lib/cpPipelineEditor/Editor.h b/lib/cpPipelineEditor/Editor.h index f7a2615..cea95cb 100644 --- a/lib/cpPipelineEditor/Editor.h +++ b/lib/cpPipelineEditor/Editor.h @@ -3,7 +3,7 @@ #include #include -#include +#include #include #include @@ -39,8 +39,8 @@ namespace cpPipelineEditor typedef Editor Self; typedef QObject Superclass; - typedef cpPlugins::Interface::Workspace TWorkspace; - typedef TWorkspace::TFilter TFilter; + typedef cpPlugins::Workspace TWorkspace; + typedef cpPlugins::ProcessObject TFilter; typedef cpExtensions::DataStructures:: Graph< Block*, Connection*, std::string > TGraph; @@ -54,17 +54,53 @@ namespace cpPipelineEditor void setWorkspace( TWorkspace* ws ); std::string createFilter( - const std::string& filter, + const std::string& category, const std::string& filter, const QPointF& pnt = QPointF( qreal( 0 ), qreal( 0 ) ) ); + bool deleteFilter( const std::string& name ); + bool deleteConnection( + const std::string& src, const std::string& des, + const std::string& in, const std::string& out + ); void install( QGraphicsScene* s ); bool eventFilter( QObject* o, QEvent* e ); + void updateFilter( const std::string& filter_name ); + void showOutputData( + const std::string& filter_name, + const std::string& output_name + ); + void hideOutputData( + const std::string& filter_name, + const std::string& output_name + ); + void visualPropertiesOutputData( + const std::string& filter_name, + const std::string& output_name + ); + + signals: + void execFilter( const std::string& filter_name ); + void showFilterOutput( + const std::string& filter_name, + const std::string& output_name + ); + void hideFilterOutput( + const std::string& filter_name, + const std::string& output_name + ); + void visualPropertiesFilterOutput( + const std::string& filter_name, + const std::string& output_name + ); + private: QGraphicsItem* itemAt( const QPointF& pos ); - inline Block* _createBlock( TFilter* f, const QPointF& pnt ); + inline Block* _createBlock( + TFilter* f, const QString& name, const QPointF& pnt + ); protected: typedef QGraphicsSceneDragDropEvent QGraphicsSceneDragEnterEvent;