X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FcpPipelineEditor%2FQNEBlock.cxx;fp=appli%2FcpPipelineEditor%2FQNEBlock.cxx;h=0c6900d559cff82ee176e4898e11624841379eeb;hb=9c75dcecf566cc567583caf4687ce523a2af586d;hp=7ccb166cd3d6e70f29f03aa077eefba29d70cdbe;hpb=7d58e3b62da920a493101d78d2929645ed98c8f9;p=cpPlugins.git diff --git a/appli/cpPipelineEditor/QNEBlock.cxx b/appli/cpPipelineEditor/QNEBlock.cxx index 7ccb166..0c6900d 100644 --- a/appli/cpPipelineEditor/QNEBlock.cxx +++ b/appli/cpPipelineEditor/QNEBlock.cxx @@ -132,63 +132,6 @@ addOutputPorts( const QStringList& names ) this->addOutputPort( n ); } -// ------------------------------------------------------------------------- -void PipelineEditor::QNEBlock:: -save( QDataStream& ds ) -{ - ds << pos( ); - - int count( 0 ); - - foreach( QGraphicsItem* port_, children( ) ) - { - if( port_->type( ) != QNEPort::Type ) - continue; - count++; - - } // rof - - ds << count; - - foreach( QGraphicsItem* port_, children( ) ) - { - if( port_->type( ) != QNEPort::Type ) - continue; - - QNEPort* port = ( QNEPort* ) port_; - ds << ( quint64 ) port; - ds << port->portName( ); - ds << port->isOutput( ); - ds << port->portFlags( ); - - } // rof -} - -// ------------------------------------------------------------------------- -void PipelineEditor::QNEBlock:: -load( QDataStream& ds, QMap& portMap ) -{ - QPointF p; - ds >> p; - this->setPos( p ); - int count; - ds >> count; - for( int i = 0; i < count; i++ ) - { - QString name; - bool output; - int flags; - quint64 ptr; - - ds >> ptr; - ds >> name; - ds >> output; - ds >> flags; - portMap[ptr] = this->addPort( name, output, flags, ptr ); - - } // rof -} - // ------------------------------------------------------------------------- void PipelineEditor::QNEBlock:: paint(