-#error ACA VOY
- // Add block
- QNEBlock* b = new QNEBlock( 0, scene );
- b->addPort( vIt->second->GetName( ), 0, QNEPort::NamePort );
- b->addPort( vIt->second->GetClassName( ).c_str( ), 0, QNEPort::TypePort );
-
- // Get filter
- if( f == NULL )
- continue;
-
- // Add input ports
- std::set< std::string > inputs;
- f->GetInputsNames( inputs );
- for( auto iIt = inputs.begin( ); iIt != inputs.end( ); ++iIt )
- in_ports[ vIt->first ][ *iIt ] = b->addInputPort( iIt->c_str( ) );
-
- // Add output ports
- std::set< std::string > outputs;
- f->GetOutputsNames( outputs );
- for( auto oIt = outputs.begin( ); oIt != outputs.end( ); ++oIt )
- out_ports[ vIt->first ][ *oIt ] = b->addOutputPort( oIt->c_str( ) );
-
- // Keep a trace of this visual graph
- this->m_Graph->InsertVertex( vIt->first, b );