X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FcpPipelineEditor%2FQNodesEditorCanvas.cxx;h=afb5b62bd653ec6ce5e61993ee4a07191aa954eb;hb=9c75dcecf566cc567583caf4687ce523a2af586d;hp=b320930da5e60f4e0f9b86103862a07e4acd2e12;hpb=7d58e3b62da920a493101d78d2929645ed98c8f9;p=cpPlugins.git diff --git a/appli/cpPipelineEditor/QNodesEditorCanvas.cxx b/appli/cpPipelineEditor/QNodesEditorCanvas.cxx index b320930..afb5b62 100644 --- a/appli/cpPipelineEditor/QNodesEditorCanvas.cxx +++ b/appli/cpPipelineEditor/QNodesEditorCanvas.cxx @@ -147,7 +147,6 @@ dragMoveEvent( QDragMoveEvent* event ) void PipelineEditor::QNodesEditorCanvas:: dropEvent( QDropEvent* event ) { - std::cout << event << " " << this->m_Workspace << std::endl; if( this->m_Workspace == NULL ) return; const QMimeData* mime = event->mimeData( ); @@ -163,26 +162,11 @@ dropEvent( QDropEvent* event ) for( auto iIt = items.begin( ); iIt != items.end( ); ++iIt ) { std::string filter = ( *iIt )->text( 0 ).toStdString( ); - std::string name = "filtro"; //filter; - if( this->m_Workspace->GetFilter( name ) != NULL ) + std::string name = filter; + while( this->m_Workspace->HasFilter( name ) ) name += std::string( "_" ); - std::cout << name << std::endl; if( this->m_Workspace->CreateFilter( filter, name ) ) - { - auto vIt = this->m_Workspace->GetGraph( )->BeginVertices( ); - auto vIt_end = this->m_Workspace->GetGraph( )->EndVertices( ); - for( ; vIt != vIt_end; ++vIt ) - { - std::cout << "NAME: " << vIt->first << " " << vIt->second.GetPointer( ) << std::endl; - vIt->second->Print( std::cout ); - } - - - std::cout << "ok" << std::endl; this->_createBlock( this->m_Workspace->GetFilter( name ) ); - } - else - std::cout << "no" << std::endl; } // rof } @@ -204,8 +188,6 @@ _scaleView( qreal scaleFactor ) void PipelineEditor::QNodesEditorCanvas:: _createBlock( TFilter* f ) { - std::cout << "ptr: " << f << std::endl; - if( f == NULL ) return;