X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPipelineEditor%2FBlock.h;h=6ee84f662a91c49ac0cab0794b8d3c34e9d360e3;hb=ebbbc4c90ed0e4814d360686e8d4b6aab509914c;hp=b6a7b33a898f390d0fbddeb714513149c53ea5f1;hpb=19a9e1774044cc32c415ad38695800c1d169820d;p=cpPlugins.git diff --git a/lib/cpPipelineEditor/Block.h b/lib/cpPipelineEditor/Block.h index b6a7b33..6ee84f6 100644 --- a/lib/cpPipelineEditor/Block.h +++ b/lib/cpPipelineEditor/Block.h @@ -3,14 +3,13 @@ #include #include -#include +#include namespace cpPipelineEditor { class Editor; class Port; class NamePort; - class TypePort; class InputPort; class OutputPort; @@ -20,19 +19,22 @@ namespace cpPipelineEditor : public QGraphicsPathItem { public: - typedef Block Self; - typedef QGraphicsPathItem Superclass; - typedef cpPlugins::Interface::ProcessObject TFilter; + typedef Block Self; + typedef QGraphicsPathItem Superclass; + typedef cpPlugins::ProcessObject TFilter; public: enum { Type = QGraphicsItem::UserType + 6 }; Block( - TFilter* filter, + TFilter* filter, const QString& name, QGraphicsItem* parent = NULL, QGraphicsScene* scene = NULL ); virtual ~Block( ); + TFilter* filter( ); + const TFilter* filter( ) const; + Editor* editor( ); const Editor* editor( ) const; void setEditor( Editor* editor ); @@ -59,7 +61,7 @@ namespace cpPipelineEditor protected: QVariant itemChange( GraphicsItemChange change, const QVariant& value ); - void _setTypePort( const QString& txt ); + void _setTypeInfo( const QString& txt ); void _configPort( Port* port ); virtual void mouseReleaseEvent( QGraphicsSceneMouseEvent* evt ); @@ -72,7 +74,6 @@ namespace cpPipelineEditor int m_Height; NamePort* m_NamePort; - TypePort* m_TypePort; std::map< std::string, InputPort* > m_InputPorts; std::map< std::string, OutputPort* > m_OutputPorts;